This commit is contained in:
Zakaria Zoulati 2026-07-03 01:06:02 +07:00 committed by GitHub
commit c92afa79a9
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