1. 程式人生 > >oracle11g broker使用的過程遇到的幾個問題

oracle11g broker使用的過程遇到的幾個問題

我的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的配置。