How to Query Database Name in Oracle SQL Developer?

前端 未结 7 1562
自闭症患者
自闭症患者 2020-12-29 20:28

How do I query the database name in Oracle SQL Developer? I have tried the following and they all fail:

SELECT DB_NAME();

SELECT DATABASE(

7条回答
  •  星月不相逢
    2020-12-29 20:43

    I know this is an old thread but you can also get some useful info from the V$INSTANCE view as well. the V$DATABASE displays info from the control file, the V$INSTANCE view displays state of the current instance.

提交回复
热议问题