Operating System - Linux
1820072 Members
2655 Online
109608 Solutions
New Discussion юеВ

After fresh Linux install, getting ORA-12560 protocal adaptor error

 
SOLVED
Go to solution
Randy Hagedorn
Regular Advisor

After fresh Linux install, getting ORA-12560 protocal adaptor error

Hi,

I had to re-install RHEL 5 onto a system that was an Oracle DB server. After re-presenting the original LUNS to the system, the database starts, but I can not connect to it from clients. We get an ORA-12560 TNS:Protocol Adaptor Error.

I have tried using the iptables command to open port 1521, but I still can't connect.

What else can I check?

Thanks,
Randy
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: After fresh Linux install, getting ORA-12560 protocal adaptor error

>>> I have tried using the iptables command to open port 1521, but I still can't connect.

It's better if your stop iptables at:

service iptables stop

http://www.cryer.co.uk/brian/oracle/ORA12560.htm

"Oracle classify this as a ├в generic protocol adapter error├в . In my experience it indicates that Oracle client does not know what instance to connect to or what TNS alias to use."
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
TwoProc
Honored Contributor

Re: After fresh Linux install, getting ORA-12560 protocal adaptor error

from the client systems:

tnsping ;

So, if your database has a name of "PROD", then,

tnsping PROD;

If you don't get a response, then try pinging the server name.

ping .

From the above steps, you can see if you've got a basic network problem, or a SQLNet problem.

Also, look in the $ORACLE_HOME/network/admin/tnsnames.ora file, and make sure the database you're trying to connect to is in there, and for that listing, make sure that the port number, and the server name (or IP address) is correct.


Get back to us with the error codes from above.
We are the people our parents warned us about --Jimmy Buffett
Randy Hagedorn
Regular Advisor

Re: After fresh Linux install, getting ORA-12560 protocal adaptor error

John,
Thanks for the additional ways to test Oracle connectivity.

Randy