溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些

發(fā)布時間:2021-11-10 11:39:01 來源:億速云 閱讀:320 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章主要介紹了oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。


1、歸檔參數(shù)log_archive_dest_2設(shè)置不當(dāng)導(dǎo)致的主備庫告警日志警告
問題現(xiàn)象:
主庫
Web Apr 11 14:17:16 2018
RFS[85]: Assigned to RFS proess 28893
RFS[85]: Database mount ID mismatch [0x59764e70:0x5976ad14](1500925552:1500949780)
RFS[85]: Client instance is standby database instead of primary
RFS[85]: Not using real application clusters

備庫
Web Apr 11 14:12:16 2018
PING[ARC2]: Heartbeat failed to connect to standby 'dbprimary'. Error is 16009.
處理辦法(MOS文檔 ID 1450132.1):
備庫執(zhí)行
alter system set log_archive_dest_state_2=defer scope=both sid='*'
或者
alter system set log_archive_dest_2='service=dbstandby arch sync valid_for=(online_logfiles,primary_role) db_unique_name=orcls' scope=both sid='*';

2、由于主備庫數(shù)據(jù)文件路徑不一致且未適當(dāng)設(shè)置db_file_name_convert和log_file_name_convert參數(shù)導(dǎo)致DDL無法同步到備庫
問題現(xiàn)象:
主庫告警日志
ORA-01111:name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: '/opt/oracle/product/11.2.0.4/db/dbs/UNNAMED00005
ora-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01111: name for data file 5 is unknow - rename to correct file
ORA-01110: data file 5: '/opt/oracle/product/11.2.0.4/db/dbs/UNNAMED00005

處理辦法:
主備庫檢查convert參數(shù)
SQL>show parameter convert
NAME       TYPE          VALUE
--------------         -----------     --------------------------------------------
_convert_set_to_join   bollean         FALSE
db_file_name_convert   string          /opt/oracle/oradata/,/opt/oracle/oradata/
log_file_name_convert  string          /opt/oracle/oradata/,/opt/oracle/oradata/
DGMGRL檢查主備庫DG映射參數(shù)
DGMGRL>show configuration
Configuration - dgb_p
Protection Mode:Maxperformance
Databases:
  orcl  - Primary database
warning:ORA-16792: configurable property value is inconsistent with database setting
  orcls - Physical standby database
warning:ORA-16792: configurable property value is inconsistent with database setting
Fast-Start Failover:DISABLED
DGMGRL>show database ORCL
Database - orcl
Role: PRIMARY
Intended State:TRANSPORT-ON
Instance(s):
  orcl
    warning:ORA-16714:the value of property DbFileNameConvert is inconsistent with the database setting
Database Status:
WARNING
--通過verbose參數(shù)查看具體的DbFileNameConvert參數(shù)值
show database VERBOSE ORCL

備庫執(zhí)行
alter database recover managed standby database cancel;
alter database create datafile  '/opt/oracle/product/11.2.0.4/db/dbs/UNNAMED00005'  as  '/opt/oracle/oradata/test01.dbf';

備庫重新啟動日志應(yīng)用進(jìn)程
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;

主備庫的啟動參數(shù)文件中加入,然后重新生成spfile
*.db_file_name_convert='/opt/oracle/oradata','/opt/oracle/oradata'
DGMGRL控制臺執(zhí)行
DGMGRL>edit database orcl set property DbFileNameConvert = '/opt/oracle/oradata/,/opt/oracle/oradata/';

3、oracle dg配置時主備庫的db_unique_name不能相同,否則備庫無法添加而報錯
問題現(xiàn)象:
DGMGRL控制臺添加備庫時報錯
DGMGRL> add database orcls as connect identifier is dbstandby maintained as physical;
Error: ORA-16642: DB_UNIQUE_NAME mismatch.

處理辦法:
修改備庫啟動pfile中的db_unique_name(沒有該參數(shù)則添加)值與主庫中的db_unique_name值不同
重新生成spfile,重啟備庫

4、通過rman duplicate主庫到備機時sys用戶無法通過tns服務(wù)名登錄主備庫
問題現(xiàn)象:
[oracle@centdgpri ~]$ tnsping dbprimary
TNS Ping Utility for Linux: Version 11.2.0.4.0 - Production on 16-APR-2018 00:35:27
Copyright (c) 1997, 2013, Oracle.  All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL =TCP)(HOST=centdgpri)(PORT=1521))) (CONNECT_DATA=(SID=orcl)(SERVER=DEDICATED)))
OK (160 msec)
[oracle@centdgpri ~]$ sqlplus "sys/WaterH2o@dbprimary as sysdba" 

SQL*Plus: Release 11.2.0.4.0 Production on Mon Apr 16 00:36:46 2018
Copyright (c) 1982, 2013, Oracle.  All rights reserved.

ERROR:

ORA-01017: invalid username/password; logon denied

問題處理:
確認(rèn)sys密碼正確
如下SQL到主庫查詢無數(shù)據(jù)
SELECT * FROM V$PWFILE_USERS;
主庫oracle用戶執(zhí)行如下命令,orapwd的文件名字是orapw$ORACLE_SID,路徑是$ORACLE_HOME/dbs下,否則生成的文件無效

orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=WaterH2o entries=30 force=y
再次查詢確認(rèn)
oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些

oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些


5、oracle DG Broke相關(guān)ADG特性使用中要求主備庫打開閃回,而oracle rman duplicate克隆的備庫沒有自動打開閃回,
對備庫打開閃回功能的時候需要注意
停止日志進(jìn)程
recover managed standby database cancel;
創(chuàng)建閃回目錄
mkdir -p /opt/oracle/flash_recovery_area
設(shè)置數(shù)據(jù)庫閃回參數(shù)
alter system set db_recovery_file_dest_size=10g;
alter system set db_recovery_file_dest='/opt/oracle/flash_recovery_area';
打開數(shù)據(jù)庫閃回功能
alter database flashback on;
確認(rèn)數(shù)據(jù)庫閃回打開
select name,db_unique_name,flashback_on from v$database;

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關(guān)注億速云行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI