现在的位置: 首页 > 综合 > 正文

oracle权限问题集合

2018年06月30日 ⁄ 综合 ⁄ 共 418字 ⁄ 字号 评论关闭

1.oracle设置不同权限的用户去访问同一表空间

1.create user testa identified by testa;
2.alter user testa default tablespace users temporary tablespace temp;
3.grant connect to testa;
4.grant select any table to testa;

 

2.ORACLE中设置同一个用户对两个表空间的权限的代码

alter user 用户 quota unlimited on 表空间A;
alter user 用户 quota unlimited on 表空间B;
或者放开所有表空间
grant unlimited tablespace to 用户;
或者索性给所有权限
grant resource,connect,dba to 用户;

 

3.ORACLE设置只能访问表权限的用户

grant select on table1 to user1;
grant select on table2 to user1;

抱歉!评论已关闭.