您好,登錄后才能下訂單哦!
這篇文章主要介紹了oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
1、歸檔參數log_archive_dest_2設置不當導致的主備庫告警日志警告
問題現象:
主庫
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):
備庫執行
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、由于主備庫數據文件路徑不一致且未適當設置db_file_name_convert和log_file_name_convert參數導致DDL無法同步到備庫
問題現象:
主庫告警日志
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參數
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映射參數
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參數查看具體的DbFileNameConvert參數值
show database VERBOSE ORCL
備庫執行
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';
備庫重新啟動日志應用進程
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
主備庫的啟動參數文件中加入,然后重新生成spfile
*.db_file_name_convert='/opt/oracle/oradata','/opt/oracle/oradata'
DGMGRL控制臺執行
DGMGRL>edit database orcl set property DbFileNameConvert = '/opt/oracle/oradata/,/opt/oracle/oradata/';
3、oracle dg配置時主備庫的db_unique_name不能相同,否則備庫無法添加而報錯
問題現象:
DGMGRL控制臺添加備庫時報錯
DGMGRL> add database orcls as connect identifier is dbstandby maintained as physical;
Error: ORA-16642: DB_UNIQUE_NAME mismatch.
處理辦法:
修改備庫啟動pfile中的db_unique_name(沒有該參數則添加)值與主庫中的db_unique_name值不同
重新生成spfile,重啟備庫
4、通過rman duplicate主庫到備機時sys用戶無法通過tns服務名登錄主備庫
問題現象:
[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
問題處理:
確認sys密碼正確
如下SQL到主庫查詢無數據
SELECT * FROM V$PWFILE_USERS;
主庫oracle用戶執行如下命令,orapwd的文件名字是orapw$ORACLE_SID,路徑是$ORACLE_HOME/dbs下,否則生成的文件無效
orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=WaterH2o entries=30 force=y
再次查詢確認
5、oracle DG Broke相關ADG特性使用中要求主備庫打開閃回,而oracle rman duplicate克隆的備庫沒有自動打開閃回,
對備庫打開閃回功能的時候需要注意
停止日志進程
recover managed standby database cancel;
創建閃回目錄
mkdir -p /opt/oracle/flash_recovery_area
設置數據庫閃回參數
alter system set db_recovery_file_dest_size=10g;
alter system set db_recovery_file_dest='/opt/oracle/flash_recovery_area';
打開數據庫閃回功能
alter database flashback on;
確認數據庫閃回打開
select name,db_unique_name,flashback_on from v$database;
感謝你能夠認真閱讀完這篇文章,希望小編分享的“oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業資訊頻道,更多相關知識等著你來學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。