DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Database name

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Database name

    Hi,

    I am a newbe in Oracle, i have managed to install oracle on to my machine and logged on to SQL*Plus. I have configured the service name to connect to the database on the Server, but i now want to display the database name through SQL*Plus. All I need is to display the database name from SQL*Plus.

    Thank you in advance.

    Regards

    MM

  2. #2
    Join Date
    Jul 2002
    Location
    Northampton, England
    Posts
    612
    Tips & Tricks?...

    show parameter db_name

    or

    select name from v$database;
    Assistance is Futile...

  3. #3
    Join Date
    Nov 1999
    Posts
    226
    Select * from v$instance ;
    select * from v$database;
    select * from global_name ;

    Use whatever you need

  4. #4
    Join Date
    Nov 2007
    Posts
    2

    DB Name

    Select Sys.context('userenv','db_name') From Dual;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width