ORACLE中關於CONNECT,RESOURCE,DBA的授權,oracledba

來源:互聯網
上載者:User

ORACLE中關於CONNECT,RESOURCE,DBA的授權,oracledba

    CONNECT,RESOURCE,DBA是ORACLE系統的三個內建角色,角色許可權如下:

    CONNECT:擁有Connect許可權的使用者只可以登入ORACLE,不可以建立實體,不可以建立資料庫結構。

    RESOURCE:擁有Resource許可權的使用者只可以建立實體,不可以建立資料庫結構。

    DBA:擁有全部特權,是系統最高許可權,只有DBA才可以建立資料庫結構。

    一般來說,對於普通使用者,授予CONNECT, RESOURCE許可權。 對於管理使用者,則授予CONNECT,RESOURCE, DBA許可權。

    授予角色的文法:

    grant <object/system privilege> to <role name>;

    查看所有角色具有的許可權個數:  

    select role, count(*) from role_sys_privs group by role;

    查看某個角色(如RESOURCE)具有的許可權:

    select grantee,privilege from dba_sys_privs where grantee='RESOURCE' order by privilege;

     通過查詢其實可以看到,CONNECT角色中只包含一個許可權就是“CREATE SESSION”:


    而DBA角色的許可權中也包括這個許可權:

    

 

 

 


相關文章

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.