oracle 用户系统权限

create user test identified by test;

grant create session to test;

grant create table to test; 这个时候还没有使用表空间的权限,还不可以建表
grant unlimited tablespace to test;
create table test (sno number);
create table scott.test(id int);
grant create any table to test;
conn scott/tiger;
select * from tab;
conn sys as sysdba;
select * from dba_sys_privs d where d.grantee='TEST'; 查看test用户的权限
create user test2 identified by test2;
grant create session to test2 with admin option; 后面选项的意思是可以把创建会话的权限继续传递下去。
create user test3 identified by test3;
conn test2/test2;
grant create session to test3;
conn sys as sysdba;
revoke create session from test2;
conn test2/test2; 连接不上
conn test3/test3; 可以连接上

猜你喜欢

转载自www.cnblogs.com/BaiLaowu/p/9275493.html
今日推荐