WebGet all the users who have been explicitly granted access to that table, and for which a DENY/REVOKE does not exist. Get all the users who are members of any of the roles that implicitly grant read access to the given object (but again also check for explicit DENY/REVOKE). Pseudo code (I'll update with real examples when I have time): Web23 jan. 2013 · SELECT grantee, privilege FROM dba_tab_privs WHERE owner = 'B' AND table_name = 'MYPACKAGE' AND privilege = 'EXECUTE' If the grantee is a role, you would then need to look at dba_role_privs to see what users (or roles) have been granted that role and follow the chain if you have roles granted to other roles.
sql - How to check the privileges (DDL,DML,DCL) on objects …
Web16 sep. 2013 · Or dba_role_privs? dba_roles lists all the available roles. dba_role_privs indicates which roles are granted to different users. It is entirely possible to have roles that have privileges granted to them but which are themselves not assigned to any users. Web11 jan. 2024 · The best solution is to grant the dba role to a user account, eg usr. Using the sysdba privilege (e.g. system@db as sysdba ), create a user having the needed privileges: create user usr identified by Pa$$W0rD; grant create session to usr; grant dba to usr; Consequently, you could log in with the dba role to execute this package. small cheese vat for sale
SELECT ANY DICTIONARY - What Privileges Does it Have - Pete …
Web11 okt. 2024 · Just to prove that a user without SELECT ANY DICTIONARY cannot see V$SESSION and V$DATABASE: SQL> connect sys/oracle1@//192.168.56.78:1523/xepdb1 as sysdba Connected. SQL> create user test1 identified by test1; User created. SQL> grant create session to test1; Grant succeeded. SQL> connect … Web27 sep. 2016 · To select privileges granted directly to user: SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE='USER' and SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = 'USER'; If you want to find out what privileges particular role gives you can execute SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE IN (SELECT … something about mary hitchhiker