oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題及解決方法
本文記錄oracle 11.2.0.4 DG 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';
*.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"
再次查詢確認
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;
有問題歡迎批評指正。
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;
主備庫的啟動引數檔案中加入,然後重新生成spfileALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
*.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下,否則生成的檔案無效
再次查詢確認
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;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29357786/viewspace-2152980/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle dataguard broker 配置Oracle
- ORACLE RAC TO RAC DG搭建過程中可能遇到的問題Oracle
- Composer 使用過程中遇到的問題和解決方案
- 遇到問題的解決方法
- workerman開發過程中遇到的一些常見的問題與解決方法
- ORACLE 11.2.0.4 DG(Broker) for linux 部署OracleLinux
- Android開發過程中遇到的問題以及解決辦法 how toAndroid
- 爬蟲過程中遇到的問題爬蟲
- Oracle 11.2.0.4 physical dataguard和snapshot dataguard切換Oracle
- 學習vue過程中遇到的問題Vue
- VS2019配置Opencv遇到的部分問題及解決方案OpenCV
- Hanlp配置自定義詞典遇到的問題與解決方法HanLP
- MAC 安裝 VMAF 遇到的問題及解決方法記錄Mac
- nodejs 近期所遇到的問題及解決NodeJS
- munium學習過程中問題解決
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- Oracle 11.2.0.4 Dataguard兩則故障處理Oracle
- 更新macOS Monterey後遇到的各種Bug問題及解決方法Mac
- JS中toFixed()方法的問題及解決方案JS
- 快取過程存在的三大問題及解決方案快取
- 電商APP測試過程中遇到的問題APP
- Mac電腦使用imazing過程中遇到的問題Mac
- Flutter開發過程中遇到的問題記錄Flutter
- 近期工作遇到的問題及解決方式收藏
- 分散式任務排程平臺XXL-JOB本地配置可能遇到的問題和解決方案分散式
- WSL中配置EDA環境:遇到的問題以及解決辦法
- Hodoop配置中遇到的問題OdooOOP
- 安裝 laraBBS 原始碼包可能會碰到的問題及解決方法原始碼
- 關於ubuntu安裝中過程遇到問題Ubuntu
- Fabric 環境搭建遇到問題及解決
- GO Modules的理解和遇到的問題解決方法Go
- Oracle儲存過程編譯卡死的解決方法Oracle儲存過程編譯
- MongoDB系列-解決面試中可能遇到的MongoDB複製集(replica set)問題MongoDB面試
- 安裝gcc過程中遇到相互依賴的問題GC
- 皮膚開發過程中遇到的3個問題
- 在效能測試的過程中會遇到哪些問題?
- Harbor搭建及配置 問題解決
- Oracle DataGuard FAL[client, ARC2]: Error 16191 connecting to 問題處理過程記錄OracleclientError