oracle的服务端是装在linux上的,在本地window下装了oracle客户端和plsql,
今天用plsql登录报错说:
listener does not currently know of service requested in connect descriptor
现在不是很清楚,客户端的这3个问题与服务端的这3个文件需要怎么样的对应关系。
...全文
2586打赏收藏
oracle listener.ora tnsnames.ora sqlnet.ora 问题
oracle的服务端是装在linux上的,在本地window下装了oracle客户端和plsql, 今天用plsql登录报错说: listener does not currently know of service requested in connect descriptor 现在不是很清楚,客户端的这3个问题与服务端的这3个文件需要怎么样的对应关系。
用 sqlplus /as sysdba登录,然后执行alter system register后
lsnrctl>status是
LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.2.0 - Production
Start Date 09-NOV-2008 22:30:51
Uptime 0 days 0 hr. 3 min. 33 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=core.company.com)(PORT=1521)))
Services Summary...
Service "cmdb.opsware.com" has 1 instance(s).
Instance "cmdb", status READY, has 1 handler(s) for this service...
Service "cmdb_XPT.opsware.com" has 1 instance(s).
Instance "cmdb", status READY, has 1 handler(s) for this service...
The command completed successfully
但当我stop,再start后,还是说The listener supports no services
LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.2.0 - Production
Start Date 09-NOV-2008 16:30:22
Uptime 0 days 0 hr. 27 min. 15 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=core.company.com)(PORT=1521)))
The listener supports no services
The command completed successfully