PtiTom

Oracle - Droits utilisateur

Apr 30th, 2019
192
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- VALABLE UNIQUEMENT sous Oracle
  2.  
  3. -- Roles :
  4. SELECT PRIVILEGE
  5.   FROM sys.dba_sys_privs
  6.  WHERE grantee = <theUser>
  7. UNION
  8. SELECT PRIVILEGE
  9.   FROM dba_role_privs rp JOIN role_sys_privs rsp ON (rp.granted_role = rsp.role)
  10.  WHERE rp.grantee = <theUser>
  11.  ORDER BY 1;
  12.  
  13. -- Drotits directs :
  14. SELECT owner, table_name, select_priv, insert_priv, delete_priv, update_priv, references_priv, alter_priv, index_priv
  15.   FROM table_privileges
  16.  WHERE grantee = <theUser>
  17.  ORDER BY owner, table_name;
  18.  
  19. -- Droits par roles :
  20. SELECT DISTINCT owner, table_name, PRIVILEGE
  21.   FROM dba_role_privs rp JOIN role_tab_privs rtp ON (rp.granted_role = rtp.role)
  22.  WHERE rp.grantee = <theUser>
  23.  ORDER BY owner, table_name;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×