詳解Oracle的unlimited tablespace系統許可權

來源:互聯網
上載者:User

1.
系統許可權unlimited tablespace是隱含在dba, resource角色中的一個系統許可權. 當使用者得到dba或resource的角色時,
unlimited tablespace系統許可權也隱式受權給使用者.

2.
系統許可權unlimited tablespace不能被授予role,
可以被授予使用者.

3.
系統許可權unlimited tablespace不會隨著resource, dba被授予role而授予給使用者.

1
實驗1

SQL>
create user u1 identified by u1;

User created.

SQL>
grant connect, resource to u1;

Grant succeeded.

SQL>
select * from dba_role_privs a where a.grantee='U1';

GRANTEE
             GRANTED_ROLE        
ADM DEF

-------------------- -------------------- --- ---

U1                  
RESOURCE             NO  YES

U1                  
CONNECT              NO  YES

SQL>
select * from dba_sys_privs a where a.grantee='U1';

GRANTEE
             PRIVILEGE            ADM

-------------------- -------------------- ---

U1                  
UNLIMITED TABLESPACE NO

SQL>
revoke unlimited tablespace from u1;

Revoke succeeded.

SQL>
select * from dba_sys_privs a where a.grantee='U1';

no rows selected

2
實驗2

SQL>
create role r1;

Role created.

SQL>
grant unlimited tablespace to r1;

ORA-01931: cannot grant UNLIMITED TABLESPACE to a role

不能受權給角色r1.

 

SQL>
grant unlimited tablespace to u1;

Grant succeeded.

可以受權給使用者u1.

3
實驗3

SQL>
revoke resource from u1;

Revoke succeeded.

SQL> grant resource to r1;

Grant succeeded.

SQL>
grant r1 to u1;

Grant succeeded.

SQL> select * from dba_role_privs a where a.grantee='U1';

GRANTEE
             GRANTED_ROLE        
ADM DEF

-------------------- -------------------- --- ---

U1                  
R1     
             NO 
YES

U1                  
CONNECT              NO  YES

SQL> select * from dba_sys_privs a where a.grantee='U1';

no rows selected

系統許可權中沒有unlimit tablespace系統許可權.

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.