in reply to Re^3: [OT] Get the database name in Oracle
in thread [OT] Get the database name in Oracle

You don't have the permissions to read v$database. Hint: grant select to this view or do the "dba" role to user (at your own risk)
  • Comment on Re^4: [OT] Get the database name in Oracle