From 95bf612c338dec8235e89ca6a1d9e5e8cad3f997 Mon Sep 17 00:00:00 2001
From: Christian Cleberg <hello@cleberg.net>
Date: Tue, 6 May 2025 21:31:46 -0500
Subject: reorganize db dir (#6)

---
 databases/oracle/oracle_admins.sql | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 databases/oracle/oracle_admins.sql

(limited to 'databases/oracle/oracle_admins.sql')

diff --git a/databases/oracle/oracle_admins.sql b/databases/oracle/oracle_admins.sql
new file mode 100644
index 0000000..bac5934
--- /dev/null
+++ b/databases/oracle/oracle_admins.sql
@@ -0,0 +1,15 @@
+SELECT
+    grantee AS "User",
+    privilege AS "Privilege"
+FROM
+    dba_sys_privs
+WHERE
+    grantee IN (SELECT DISTINCT grantee FROM dba_sys_privs)
+UNION ALL
+SELECT
+    grantee AS "User",
+    privilege AS "Privilege"
+FROM
+    dba_tab_privs
+WHERE
+    grantee IN (SELECT DISTINCT grantee FROM dba_tab_privs);
-- 
cgit v1.2.3-70-g09d2

