- 论坛徽章:
- 0
|
11g的服务器,配好了listener,数据库也处于open状态了,但客户端就是无法连通服务器
在客户端的net manager中测试时提示ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
而在命令提示符下直接连接数据库则会提示ORA-12560: TNS:protocol adapter error
但是使用tnsping时能反馈正常信息:
- C:\Windows\System32>tnsping dk
- TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 23-MAY-2
- 011 20:21:21
- Copyright (c) 1997, 2010, Oracle. All rights reserved.
- Used parameter files:
- e:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
- Used TNSNAMES adapter to resolve the alias
- Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
- (HOST = taco.sea.nr)(PORT = 1521))) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_N
- AME = dark)))
- OK (1130 msec)
-
复制代码 而在服务器上:- [oracle@taco ~]$ lsnrctl status
- LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-MAY-2011 21:07:29
- Copyright (c) 1991, 2009, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=taco.sea.nr.)(PORT=1521)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER
- Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
- Start Date 23-MAY-2011 20:19:59
- Uptime 0 days 0 hr. 47 min. 29 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /u01/oracle/11g/database/network/admin/listener.ora
- Listener Log File /u01/oracle/diag/tnslsnr/taco/listener/alert/log.xml
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=taco.sea.nr)(PORT=1521)))
- Services Summary...
- Service "ORCLXDB.dark.sea.nr" has 1 instance(s).
- Instance "dark", status READY, has 2 handler(s) for this service...
- Service "dark.dark.sea.nr" has 1 instance(s).
- Instance "dark", status READY, has 1 handler(s) for this service...
- The command completed successfully
复制代码 |
|