From 86db2585623515fe38347811ec4bf46565d2c44b Mon Sep 17 00:00:00 2001
From: Christian Cleberg <hello@cleberg.net>
Date: Fri, 25 Apr 2025 17:37:39 -0500
Subject: MySQL & Postgres Enhancements (#5)

* remove mysql login script and add password script

* move excess mysql password query to new script

* add db admin folders

* add postgres

* add mongo admins script

* Commit from GitHub Actions (Ruff)

* update tests for mysql and postgres

* update tests for mysql and postgres

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
---
 databases/administrators/oracle/oracle_admins.sql | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 databases/administrators/oracle/oracle_admins.sql

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

diff --git a/databases/administrators/oracle/oracle_admins.sql b/databases/administrators/oracle/oracle_admins.sql
new file mode 100644
index 0000000..bac5934
--- /dev/null
+++ b/databases/administrators/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

