当前位置:Gxlcms > 数据库问题 > Oracle之表空间、索引、管理权限及角色

Oracle之表空间、索引、管理权限及角色

时间:2021-07-01 10:21:17 帮助过:2人阅读

create public sysnonym:键同意词

create procedure建立过程、函数、包                   create trigger建触发器

create cluster建簇


显示系统权限

oracle提供了多条系统权限,而且oracle的版本越高,提供的系统权限就越多

select * from system_privilege_map order by name;




授予系统权限

一般情况下,授予系统权限是由dba完成的,如果其他用户来授予系统权限,则要求该用户必须具有grant any privilege

的系统权限,可以带有with admin option选项,被授予的用户或是角色还可以将该系统权限授予其他用户

1、创建两个用户ken,tom

create user ken identified by redhat;


2、给用户key授权

grant create session,Crete table to ken with admin option;

grant create view to  ken;


3、给tom授权

grant create session,create table to tom;这是登录的系统权限

revoke create session from tom;



授予数据对象权限

角色不能带有with grant option(授予角色)

只修改某张表的某一列(字段)

grant update on emp(sal) to monkey;只能在表中的字段sal上修改

grant select on emp(ename,sal) to monkey;能在字段ename,sal上查询


grant index on emp to monkey;允许monkey能在表emp上创建索引


Oracle之表空间、索引、管理权限及角色

标签:oracle

人气教程排行