Defining an Oracle Database Instance

Besides querying tables v_ $ database and v_ $ instances (or v $ instance, v $ database views), is there any other way to programmatically retrieve (from PL / SQL) the name of the oracle database database?

+3
source share
2 answers

The following were found in the expert market:

select ora_database_name from dual;
select sys_context('userenv','db_name') from dual;
select global_name from global_name;

http://www.experts-exchange.com/Databases/Oracle/Q_20529577.html

+5
source

dbms_standard.database_name

+6
source

Source: https://habr.com/ru/post/1705881/


All Articles