Fixed – ORA-12541: TNS no listener error
Yesterday my friend asked me about this error "ORA-12541 TNS no listener error" while connecting with oracle database. I told him about the below solution and it worked very well.
He suggested me to post this article on TechiesDigest so that this tutorial can help other newbie database administrators too.
ORA-12541 TNS no listener error
Now you have to follow below mentioned steps to resolve the ORA-12541 issue.
First check your listener status.
The above command will show the current status of your listener.
Start the listener, if listener is not running.
This command will start all your listener services.
Stop the listener, if listener is running.
This command will stop all your listener services.
Now restart the listener.
This command will restart all your listener services.
Note: If you want to see all the available listener commands. Type lsnrtcl help on command prompt and you will get all available options.
LSNRCTL for 32-bit Windows: Version 220.127.116.11.0 - Production on 02-JUL-2015 20:25:14
Copyright (c) 1991, 2010, Oracle. All rights reserved.
The following operations are available
An asterisk (*) denotes a modifier or extended command:
start stop status
services version reload
save_config trace change_password
quit exit set*
One last and very important thing which you have to do.
Open sqlnet.ora file and make the changes as suggested.
Change NTS to NONE
SQLNET.AUTHENTICATION_SERVICES = (NONE)
Now restart the listener services and your listener problem ORA-12541 will be resolved.
This solution worked for my friend and I hope it will also work for you, if not please write on comment section. I will try to provide you the solution at the earliest.
Subscribe to get free tech advice, tips and in-depth articles.