oracle的服务端是装在linux上的,在本地window下装了oracle客户端和plsql,
今天用plsql登录报错说:
listener does not currently know of service requested in connect descriptor现在不是很清楚,客户端的这3个问题与服务端的这3个文件需要怎么样的对应关系。
今天用plsql登录报错说:
listener does not currently know of service requested in connect descriptor现在不是很清楚,客户端的这3个问题与服务端的这3个文件需要怎么样的对应关系。
解决方案 »
- sqlldr不修改文件内容,如何导入含有分隔符的字符串
- 一个小开发但可能用到游标、存储过程、动态SQL,占位符,列名为变量,请求支持
- 请教OFS和RAC有什么区别?
- 求教个sql算法问题
- >>>>> 关于空值(NULL)的比较 <<<<<
- 一个极其奇怪的错误(A component named Field58 already exists!!)
- oracle10g的oem只有web方式吗?
- 用dbca创建数据库时出错,快来帮忙
- 急问:如何求得存放在数据库的时间和SUSDATE之间的差值?(在线等待)!
- OCCI 是那个版本以上的数据库才支持?对编译器有没有特别的要求?是不是随数据库一起安装的?
- 这个分段commit的语句写对了吗?
- 数据库怎样将成绩等级表和成绩表连接
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)
)
)
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
然后:alter system register;
LSNRCTL> start
LSNRCTL> status
结果还是一样的呢
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