ORA-12560 [message #213659] |
Thu, 11 January 2007 14:26 |
swamy99
Messages: 30 Registered: June 2006
|
Member |
|
|
Hi,
I have a clean install of EM Grid Control with a new database option on a new server. Also installed with the database, are the OMS as well as the Agent on the same server. I am able to connect and perform all the operation from the Grid Control including discovering targets, setting up backups etc etc. I am also able to connect to the database from sqlplus session and perform all the sql operations without any problem to the repository database.
But, when I try to connect to the database from command line, I am getting "ORA-12560 TNS:protocol adapter error". When verified the sqlnet.log file, I noticed that the SID is pointing to ORCL and the sqlplus PROGRAM is being run from bin directory of OMS10g. We specified the SID as "EMREP" and not "ORCL" during the initial setup.
There is only one tnsnames.ora file which is residing in db10g home and has only one entry for the EMREP database.
Does anyone have a clue as to why the SQLPLUS program from command line is looking into OMS10g home instead of DB10g home?
Thanks for your help.
|
|
|
|
Re: ORA-12560 [message #213670 is a reply to message #213668] |
Thu, 11 January 2007 16:09 |
swamy99
Messages: 30 Registered: June 2006
|
Member |
|
|
When issued with scott/tiger@emrep I get,
SQL*Plus: Release 10.1.0.4.2 - Production on Thu Jan 11 14:06:47 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
I tried with sys user and get the same error as above.
|
|
|
|
Re: ORA-12560 [message #213890 is a reply to message #213888] |
Fri, 12 January 2007 12:43 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
Quote: | Does anyone have a clue as to why the SQLPLUS program from command line is looking into OMS10g home instead of DB10g home?
|
Well, what IS the $ORACLE_HOME envirionment variable set to in the session where sqlplus is run?
|
|
|
|
|