how to see privileges assigned to a role?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: how to see privileges assigned to a role?

Hybrid View

  1. #1
    Join Date
    May 2001
    Posts
    285

    Question

    Hi,

    Which db dictionary view should I query to find what kind of system and object privileges have seen granted to certain role?

    Thanks!

  2. #2
    Join Date
    Feb 2001
    Posts
    290
    DBA_SYS_PRIVS
    DBA_TAB_PRIVS

    if you have access to the above views

    Thanks,
    Madhu

  3. #3
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    510
    You should look at these three tables:

    SQL> desc role_sys_privs;
    Name Null? Type
    ------------------------------- -------- ----
    ROLE NOT NULL VARCHAR2(30)
    PRIVILEGE NOT NULL VARCHAR2(40)
    ADMIN_OPTION VARCHAR2(3)

    SQL> desc role_tab_privs;
    Name Null? Type
    ------------------------------- -------- ----
    ROLE NOT NULL VARCHAR2(30)
    OWNER NOT NULL VARCHAR2(30)
    TABLE_NAME NOT NULL VARCHAR2(30)
    COLUMN_NAME VARCHAR2(30)
    PRIVILEGE NOT NULL VARCHAR2(40)
    GRANTABLE VARCHAR2(3)

    SQL> desc role_role_privs;
    Name Null? Type
    ------------------------------- -------- ----
    ROLE NOT NULL VARCHAR2(30)
    GRANTED_ROLE NOT NULL VARCHAR2(30)
    ADMIN_OPTION VARCHAR2(3)
    Remember the Golden Rule - He who has the gold makes the rules!
    ===================
    Kris109
    Ph.D., OCP 8i, 9i, 10g, 11g DBA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width