TNS-12541: TNS:no listener
Dear Team,
When I am trying to start my LISTENER on my Windows server manually its showing error like The OracleOraDb11g_home1TNSListener service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.I Have created LISTENER twice also.When I am checking status on CMD prompt below is error is showing.Please help me out how to solve the issue.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<host name>)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Regards,
Praveen K
hi,
first be sure that oracle database service and listener service are started as same OS username and this user was in the list of group oracle dba
second stop all services and delete all listeners using netca and delete all files(listener.ora, tnsnames.ora) from network\admin\ folder
after create new listener using netca and check hostname in listener.ora, if everything is ok create new connection string in tnsnames .ora and then do following commands on cmd and put here result.
lsnrctl stop
lsnrctl start
lsnrctl status
tnsping myDb
Ramin Hashimzade
Similar Messages
-
TNS-12541: TNS: no listener (has to input user name)
Hi!
I have installed Oracle10g successful. I have tested the connection in Net Manager and is successful in condition that I change the user name to system. How can I preset the user name, so that the system will not prompt me for input when I sqlplus?
Enclosed please find the output:
C:\>tnsping train
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 -
Production on 21-9月 -2005 12:10:04
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=
(CONNECT_DATA=
(SERVICE_NAME=train.plusten.com.cn))(ADDRESS=
(PROTOCOL=TCP)(HOST=210.245.166.72)
(PORT=1521)))
TNS-12541: TNS:no listener
C:\>sqlplus system/manager@train
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9
月 21 12:14:16 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12541: TNS:no listener
Enter user-name:system //will prompt for user name and password
Enter password:
Connected to:
Oracle Database 10g Release 10.2.0.1.0 - Production
SQL> exit
Disconnected from Oracle Database 10g Release
10.2.0.1.0 - Production
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-9月 -2005 16:43:31
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 21-9月 -2005 15:01:50
Uptime 0 days 1 hr. 41 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=orange.plusten.com.cn)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "train.plusten.com.cn" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Service "trainXDB.plusten.com.cn" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Service "train_XPT.plusten.com.cn" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
The command completed successfullyI am sorry. I am newbie in Oracle and still do not know how to solve it. Even I try sqlplus system/[email protected], the outcome is still the same. Enclosed pleae find my sqlnet.ora, listener.ora and tnsnames.ora files:
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
NAMES.DEFAULT_DOMAIN = plusten.com.cn
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = ORANGE)(PORT = 1521))
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
TRAIN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORANGE)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = train.plusten.com.cn)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
) -
Dear Team,
When I am trying to start my LISTENER on my Windows server manually its showing error like The OracleOraDb11g_home1TNSListener service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.I Have created LISTENER twice also.When I am checking status on CMD prompt below is error is showing.Please help me out how to solve the issue.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<host name>)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Regards,
Praveen KHi,
Did you check whether the windows service for listener is up and running? if not please start it, by typing "services.msc" in run window and start the service. Then check whether you have listener.ora file in $ORACLE_HOME/network/admin and also post listener.ora contents.
Regards,
Pradeep. V -
TNS-12541: TNS:no listener after 10g DB installation
After installing Oracle 10g DB on my PC (Windows XP), I went to SQLPLUS, but when I connected using system user, it gave me an error:
TNS-12541: TNS:no listener
Then, I tried to check the status of the listener as below.
D:\oracle\product\10.1.0\Db_2\BIN>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Pro
:34
Copyright (c) 1991, 2004, Oracle. All rights reserv
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(K
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or director
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(H
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
Not sure what is going on here. Any pointers ?Set the enviroment variable ORACLE_HOME , ORACLE_SID
and then issue lsnrctl status
D:\oracle\product\10.1.0\Db_2\BIN>lnsrct status -
LSNRCTL is missing in 9iLite installation; TNS-12541: TNS:no listener
I have installed Oracle9i Lite on Windows XP Professional
(Build 2600). I installed the Mobile Server and then the
development kit, but after all of this, it appears that no
listener has been installed. I cannot even find the
LSNRCTL.exe file anywhere on my hard drives. Maybe it's in a
JAR somewhere in the installation set, but shouldn't this file
have been copied down and installed? The only two services
listed are Oracle Lite Multiuser Service and
OracleOUIHomeClientCache. The error which I receive
consistently through every means of attempting to connect to
the local Oracle instance (such as the sample database) is TNS-
12541: TNS:no listener.
Am I missing something here? I installed the 9i Lite version
because the 8i Personal Edition is not supported on Windows XP.
Thanks in advance!Good afternoon,
This has boggled me for the past six hours so I'm asking for assistance.
I downloaded "Oracle9i Release 1 (9.0.1) for Microsoft Windows NT/2000/XP (Enterprise/Standard/Personal Edition)" for my own personal use and to get experience installing a database on my PC.
I'm getting the ORA-12541: TNS:no listener error message when I try to connect to my database. I try to find and run the LSNRCTL utility, but it's not present on my machine. I've re-installed 9i 9.0.1 enterprise again and again, the program isn't on my machine. The HTML help file (http://www.csis.gvsu.edu/GeneralInfo/Oracle/network.920/a96580/admintoo.htm#487040) for Oracle Net says the program SHOULD be in oracle/bin but it's not.
Any other ideas? The ones recommended above helped me to research the topic, but still haven't given me a resolution, and I'm at a wall here.
Thank you.
-Brad -
Sporadically (although it is quite often) TNS-12541: TNS:no listener
Hi,
im struggling with a listener issue. I have several Oracle/SAP environments i am responsible for. Most of them run fine but on some i get the error: TNS-12541: TNS:no listener. On one of them this occurs quite a lot actually.
So what is the case?
Im running Oracle 10.2.04 on windows 2003, of course the listener is running (DUH). Also the tnsnames.ora sqlnet.ora and listener.ora are defined properly. Most of the cases it is not even causing issues (since it SAP is running on top of it). However some actions do start a process outside the SAP instance, like applying a SAP transport. And on those cases sometimes I get the above mentioned error.
So I got suspicious and started a tnsping in a loop. It turns out the 12541 pops up quite regularly, enough to make me worried. The frequency change from several times a minute to once every couple of minutes.
It doesn’t seems to be an network issue since a ping to wherever always goes fine.
So I turned on tracing (in the listener.ora) on to level ADMIN, turns out there are no trace entries from the failed tnsping. I moved up the level to SUPPORT. Same, no trace entries, there is a time gap on the moments that tnsping fails. The same counts for the listener.log…no logging of the failed occurrences.
Then I added a R3trans –d in the loop. Of course this check also fails every now and then and the following info I find in the sqlnet.log
Fatal NI connect error 12541, connecting to:
(DESCRIPTION=(SDU=32768)(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=prd01)(PORT=1527))(CONNECT DATA=(SID=PRD)(GLOBALNAME=PRD.WORLD)(CID=(PROGRAM=I:\usr\sap\PRD\SYS\exe\run\R3trans.exe)(HOST=PRD 01)(USER=prdadm))))
VERSION INFORMATION:
TNS for 64-bit Windows: Version 10.2.0.2.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 10.2.0.2.0 - Production
Time: 15-FEB-2011 12:09:35
Tracing not turned on.
Tns error struct:
ns main err code: 12541
TNS-12541: TNS:no listener
ns secondary err code: 12560
nt main err code: 511
TNS-00511: No listener
nt secondary err code: 61
nt OS err code: 0
See here the related parameter files:
Listener.ora:
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = SID.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = SID)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = host)
(PORT = 1527)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SDU = 32768)
(SID_NAME = SID)
(ORACLE_HOME = I:\oracle\SID\102)
Sqlnet.ora
AUTOMATIC_IPC = ON
TRACE_LEVEL_CLIENT = OFF
NAMES.DEFAULT_DOMAIN = WORLD
NAME.DEFAULT_ZONE = WORLD
SQLNET.EXPIRE_TIME = 0
SQLNET.AUTHENTICATION_SERVICES = (NTS)
TCP.NODELAY=YES
Tnsnames.ora
PRD.WORLD=
(DESCRIPTION =
(SDU = 32768)
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = host)
(PORT = 1527)
(CONNECT_DATA =
(SID = SID)
(GLOBAL_NAME = SID.WORLD)
Some things I am wondering about, although I don’t think they are related to the problem:
-should the parameter DEFAULT_SDU_SIZE be defined in the sqlnet.ora as well?
-CONNECT_TIMEOUT_LISTENER is obsolete I read since Oracle 9i?
-AUTOMATIC_IPC is also obsolete?
My next step would be to make a client and server trace (TRACE_LEVEL_CLIENT, TRACE_LEVEL_SERVER in sqlnet.ora)
Im wondering if I should experiment with the following parameters:
SQLNET.INBOUND_CONNECT_TIMEOUT (in sqlnet.ora) (120?)
INBOUND_CONNECT_TIMEOUT_ (in listener.ora) (120?)
QUEUESIZE (in listener.ora) (although I don’t think that would do anything here since it should more solve issues like simultaneous logon of many processes to the database…which is not the case in a SAP environment)
Any ideas/clues? thanks in advance!The error, in technical terms, means that the client used a socket connect() call to connect to a network listener endpoint (port, protocol and IP) - and the connection was refused as the endpoint does not exist. In other words, no server process is running a socket listen() call on that endpoint.
With respect to the Listener, it means that the Listener quite likely is not running.
With your testing, you need to determine whether that Listener is up and running at the time that the client gets the connection refused (no listener) error.
It sounds like your Listener is cycling/restarting every so often. Do not use Windows as a server o/s, so I'm not aware of any specific issues on the Windows side with Oracle Listeners... and how the NT services daemon act wrt to the listener (e.g. dependencies exist and if a server is restarted that the listener depends on, it will also restart). Perhaps IP DHCP leases expiring regularly?
What does the Event log say? If WebDAV/ftp ports configured for the database instance? If so, test these ports too at the time the 1521/tcp connection to the server is failing. -
Oracle 8.1.7: TNS-12541: TNS No Listener
The OracleHOME_SVRTNSListener service is running. The listener.log file correctly states this fact. When I connect from SQL*Plus Worksheet (username@dbname/pw) it do connects me. Connecting from Dev 6i forms is also ok. Accessing from PHP script also works well. However, all of the below cases give this error "TNS-12541: TNS No Listener".
a. Connecting from SQL*Plus.
b. exp/imp utility program. (if i misspell connect string, the error is as expected i.e. TNS protocol adapter error. For correct connect string as defined in TNSNames.ora, the above error appears).
c. Running lsnrctl.exe and giving 'stop' command also gives the same error. However, 'start' says that the aformentioned service is already running and then gives the same error message.
Plz Note:
The last thing I did after which this problem got in was to run Database Configratio Assistant to make script of a 3rd DB on my system (Intel P-IV, Win 2K A server) and then run the generated batch file.
Also note that the newly created DB is working fine and accessable as well i.e. from sql plus worksheet and php scripts
The sqlnet.log file does record the error but tells the same story "error 12541 - TNS No Listener".
There is an interesting situation to tell. I have 8i on another machine as well (call it B). when I configure and connect using B's exp/imp utility or sql*plus or anything to A (the problamatic oracle machine), it works fine i.e.
exp [email protected]
works exactly fine. It connects to mydb on machine A using system account and starts exporting. But Why doesn't this mechanism works on machine A itsself???Here is the output of few commands (all given on server machine)
Listener.ora
# LISTENER.ORA Network Configuration File: C:\oracle\orasvr81\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = billingserver)(PORT = 1521))
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
(ADDRESS = (PROTOCOL = TCP)(HOST = billingserver)(PORT = 2481))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\orasvr81)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = billing)
(ORACLE_HOME = C:\oracle\orasvr81)
(SID_NAME = mydb)
tnsnames.ora
# TNSNAMES.ORA Network Configuration File: C:\oracle\orasvr81\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA.NTR1.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
mydb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = billingserver)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mydb)
tnsping mydb
TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 20-OCT-2004 09:18:01
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=billingserver)(PORT=1521))
TNS-12541: TNS:no listener
lsnrctl stop listener
LSNRCTL for 32-bit Windows: Version 8.1.7.0.0 - Production on 20-OCT-2004 09:27:42
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
The command completed successfully
lsnrctl start listener
---------------------------------------------------LSNRCTL for 32-bit Windows: Version 8.1.7.0.0 - Production on 20-OCT-2004 09:27:53
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 8.1.7.0.0 - Production
System parameter file is C:\oracle\orasvr81\network\admin\listener.ora
Log messages written to C:\oracle\orasvr81\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=billingserver.ntr1.com)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=billingserver.ntr1.com)(PORT=2481))(PROTOCOL_STACK=(PRESEN TATION=GIOP)(SESSION=RAW)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
STATUS of the LISTENER
Alias listener
Version TNSLSNR for 32-bit Windows: Version 8.1.7.0.0 - Production
Start Date 20-OCT-2004 09:27:53
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\orasvr81\network\admin\listener.ora
Listener Log File C:\oracle\orasvr81\network\log\listener.log
Services Summary...
PLSExtProc has 1 service handler(s)
mydb has 1 service handler(s)
The command completed successfully
P.N. The tnsnames.ora file is the same on server (A) as on client machine (B). Everthing (imp/exp/sql plus/tnsping mydb) works fine from B, non of them works from machine A , don't know why??? -
TNS-12541 TNS: No Listener error HELP!!!
Hello,
We have installed Oracle 8.0.5 on Windows 2000.
Oracle was well installed (no errors) but sometimes we can connect to the database (via SQL+ or by a tnsping on the client), sometimes we cannot and it shows above message (TNS-12541 TNS: No Listener). That is very strange: the listener do really exist and is running. (Service is started). I tried to stop and start manually the listener (tnslnr80) but the 'start' failed (it was too long so I killed the command).
Can someone help us to solve this or to understand what happens?
Thx a lot
NivotianaMohammed ... wrote:
Thanks all your help and support..
I reconfigured the instant client following below link :
[http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html]
and followed your advises as well and i can now connect to database though any user
But unfortunately, i cannot connect as sys user, it gave me below error :
C:\Users\mohammed>sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue May 7 17:29:56 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
C:\Users\mohammed>
Could you please advise..
Regards,
MohammedIf the client is on the same machine as the database, then you don't have ORACLE_SID set.
More likely the database is on a different server, you have to specify 'sqlplus sys/pswd@dbname'.
And your db will need to be configured to allow remote sysdba authorization, which is not a good idea from a security perspective. -
TNS-12541: TNS: no listener when execute startdb
Dear,
i have install a nw04s System ABAP + J2EE and try to start
the db with startdb. I got this error:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = SAP.WORLD) (PROTOCOL = TCP) (HOST = kratie) (PORT = 1527))) (CONNECT_DATA = (SID = SOT) (GLOBAL_NAME = SOT.WORLD)))
TNS-12541: TNS:no listener
V2 connect is not available. Terminating
/usr/sap/SOT/SYS/exe/run/startdb: Terminating with error code 14
I could start the listner with the oracle user manually
and afterward start the stardb or startsap. When i first
start the listener that way then it is possible to start
startsap or stardb with no problem. But why do i have
to start the listener by hand?
best regards,
Ly-Na PhuHi Naidu,
thanks for you answer. Now i understand that the listener
ist not configured by sapinst automatically and that one
have to start it manually. At windows sapinst do that and
the listener ist comming automatically when booting.
At linux it has to be put in the startup procedure e.g.
in the runlevel 3 rc3.d. If not doing so we have to start
the listener manually. But everything else work fine.
Thanks,
Ly-Na Phu -
TNS-12541: TNS:no listener after (SERVER=SHARED) set up
Hello lads and gents,
could anybody help me with following please?
Background
when trying to access (run PL/SQL procedure which is then accessing Oracle 7 db via dblink) oracle 8 db using db link on Oracle 10G we are getting the following error:
ORA-24777: use of non-migratable database link not allowed
Solution
Activate connection pooling --> enable to connect via dispatchers
Put to connection string in tnsnames.ora parameter (SERVER=SHARED)
Consequences
Now when running the functionality --> first run is o.k but then something drops down TNS service on Oracle 8 server (middle database). I assume so cause every other attempt from whatever client ends up as TNS-12541: TNS:no listener error.
Questions
How to experience what could drop down the listener service?
What should i do ? check what logs, services?
Whatever help is warmly welcome.
If you need any further info just tell please.
Regards Tomas.you can find listerner.log file under $ORACLE_HOME/network/log directory.
-
TNS-12541: TNS: no lilstener
I installed Oracle 9i on a linux machine.
Everything works well on it.
Now I want to access the database from a win2k machine.
Unforuately, the above message pops up.
Here is the details.
Used parameter files:
d:\oracle\ora92\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = a.b.c.d)(PORT = 1521))) (CONNECT_DATA = (SID = dbsid) (SERVER = DEDICATED)))
TNS-12541: TNS:no listener
I "lsnrclt status" on linux, it is normal
Did I miss anything?
Thanks a lot!stupid, i have firewall on the win2k box.
-
'TNS-12541: TNS:리스너가 아닙니다.' 라는 오류가 나오면 리스너가 기동을 하지 않습니다.
'TNS-12541: TNS:리스너가 아닙니다.' 라는 오류가 나오면 리스너가 기동을 하지 않습니다.
로컬 로그인은 가능합니다.
정상적으로 사용하다 갑자기 이렇게 나오네요.
윈도 서버 서비스관리자에서 기동을 시키면 오류2:지정된 파일을 찾을수없습니다. 이런 메시지가 나옵니다.
답변 부탁드립니다. -
TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error
Dears
One of the solution , is to check the listener log , in my case I got this error when the size of logfile reached 4GB , so notepad will not be able to write to this file , then I just rename it and generated automatically a new log and listener work fine.
RegardsMody82 wrote:
Dears
One of the solution , is to check the listener log , in my case I got this error when the size of logfile reached 4GB , so notepad will not be able to write to this file , then I just rename it and generated automatically a new log and listener work fine.
RegardsIt sounds like you're running Windows. In Unix/Linux environments you can configure LogRotate to avoid that. It rotates the logs on a fixed bases and can delete them based on an aging policy. This way this problem never occurs to begin with.
I believe there are log rotate equivalents available, you should look around for them. I see one on SourceForge but I haven't tried it myself. -
Changin from IPs to hostnames in tnsnames and listener heads to TNS-12541
Hello.
In order to prevent problems and extrawork in future with planned IP changes, i want to change the tnsnames and listener.ora server configuration files.
Now they are using the IP in the HOST parameter, and I want to use the hostname. But it doesnt works:
TNSNAMES.ORA:
VCSBD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = 62.37.231.78)(PORT = 1524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vcsbd)
LISTENER.ORA:
LISTENER_VCSBD=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=62.37.231.78)
(PORT=1524)
(ADDRESS=
(PROTOCOL=ipc)
(KEY=vcsbd)
SID_LIST_LISTENER_VCSBD=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=vcsbd)
(SID_NAME=vcsbd)
(SERVICE_NAME=vcsbd)
(ORACLE_HOME=/usr/oracle/product/11.2.0)
TESTING: --
$ tnsping vcsbd
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:32:30
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Archivos de parámetros utilizados:
/usr/oracle/product/11.2.0/network/admin/sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = 62.37.231.78)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = vcsbd)))
Realizado correctamente (0 mseg)I want to change the HOST parameter to server hostname, in order to make oracle resolve the hostname from the /etc/hosts.
But wen I change it, I get TNS-12541 errors when tnsping. Ping works, but tnsping not.
updating TNSNAMES:
VCSBD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = servervcs)(PORT = 1524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vcsbd)
updating LISTENER.ORA
LISTENER_VCSBD=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=servervcs)
(PORT=1524)
(ADDRESS=
(PROTOCOL=ipc)
(KEY=vcsbd)
SID_LIST_LISTENER_VCSBD=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=vcsbd)
(SID_NAME=vcsbd)
(SERVICE_NAME=vcsbd)
(ORACLE_HOME=/usr/oracle/product/11.2.0)
TESTING: ---
$ cat /etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 servervcs localhost.localdomain localhost
62.37.231.78 servervcs
#62.37.231.68 servervcs
::1 localhost6.localdomain6 localhost6
$ lsnrctl reload LISTENER_VCSBD
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:37:05
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Conectándose a (ADDRESS=(PROTOCOL=tcp)(HOST=servervcs)(PORT=1524))
TNS-12541: TNS:no hay ningún listener
TNS-12560: TNS:error del adaptador de protocolo
TNS-00511: No hay ningún listener
Linux Error: 111: Connection refused
Conectándose a (ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd))
El comando ha terminado correctamente
$ lsnrctl status LISTENER_VCSBD
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:37:12
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Conectándose a (ADDRESS=(PROTOCOL=tcp)(HOST=servervcs)(PORT=1524))
TNS-12541: TNS:no hay ningún listener
TNS-12560: TNS:error del adaptador de protocolo
TNS-00511: No hay ningún listener
Linux Error: 111: Connection refused
Conectándose a (ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd))
LISTENER STATUS
Alias LISTENER_VCSBD
Versión TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Fecha de Inicio 28-MAY-2012 12:04:16
Tiempo Actividad 130 días 1 hr. 32 min. 56 seg.
Nivel de Rastreo off
Seguridad ON: Local OS Authentication
SNMP OFF
Parámetros del Listener /usr/oracle/product/11.2.0/network/admin/listener.ora
Log del Listener /usr/oracle/diag/tnslsnr/efacturaES-BD1/listener_vcsbd/alert/log.xml
Recibiendo Resumen de Puntos Finales...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=62.37.231.78)(PORT=1524)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd)))
Resumen de Servicios...
El servicio "vcsbd" tiene 2 instancia(s).
La instancia "vcsbd", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
La instancia "vcsbd", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "vcsbdXDB" tiene 1 instancia(s).
La instancia "vcsbd", con estado READY, tiene 1 manejador(es) para este servicio...
El comando ha terminado correctamente
$ ping servervcs
PING servervcs (127.0.0.1) 56(84) bytes of data.
64 bytes from servervcs (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
64 bytes from servervcs (127.0.0.1): icmp_seq=2 ttl=64 time=0.013 ms
--- servervcs ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.013/0.015/0.017/0.002 ms
$ tnsping vcsbd
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:32:33
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Archivos de parámetros utilizados:
/usr/oracle/product/11.2.0/network/admin/sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = servervcs)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = vcsbd)))
TNS-12541: TNS:no hay ningún listenerAny clue?
what i'm doing wrong? what did I forget?
Regards
Edited by: elvegaa_esp on 05-oct-2012 4:48Sure
$ echo $HOSTNAME
AOC-BD1
$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr **:**:**:**:**:**
inet addr:192.168.76.8 Bcast:192.168.76.255 Mask:255.255.255.0
inet6 addr: fe80::221:85ff:fe35:74c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:281062361 errors:0 dropped:0 overruns:0 frame:0
TX packets:68084207 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1817935227 (1.6 GiB) TX bytes:3856945523 (3.5 GiB)
Base address:0x3000 Memory:dfb40000-dfb60000
eth0:1 Link encap:Ethernet HWaddr **:**:**:**:**:**
inet addr:192.168.76.10 Bcast:192.168.76.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0x3000 Memory:dfb40000-dfb60000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:210984342 errors:0 dropped:0 overruns:0 frame:0
TX packets:210984342 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3935512631 (3.6 GiB) TX bytes:3935512631 (3.6 GiB)
$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 AOC-BD1 localhost.localdomain
192.168.76.8 AOC-BD1 localhost.localdomain
$ cat /usr/oracle/product/10.2.0/network/admin/tnsnames.ora
AOC-BD1_AOCPROD_HN=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=AOC-BD1)(Port=1521)))(CONNECT_DATA=(service_name=aoc-bd1_aocprod)(INSTANCE_NAME=aocprod)(SID=aocprod)))
$ cat /usr/oracle/product/10.2.0/network/admin/listener.ora
listener_aoc-bd1_aocprod=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=AOC-BD1)
(PORT=1521)
(ADDRESS=
(PROTOCOL=ipc)
(KEY=aoc)
SID_LIST_listener_aoc-bd1_aocprod=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=aoc-bd1_aocprod)
(SID_NAME=aocprod)
(SERVICE_NAME=aocprod)
(ORACLE_HOME=/usr/oracle/product/10.2.0)
STARTUP_WAIT_TIME_listener_aoc-bd1_aocprod=0
CONNECT_TIMEOUT_listener_aoc-bd1_aocprod=0
$ lsnrctl status listener_aoc-bd1_aocprod
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 08-OCT-2012 13:20:17
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=AOC-BD1)(PORT=1521))
STATUS of the LISTENER
Alias listener_aoc-bd1_aocprod
Version TNSLSNR for Linux: Version 10.2.0.3.0 - Production
Start Date 17-DEC-2011 09:49:05
Uptime 248 days 13 hr. 13 min. 56 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /usr/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /usr/oracle/product/10.2.0/network/log/listener_aoc-bd1_aocprod.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AOC-BD1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=aoc)))
Services Summary...
Service "aoc-bd1_aocprod" has 1 instance(s).
Instance "aocprod", status UNKNOWN, has 1 handler(s) for this service...
Service "aocprod" has 1 instance(s).
Instance "aocprod", status READY, has 1 handler(s) for this service...
Service "aocprodXDB" has 1 instance(s).
Instance "aocprod", status READY, has 1 handler(s) for this service...
Service "aocprod_XPT" has 1 instance(s).
Instance "aocprod", status READY, has 1 handler(s) for this service...
The command completed successfully
$ tnsping AOC-BD1_AOCPROD_HN
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 08-OCT-2012 13:20:37
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=AOC-BD1)(Port=1521)))(CONNECT_DATA=(service_name=aoc-bd1_aocprod)(INSTANCE_NAME=aocprod)(SID=aocprod)))
OK (0 msec) -
Error message "12541" TNS-no listener
I have Oracle 10g version 10.1 installed on Windows XP Professional and am trying to open up forms builder, but I keep getting this message. Can anyone tell me what I need to do?
This is all the information asked for, but I noticed there is no LISTENER.ORA in the network file, so that may be the problem. How can I correct it?
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Thomasene>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : anthony-ywpqhfe
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : houston.rr.com
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe
rnet NIC
Physical Address. . . . . . . . . : 00-E0-B8-70-CC-98
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . : houston.rr.com
Description . . . . . . . . . . . : Wireless-G Notebook Adapter WPC54G V
3
Physical Address. . . . . . . . . : 00-16-B6-D2-A1-A1
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 24.93.41.125
24.93.41.126
Lease Obtained. . . . . . . . . . : Tuesday, June 05, 2007 5:43:45 PM
Lease Expires . . . . . . . . . . : Wednesday, June 06, 2007 5:43:45 PM
C:\Documents and Settings\Thomasene>lsnrctl stat
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 05-JUN-2007 20:26
:43
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.100)(PORT=1521
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
32-bit Windows Error: 60: Unknown error
# tnsnames.ora Network Configuration File: C:\oracle\oradev\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = anthony-ywpqhfe)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl1)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.103)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
sqlnet.ora Network Configuration File: C:\oracle\oradev\network\admin\sqlnet.ora
Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
DEFAULT_SDU_SIZE = 8761
Maybe you are looking for
-
Dell Inspiron 1721, 2g ram, SP1 install, latest ps cs3 updates installed. Vista home A little history that might shed a light on the problem I purchased PS CS3 from a reprital retail store, but when I got home the jewel case was empty. I contacted Ad
-
Java.io and sun.io
What is difference between "java.io" and "sun.io", I can not find the "sun.io" in Java2 API and where can find it.
-
Creating a Dynamic Tabular Form
Hi Everyone, This is a question aimed at Denes Kubicek, but if he is not on the forum today then maybe someone else could help me. I am trying to create a tabular form on a table view. The thing is that the primary key is not populated using a trigge
-
The install trail of BI extractor and impact for the application area
Hi, I've heard BI extractor was newly installed to our system. And I have been investigating the impact from installing BI extractor. My qustions are; Do you know transaction codes or something to see how BI extractor is installed? Do you think BI ex
-
Error when creating child account family sharing
I'm trying to get my whole family to participate in iOS 8 / iCloud Family sharing - both my children are younger than 13 years of age, so I need to create children accounts for them. Problem is that we use VISA-Dankort which seems to be debet cards,