Home » RDBMS Server » Server Administration » Database name
Database name [message #374510] Fri, 15 June 2001 10:50 Go to next message
CHACKO
Messages: 11
Registered: March 2001
Junior Member
How can we find out the database name?
I have test database,production database, and so on..
is there any command in sql to figure out which database I am using?

Thanks
Re: Database name [message #374511 is a reply to message #374510] Fri, 15 June 2001 11:15 Go to previous messageGo to next message
Bala
Messages: 205
Registered: November 1999
Senior Member
Hi,

select name, value from v$parameter where
name = 'db_name';

or

select name from v$database;
Re: Database name [message #374518 is a reply to message #374510] Fri, 15 June 2001 18:18 Go to previous message
Andrew again...
Messages: 270
Registered: July 2000
Senior Member
http://www.ibi.co.za/frank/scripts/sql/whoami.txt
Previous Topic: Describing all the tables in a database
Next Topic: delete a column from a table
Goto Forum:
  


Current Time: Mon Dec 23 13:57:39 CST 2024