ORA-12560:TNS:protocol adapter error | How to resolve ORA-12560 error?

ORA-12560:TNS:protocol adapter error :

In my previous articles i have given the explanation of different types of errors like ORA-01000 error,ORA-03113 error,ORA-01722 error with examples and its probable solutions.In this article i will try to explain another most common error which will be searched 22 K times on google per month.As there are multiple type of errors like syntax errors,semantic errors,database connectivity error,Server Error.ORA-12560 error lies in connectivity error of oracle.To resolve this error user needs to check the connectivity of database with servers.There are some possible steps to resolve this error.

“ORA-12560 will be searched approximately 22000 times on google per month.”

Why ORA-12560 error will come?

There are lot of types of errors like syntax errors,server errors,connectivity error.ORA-12560 is server connectivity error when user tries to connect the database.Most of the times when user installs oracle first time this error will occur.

Situation :

First time installation

This error will occur mostly when user installs oracle first time and tries to connect it.When user tries to insert the username and password the following error come :

Enter password:
ERROR:  ORA-12560: TNS:protocol adapter error

This error will come if Listener is not up or problem in tnsnames or database is not up.After installation of oracle user needs to up all  the services including listener.

NO TIME TO READ CLICK HERE TO GET THIS ARTICLE

Resolution of the Error :

As i explained you this error pure connectivity error.When database tries to connect but it will not be able to get listener or services are not up then this error will come.To resolve this errors user needs to do some checkpoints and take corrective actions to resolve this error. Following are some checkpoint to resolve this error :

Solution 1:

Check listener status

User needs to check the listener status.The listener should be up and running.For checking the listener status kindly execute lsnrctl status.

Solution 2:

Check Oracle variables

User needs to check $ORACLE_HOME and $PATH variables.

Solution 3 :

Check updated patches

While connecting with SQL PLUS check that patches are updated one and if that are not updated then get the latest patch.

Solution 4 :

Services are up and running.

Check all services are up and running.

Solution 5 :

Check permissions and network firewall

Check all permissions as well as firewall settings

Solution 6:

Check TNSNAMES entry

User needs to check TNSNAMES entry.

Solution 7:

ORACLE_SID parameters

User needs to check the ORACLE_SID parameters set properly in registry.

These are above some possible solutions of this most common error.Hope everyone likes this article.Don’t forget to share this article by clicking the share button below.

Amit S

Oracle Consultant with vast experience in Oracle BI and PL/SQL Development. Amiet is the admin head of this website who contributes by preparing tutorials and articles related to database technologies. He is responsible to manage the content and front-end of the website.

Recent Posts

What is Root Cause Analysis (RCA) With real examples

In my previous article I have given details about application support engineer day to day…

4 weeks ago

Application Support Engineer Day to day responsibilities

In my previous articles I have given the roles and responsibilities of L1,L2 and L3…

4 weeks ago

What is mean by SLA ( Service Level Agreement) with Examples?

In my previous articles i have given the hierarchy of production support in real company…

1 month ago

What is Production support Hierarchy in organization?

In this article i would like to provide information about production support organization structure or…

1 month ago

What are roles and responsibilities for L3 Support Engineer?

In my previous article I have given roles for L1 and L2 support engineer with…

1 month ago

What are roles and responsibilities of L2 Engineer?

I have started this new series of how to become application support engineer. This article…

1 month ago