OraQA

Oracle Question and Answer

  • Do you have a solution to a problem? Do you have an unanswered question? Login and share it with the Oracle community. More...

Oracle News


Entries RSS feed

Comments RSS feed

How do I tell in which database I am?

January 8th, 2006 By Robert Vollman

select name from v$database;

or

select instance_name, host_name from v$instance;

or

SELECT SYS_CONTEXT(‘USERENV’,’DB_NAME’) FROM DUAL;

One Response to “How do I tell in which database I am?”

  1. cthart Says:

    SELECT * FROM global_name;

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this question