2015年5月8日 星期五

【Oracle ERP Note 】WARNING: ORA-12541: TNS:no listener


Problem 

使用 emca -config dbcontrol db 命令來建立 Database Control 時,出現 WARNING: ORA-12541: TNS:no listener 訊息

Studylsnrctl status 命令檢查 TNS Listener 狀態,事實上此 listner 並沒被啟動。

[11.2.2]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 08-MAY-2015 17:57:31

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Solution 很簡單,只要下 lsnrctl start 指令啟動此 TNS Listener 即可。

[11.2.2]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 08-MAY-2015 17:57:51

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Starting /u01/proddb/proddb/11.2.2/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/proddb/proddb/11.2.2/network/admin/TEST_srv/listener.ora
Log messages written to /u01/proddb/proddb/11.2.2/log/diag/tnslsnr/srv/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv.xxx.com)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date                08-MAY-2015 17:57:52
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/proddb/proddb/11.2.2/network/admin/TEST_srv/listener.ora
Listener Log File         /u01/proddb/proddb/11.2.2/log/diag/tnslsnr/srv/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv.xxx.com)(PORT=1521)))
The listener supports no services
The command completed successfully
Reference 1. Oracle listener lsnrctl tips, http://www.dba-oracle.com/tips_oracle_lsnrctl.htm

沒有留言:

張貼留言

prettyPrint();