[oracle@localhost admin]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 19-APR-2016 10:51:08
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.230.129)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date 19-APR-2016 10:43:19
Uptime 0 days 0 hr. 7 min. 49 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.230.129)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
這樣啓動後遠程連接會造成
oracle ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
–查看監聽狀態
$lsnrctl status
- 解決方案
Oracle Net Manager修改配置
在下圖的Listeners->Database Services中配置要監聽的SID及ORACLE_HOME,退出保存。
在Liunx環境下使用netmgr命令完成!!!
[oracle@localhost bin]$ netmgr