激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        全部產品
        您的位置: 網站首頁 > 幫助中心>文章內容

        Oracle10g 預定義主要角色

        發(fā)布時間:  2012/9/21 17:01:22

        SQL> select * from v$version;

        BANNER
        ----------------------------------------------------------------
        Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
        PL/SQL Release 10.2.0.1.0 - Production-
         

        CORE    10.2.0.1.0      Production
        TNS for Linux: Version 10.2.0.1.0 - Production
        NLSRTL Version 10.2.0.1.0 - Production

        SQL> set pages 50
        SQL> select * from dba_roles;

        ROLE                           PASSWORD
        ------------------------------ --------
        CONNECT                        NO
        RESOURCE                       NO
        DBA                            NO
        SELECT_CATALOG_ROLE            NO
        EXECUTE_CATALOG_ROLE           NO
        DELETE_CATALOG_ROLE            NO
        EXP_FULL_DATABASE              NO
        IMP_FULL_DATABASE              NO
        RECOVERY_CATALOG_OWNER         NO
        GATHER_SYSTEM_STATISTICS       NO
        LOGSTDBY_ADMINISTRATOR         NO
        AQ_ADMINISTRATOR_ROLE          NO
        AQ_USER_ROLE                   NO
        GLOBAL_AQ_USER_ROLE            GLOBAL
        SCHEDULER_ADMIN                NO
        HS_ADMIN_ROLE                  NO
        OEM_ADVISOR                    NO
        OEM_MONITOR                    NO
        MGMT_USER                      NO
        PLUSTRACE                      NO

        20 rows selected.

        SQL>

        1. CONNECT
        2. RESOURCE
        3. DBA
        4. EXP_FULL_DATABASE
        5. IMP_FULL_DATABASE
        6. DELETE_CATALOG_ROLE
        7. EXECUTE_CATALOG_ROLE
        8. SELECT_CATALOG_ROLE

        1-3是為了同Oracle老版本中的概念相兼容而提供的,不能只依賴于這些ROLE
        4-5是為了使用Import和Export實用程序的方便而提供的
        6-8是為了數(shù)據字典視圖和包的卸載而提供的

        1.CONNECT 角色, 是授予最終用戶的典型權利,最基本的

        SQL> select * from dba_sys_privs where grantee = 'CONNECT';   --系統(tǒng)權限

        GRANTEE                        PRIVILEGE                                ADM
        ------------------------------ ---------------------------------------- ---
        CONNECT                        CREATE SESSION                           NO

        SQL> select * from dba_tab_privs where grantee = 'CONNECT';   --對象權限

        no rows selected

        SQL> select * from dba_role_privs where grantee = 'CONNECT';   --角色權限

        no rows selected

        SQL>

        2.RESOURCE 角色, 是授予開發(fā)人員的

        SQL> select * from dba_sys_privs where grantee = 'RESOURCE';

        GRANTEE                        PRIVILEGE                                ADM
        ------------------------------ ---------------------------------------- ---
        RESOURCE                       CREATE TRIGGER                           NO
        RESOURCE                       CREATE SEQUENCE                          NO
        RESOURCE                       CREATE TYPE                              NO
        RESOURCE                       CREATE PROCEDURE                         NO
        RESOURCE                       CREATE CLUSTER                           NO
        RESOURCE                       CREATE OPERATOR                          NO
        RESOURCE                       CREATE INDEXTYPE                         NO
        RESOURCE                       CREATE TABLE                             NO

        8 rows selected.

        SQL> select * from dba_tab_privs where grantee = 'RESOURCE';

        no rows selected

        SQL> select * from dba_role_privs where grantee = 'RESOURCE';

        no rows selected

        SQL>

        3.DBA 角色, 擁有系統(tǒng)所有系統(tǒng)級權限

        SQL> select count(*) from dba_sys_privs where grantee = 'DBA';

        COUNT(*)
        ----------
        160

        SQL> select count(*) from dba_tab_privs where grantee = 'DBA';

        COUNT(*)
        ----------
        38

        SQL> select * from dba_role_privs where grantee = 'DBA';

        GRANTEE                        GRANTED_ROLE                   ADM DEF
        ------------------------------ ------------------------------ --- ---
        DBA                            SCHEDULER_ADMIN                YES YES
        DBA                            EXECUTE_CATALOG_ROLE           YES YES
        DBA                            DELETE_CATALOG_ROLE            YES YES
        DBA                            PLUSTRACE                      YES YES
        DBA                            SELECT_CATALOG_ROLE            YES YES
        DBA                            EXP_FULL_DATABASE              NO YES
        DBA                            GATHER_SYSTEM_STATISTICS       NO YES
        DBA                            IMP_FULL_DATABASE              NO YES

        8 rows selected.

        SQL>

        4.IMP_FULL_DATABASE 角色

        SQL> select count(*) from dba_sys_privs where grantee = 'IMP_FULL_DATABASE';

        COUNT(*)
        ----------
        68

        SQL> select count(*) from dba_tab_privs where grantee = 'IMP_FULL_DATABASE';

        COUNT(*)
        ----------
        14

        SQL> select * from dba_role_privs where grantee = 'IMP_FULL_DATABASE';

        GRANTEE                        GRANTED_ROLE                   ADM DEF
        ------------------------------ ------------------------------ --- ---
        IMP_FULL_DATABASE              EXECUTE_CATALOG_ROLE           NO YES
        IMP_FULL_DATABASE              SELECT_CATALOG_ROLE            NO YES

        SQL>

        5.EXP_FULL_DATABASE 角色

        SQL> select * from dba_sys_privs where grantee = 'EXP_FULL_DATABASE';

        GRANTEE                        PRIVILEGE                                ADM
        ------------------------------ ---------------------------------------- ---
        EXP_FULL_DATABASE              READ ANY FILE GROUP                      NO
        EXP_FULL_DATABASE              RESUMABLE                                NO
        EXP_FULL_DATABASE              EXECUTE ANY PROCEDURE                    NO
        EXP_FULL_DATABASE              EXECUTE ANY TYPE                         NO
        EXP_FULL_DATABASE              SELECT ANY TABLE                         NO
        EXP_FULL_DATABASE              ADMINISTER RESOURCE MANAGER              NO
        EXP_FULL_DATABASE              BACKUP ANY TABLE                         NO
        EXP_FULL_DATABASE              SELECT ANY SEQUENCE                      NO

        8 rows selected.

        SQL> select count(*) from dba_tab_privs where grantee = 'EXP_FULL_DATABASE';

        COUNT(*)
        ----------
        39

        SQL> select * from dba_role_privs where grantee = 'EXP_FULL_DATABASE';

        GRANTEE                        GRANTED_ROLE                   ADM DEF
        ------------------------------ ------------------------------ --- ---
        EXP_FULL_DATABASE              EXECUTE_CATALOG_ROLE           NO YES
        EXP_FULL_DATABASE              SELECT_CATALOG_ROLE            NO YES

        SQL>

        6.DELETE_CATALOG_ROLE 角色

        這個角色是Oracle8新增加的,如果授予用戶這個角色,用戶就可以從表sys.aud$和FGA_LOG$中刪除記錄,sys.aud$和FGA_LOG$表中記錄著審計后的記錄,使用這個角色可以簡化審計蹤跡管理。

        SQL> select * from dba_sys_privs where grantee = 'DELETE_CATALOG_ROLE';

        no rows selected

        SQL> select owner, table_name, privilege, grantable from dba_tab_privs where grantee = 'DELETE_CATALOG_ROLE';

        OWNER                          TABLE_NAME                     PRIVILEGE                                GRA
        ------------------------------ ------------------------------ ---------------------------------------- ---
        SYS                            AUD$                           DELETE                                   NO
        SYS                            FGA_LOG$                       DELETE                                   NO

        SQL> select * from dba_role_privs where grantee = 'DELETE_CATALOG_ROLE';

        no rows selected

        SQL>

        7.SELECT_CATALOG_ROLE 角色, 具有從數(shù)據字典查詢的權利

        SQL> select * from dba_sys_privs where grantee = 'SELECT_CATALOG_ROLE';

        no rows selected

        SQL> select count(*) from dba_tab_privs where grantee = 'SELECT_CATALOG_ROLE';

        COUNT(*)
        ----------
        1671

        SQL> select * from dba_role_privs where grantee = 'SELECT_CATALOG_ROLE';

        GRANTEE                        GRANTED_ROLE                   ADM DEF
        ------------------------------ ------------------------------ --- ---
        SELECT_CATALOG_ROLE            HS_ADMIN_ROLE                  NO YES

        --進一步看看HS_ADMIN_ROLE角色

        SQL> select * from dba_sys_privs where grantee = 'HS_ADMIN_ROLE';

        no rows selected

        SQL> select owner, table_name, privilege, grantable from dba_tab_privs where grantee = 'HS_ADMIN_ROLE';

        OWNER                          TABLE_NAME                     PRIVILEGE                                GRA
        ------------------------------ ------------------------------ ---------------------------------------- ---
        SYS                            HS_FDS_CLASS                   SELECT                                   NO
        SYS                            HS_FDS_INST                    SELECT                                   NO
        SYS                            HS_BASE_CAPS                   SELECT                                   NO
        SYS                            HS_CLASS_CAPS                  SELECT                                   NO
        SYS                            HS_INST_CAPS                   SELECT                                   NO
        SYS                            HS_BASE_DD                     SELECT                                   NO
        SYS                            HS_CLASS_DD                    SELECT                                   NO
        SYS                            HS_INST_DD                     SELECT                                   NO
        SYS                            HS_CLASS_INIT                  SELECT                                   NO
        SYS                            HS_INST_INIT                   SELECT                                   NO
        SYS                            HS_ALL_CAPS                    SELECT                                   NO
        SYS                            HS_ALL_DD                      SELECT                                   NO
        SYS                            HS_ALL_INITS                   SELECT                                   NO
        SYS                            HS_FDS_CLASS_DATE              SELECT                                   NO
        SYS                            DBMS_HS                        EXECUTE                                  NO

        15 rows selected.

        SQL> select * from dba_role_privs where grantee = 'HS_ADMIN_ROLE';

        no rows selected

        SQL>

        8.EXECUTE_CATALOG_ROLE 角色, 具有從數(shù)據字典中執(zhí)行部分過程和函數(shù)的權利

        SQL> select * from dba_sys_privs where grantee = 'EXECUTE_CATALOG_ROLE';

        no rows selected

        SQL> select count(*) from dba_tab_privs where grantee = 'EXECUTE_CATALOG_ROLE';

        COUNT(*)
        ----------
        77

        SQL> select * from dba_role_privs where grantee = 'EXECUTE_CATALOG_ROLE';

        GRANTEE                        GRANTED_ROLE                   ADM DEF
        ------------------------------ ------------------------------ --- ---
        EXECUTE_CATALOG_ROLE           HS_ADMIN_ROLE                  NO YES

        SQL>

        --End--


         


        本文出自:億恩科技【mszdt.com】

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經營性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經營性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經營性ICP/ISP證:贛B2-20080012
      9. 服務器/云主機 24小時售后服務電話:0371-60135900
      10. 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
      11. 專注服務器托管17年
        掃掃關注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務熱線