- 最后登录
- 2013-2-24
- 在线时间
- 16 小时
- 威望
- 12
- 金钱
- 38
- 注册时间
- 2012-1-9
- 阅读权限
- 10
- 帖子
- 22
- 精华
- 0
- 积分
- 12
- UID
- 152
|
1#
发表于 2012-2-7 16:18:36
|
查看: 5325 |
回复: 2
环境:
主库 :rac2(192.168.0.162)
备库:memberstor-host(192.168.0.182)
两个库已经在broker下建立了dataguard,而且一切正常当中
但是当我尝试用rac2
操作:
dgmgrl>connect sys/******@192.168.0.182
时,就出现了:
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
listener.log07-FEB-2012 15:53:14 * (CONNECT_DATA=(SERVICE_NAME=192.168.0.182)(CID=(PROGRAM=dgmgrl@rac2)(HOST=rac2)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.182)(PORT=18267)) * establish * 192.168.0.182 * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
监听端口都是默认的1521
rac2:
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 03-FEB-2012 15:47:34
Uptime 4 days 0 hr. 28 min. 57 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /opt/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac2)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Service "orclstan" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclstan_DGB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclstan_DGMGRL" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Service "orclstan_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
memberstore-host:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=memberstore-host)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 07-FEB-2012 15:45:55
Uptime 0 days 0 hr. 25 min. 34 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /usr/local/oracle/product/10/db_1/network/admin/listener.ora
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=memberstore-host)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_DGB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully |
|