What is the command to find the database that already present before connecting ?

Questions by mojidra   answers by mojidra

Showing Answers 1 - 30 of 30 Answers

As a sys or system user,

select name from v$database;

As a normal user,

select global_name from global_name;
select ora_database_name from dual; - dual is a dummy table in oracle
show parameter db_name - has to be given in sql prompt.

  Was this answer useful?  Yes

abhishek singh

  • Aug 1st, 2011
 

select db_name from v$database;
use echo command in linux environment

  Was this answer useful?  Yes

priyank

  • May 10th, 2012
 

If you are using Unix/Linux environment then try to grep the oracle & tnslsnr processes to get the name of database service/process running. And, this will also give you path of tnsnames.ora file, where you check the Instance name.

  Was this answer useful?  Yes

sandeep

  • Apr 26th, 2013
 

ps -ef | grep oracle

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions