oracle listener.ora tnsnames.ora sqlnet.ora 问题

myccc456 2008-11-09 04:40:56
oracle的服务端是装在linux上的,在本地window下装了oracle客户端和plsql,
今天用plsql登录报错说:
listener does not currently know of service requested in connect descriptor

现在不是很清楚,客户端的这3个问题与服务端的这3个文件需要怎么样的对应关系。
...全文
258 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
myccc456 2008-11-09
  • 打赏
  • 举报
回复
用 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
myccc456 2008-11-09
  • 打赏
  • 举报
回复
LSNRCTL> stop
LSNRCTL> start
LSNRCTL> status
结果还是一样的呢
vc555 2008-11-09
  • 打赏
  • 举报
回复
你在服务器端不加连接串登陆进去,比如:sqlplus / as sysdba
然后:alter system register;
myccc456 2008-11-09
  • 打赏
  • 举报
回复
在服务端

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
myccc456 2008-11-09
  • 打赏
  • 举报
回复
现在在linux服务端也出现这个错误。这个是在服务端的内容
tnsnames.ora
----
truth=(DESCRIPTION=(ADDRESS=(HOST=core.company.com)(PORT=1521)(PROTOCOL=tcp))(CO
NNECT_DATA=(SERVICE_NAME=truth)))
----
listener.ora
------
LISTENER =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=core.company.com)(PORT=1521))
(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))

SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=truth)
(ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1)
)
)
vc555 2008-11-09
  • 打赏
  • 举报
回复
在服务器端通过监听能否连进数据库?

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧