全部博文(191)
分类: Oracle
2010-06-16 01:51:41
grant connect,resource to chenwm;
但这里connect 角色有一个 UNLIMITED TABLESPACE 权限,也就是chenwm这个用户可以在其他表空间
里随意建表。
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as SYS
SQL> select * from dba_sys_privs where grantee='CHENWM';
GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
CHENWM UNLIMITED TABLESPACE NO
SQL>
一般DBA要把这个 UNLIMITED TABLESPACE权限关掉
SQL> revoke unlimited tablespace from chenwm; #回收unlimited tablespace权限
Revoke succeeded
SQL> alter user chenwm quota unlimited on chenwm; #其中后面chenwm是表空间名
User altered