Monday, February 3, 2014

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

How did I even get into this ?
I just happen restart my web server which is connected to oracle 10g many time. Suddently this issue came out.
But how to get out ?

If you try to look for this solution over the web you would certainly have many suggestion among them, the most common is:

  1. Check if a database instance up and running
  2. Check the output of the lsnrctl service command and see what services are registered.
  3. Check if you has SERVICE_NAME correctly specified when connecting to the instance.
  4. If it happens that database instance stared before listener did sometimes you just need to wait a little or you can execute alter system register in order to register the instance.
But please don't turn everything upside down. Cool down and especially don't change any thing.
Do this.
Check the listener status: 
cmd> set oracle_sid = yourSid
 cmd> lsnrctl status

If it is successful withou any error, your half blessed.


Stop all programs currently running in your PC, and RESTART IT

Then after restarting:

cmd> set oracle_sid = yourSid
cmd> sqlplus /nolog
sql> connect username/password@yourSid

Congratulation you should now be in...otherwise throw me some comments.



 

No comments:

Post a Comment