This commit is contained in:
Zakaria Zoulati 2026-06-30 10:00:39 +05:30 committed by GitHub
commit d2204aaf9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,7 +266,8 @@
NOTE: current physical DB but not usable for enumeration
<current_db query="SELECT SYS.DATABASE_NAME FROM DUAL"/>
-->
<current_db query="SELECT USER FROM DUAL"/>
<!-- ORA_DATABASE_NAME works for any user in Oracle 12c+; fallback to USER for older versions -->
<current_db query="SELECT ORA_DATABASE_NAME FROM DUAL" query2="SELECT USER FROM DUAL"/>
<!--
NOTE: in Oracle to check if the session user is DBA you can use:
SELECT USERENV('ISDBA') FROM DUAL