Thread: ORA-12541 TNS :no listener.


Permlink Replies: 19 - Pages: 2 [ 1 2 | Next ] - Last Post: Jun 2, 2009 10:52 AM Last Post By: Sänjay
user469969

Posts: 20
Registered: 11/30/05
ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 9:15 PM
Click to report abuse...   Click to reply to this thread Reply
Hi All,

I have installed oracle server on my machine, but not able to login Scott with password as tiger.

The error is ORA-12541 no listener.

So I have changes an entry in the tnsnames.ora, also added a listener to listener.ora for same entry.

Can you please suggest any next steps in this direction?

Thanks
Shasikkumar Vee...

Posts: 132
Registered: 09/11/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 9:40 PM   in response to: user469969 in response to: user469969
Click to report abuse...   Click to reply to this thread Reply
please check whether the listener service is up and running or else try lsnrctl and start the listener
user469969

Posts: 20
Registered: 11/30/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 9:47 PM   in response to: Shasikkumar Vee... in response to: Shasikkumar Vee...
Click to report abuse...   Click to reply to this thread Reply
Hi,

Thanks for the reply.

I have started the listener but now while connecting getting an error
ORA-12154 TNS:could not resolve the service name.

Can you please help with some next steps

Thanks a lot
Shasikkumar Vee...

Posts: 132
Registered: 09/11/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 9:53 PM   in response to: user469969 in response to: user469969
Click to report abuse...   Click to reply to this thread Reply
Do u have any domain name set....
like .us.oracle.com

Or else please check the sqlnet.ora and tnsnames.ora file
Trinath Somanchi

Posts: 137
Registered: 12/16/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 10:04 PM   in response to: Shasikkumar Vee... in response to: Shasikkumar Vee...
Click to report abuse...   Click to reply to this thread Reply
Hi,

check the user name and password.

if u r connecting like
SQL> sqlplus scott/tiger@oracle9i

then check whether the service oracle9i is present in tnsnames.ora
if not edit it and shutdown and restart the databse.

Trinath Somanchi,

user469969

Posts: 20
Registered: 11/30/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 10:52 PM   in response to: Trinath Somanchi in response to: Trinath Somanchi
Click to report abuse...   Click to reply to this thread Reply
Hi Sashi/Trinath

I am getting a bit confused.....so let me start again

While installing the oracle server, the insatalltaion asks you for
1) SID
2) Global Database Name

so i provided the following values

SID=practice
Global Database Name=axxx.byyy

The tnsoranames conatins the follwing enrty

axxx.byyy.com=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.210.18.39)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = practice)
)
)

AND listener.ore contains the following enrty

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.210.18.39)(PORT = 1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\OraHome1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = UKOBA)
(ORACLE_HOME = D:\OraHome1)
(SID_NAME = UKOBA)
)
(SID_DESC =
(GLOBAL_DBNAME = nhsdw1)
(ORACLE_HOME = D:\OraHome1)
(SID_NAME = nhsdw)
)
(SID_DESC =
(GLOBAL_DBNAME = axxx.byyy)
(ORACLE_HOME = D:\OraHome1)
(SID_NAME = practice)
)
)

and entry in the sql.net

NAMES.DEFAULT_DOMAIN = byyy.com

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

I am not able to figure out what is the reason for the error as there are enteries in all the three files.

It would be great help if you could throw some light on this topic

Thanks

Trinath Somanchi

Posts: 137
Registered: 12/16/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 11:03 PM   in response to: user469969 in response to: user469969
Click to report abuse...   Click to reply to this thread Reply
hi,
u have to connect like this

sqlplus scott/tiger@practice

it surely works as it worked for me

Trinath Somanchi,
Hyderabad.

ottkaresz

Posts: 870
Registered: 03/08/06
Re: ORA-12541 TNS :no listener.
Posted: Mar 12, 2006 11:39 PM   in response to: user469969 in response to: user469969
Click to report abuse...   Click to reply to this thread Reply
Hi

Do you have more than 1 oracle home in your server?
Allways the tnsnames.ora of the default oracle home is used for lookup the tns name.
Try to configure and test the tns name in the net configuration assistant.

Ott Karesz
http://www.trendo-kft.hu
user469969

Posts: 20
Registered: 11/30/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 13, 2006 1:42 AM   in response to: ottkaresz in response to: ottkaresz
Click to report abuse...   Click to reply to this thread Reply
Hi Trinath/Ott,

Sorry again i'm not able to connect through scott/tiger@practice and still giving me an error could not resolve the service name.

Also i have two Oracle Home on my machine.

Thanks
Shasikkumar Vee...

Posts: 132
Registered: 09/11/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 13, 2006 2:24 AM   in response to: user469969 in response to: user469969
Click to report abuse...   Click to reply to this thread Reply
Please include the domain name also in your host string as like your tnsnames.ora file..

If it does give the same problem,

Please edit below setting in the sqlnet.ora file

SQLNET.AUTHENTICATION_SERVICES=

(ie) remove the (NTS) in the right side
user469969

Posts: 20
Registered: 11/30/05
Re: ORA-12541 TNS :no listener.
Posted: Mar 13, 2006 3:10 AM   in response to: Shasikkumar Vee... in response to: Shasikkumar Vee...
Click to report abuse...   Click to reply to this thread Reply
Hi Sashi,

After removing the NTS enrty on right hand side becomes
SQLNET.AUTHENTICATION_SERVICES=
but the error is still the same.

Can you sugget something else....:)

Thanks a lot for your replies

ottkaresz

Posts: 870
Registered: 03/08/06
Re: ORA-12541 TNS :no listener.
Posted: Mar 13, 2006 3:25 AM   in response to: user469969 in response to: user469969
Click to report abuse...   Click to reply to this thread Reply
Hi

Copy your tnsnames.ora and sqlnet.ora files whoch contains the right tns name to the other oracle_home/network/admin, and try to connect again.
Test your tns name in the net configuration assistant.
Try to connect as scott/tiger@axxx.byyy.com and scott/tiger@axxx

Ott Karesz
http://www.trendo-kft.hu
ByjuJoy

Posts: 1
Registered: 12/30/07
Re: ORA-12541 TNS :no listener.
Posted: Dec 30, 2007 10:43 PM   in response to: ottkaresz in response to: ottkaresz
Click to report abuse...   Click to reply to this thread Reply
This was helpful information for me. I had ORA-12541 error and fixed it by commenting out NAMES.DEFAULT_DOMAIN = xxx line in sqlnet.ora file.
Thanks,
Byju Joy
user601600

Posts: 1
Registered: 10/22/07
Re: ORA-12541 TNS :no listener.
Posted: Mar 17, 2008 5:33 AM   in response to: Shasikkumar Vee... in response to: Shasikkumar Vee...
Click to report abuse...   Click to reply to this thread Reply
How to try lsnrctl
and start listener
Arish

Posts: 28
Registered: 03/13/08
Re: ORA-12541 TNS :no listener.
Posted: Mar 17, 2008 5:52 AM   in response to: user601600 in response to: user601600
Click to report abuse...   Click to reply to this thread Reply
you can start listener from windows administrative tools --- > services.

and if you are connecting on sqlplus on server itself than service name is not required. only sqlplus scott/tiger

check if sqlplus is working on server than ust copy the TNSNAMES.ora to client Oracle Home\network\admin folder

Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums