您的位置:首页 > 数据库 > Oracle

oracle11g broker使用的过程遇到的几个问题

2016-11-26 17:43 495 查看
我的broker使用的是11.2.0.1版本的,问题4,5可能是对应的bug,没有support账号,所以没有去细查

1主库开了flashback,从库没有开启,结果broker就连不上从库了,提示如下:

DGMGRL> show configuration verbose;

Configuration - ProdBroker

Protection Mode: MaxPerformance

Databases:

cronfun_pri - Primary database

cronfun_stdby - Physical standby database

Error: ORA-16664: unable to receive the result from a database

Fast-Start Failover: DISABLED

Configuration Status:

ERROR

2在配置完成后,broker有些警告

cronfun

Warning: ORA-16714: the value of property ArchiveLagTarget is inconsistent with the database setting

Warning: ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the database setting

按照提示更新下控制文件信息就行

edit database cronfun_stdby set property LogArchiveMinSucceedDest=’1’;

3我的broker是用client的administrator模式安装的,这种的情况下我不知道log是放在那里了,没有找到。这个broker的log不是放在broker的机器上,是在每个实例的机器上的

find $ORACLE_BASE -name drc*.log

例子/oracle11/diag/rdbms/cronfun_pri/cronfun/trace/drccronfun.log

4监听中的配置,需要添加静态服务,我的broker启动后,没有自己添加这个

(SID_DESC =

(GLOBAL_DBNAME = dg2_DGB)

(ORACLE_HOME = /oracle/product)

(SID_NAME = dg2)

)

5在switchover的时候,备库提示总是需要手工去启动

DGMGRL> switchover to cronfun_stdby

Performing switchover NOW, please wait…

New primary database “cronfun_stdby” is opening…

Operation requires shutdown of instance “cronfun” on database “cronfun_pri”

Shutting down instance “cronfun”…

ORA-01092: ORACLE instance terminated. Disconnection forced

Please complete the following steps to finish switchover:

shut down instance “cronfun” of database “cronfun_pri”

start up instance “cronfun” of database “cronfun_pri”

为毛11g会这样?应该是自动就起来了啊,alert中提示了,可能是bug,参考http://www.itpub.net/thread-1466248-1-1.html,没有support账号,查看不了

ORA-1092 : opitsk aborting process

6在配置了broker后,在sqlplus中手工切换了一次,这样会导致broker中的配置信息与实际情况不符合,提示下面的错误

DGMGRL> show configuration

Configuration - ProdBroker

Protection Mode: MaxPerformance

Databases:

cronfun_stdby - Primary database

Error: ORA-16816: incorrect database role

cronfun_pri   - Physical standby database
Error: ORA-16810: multiple errors or warnings detected for the database


Fast-Start Failover: DISABLED

Configuration Status:

ERROR

解决办法就是重建broker配置

1删除

REMOVE CONFIGURATION PRESERVE DESTINATIONS;

2创建,添加

create configuration ‘ProdBroker’ as primary database is ‘cronfun_pri’ connect identifier is cronfun_pri;

add database ‘cronfun_stdby’ as connect identifier is ‘cronfun_stdby’ maintained as physical;

7通过dmgrl连接的从库,登录上去进行配置文件的修改,添加第二个备库

提示Error: ORA-12545: Connect failed because target host or object does not exist

这个错误,看了机器上已经配置hosts文件,tnsping也都通,找了半天发现主库上没有配置第二个备库的信息,看来添加的时候,主库上也是校验了下tnsname的配置。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: