Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

12

积分

0

好友

1

主题
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
2#
发表于 2012-2-7 19:55:31
connect sys/******@192.168.0.182

easy connection 的连接串形式  ip:port/Servicename

监听日志
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


SERVICE_NAME=192.168.0.182  , 这里因为你的连接串写的 有问题所以把 ip当成servicename处理了, 肯定会出现ORA-12514错误

若要使用easy connection, 修改连接字符串

回复 只看该作者 道具 举报

3#
发表于 2012-2-8 09:59:20
谢谢ML。由于不是很了解,老是遇到些问题,看来还是要沉淀一下,再多了解dataguard内在的东西

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-23 20:16 , Processed in 0.057888 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569