這篇文章主要介紹了oracle 11.2.0.4 DataGuard Broker配置過程中可能遇到的問題有哪些,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
創(chuàng)新互聯(lián)長期為千余家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為郊區(qū)企業(yè)提供專業(yè)的成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計(jì),郊區(qū)網(wǎng)站改版等技術(shù)服務(wù)。擁有十多年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。
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';
備庫重新啟動(dòng)日志應(yīng)用進(jìn)程
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
主備庫的啟動(dòng)參數(shù)文件中加入,然后重新生成spfile
*.db_file_name_convert='/opt/oracle/oradata','/opt/oracle/oradata'
DGMGRL控制臺(tái)執(zhí)行
DGMGRL>edit database orcl set property DbFileNameConvert = '/opt/oracle/oradata/,/opt/oracle/oradata/';
3、oracle dg配置時(shí)主備庫的db_unique_name不能相同,否則備庫無法添加而報(bào)錯(cuò)
問題現(xiàn)象:
DGMGRL控制臺(tái)添加備庫時(shí)報(bào)錯(cuò)
DGMGRL> add database orcls as connect identifier is dbstandby maintained as physical;
Error: ORA-16642: DB_UNIQUE_NAME mismatch.
處理辦法:
修改備庫啟動(dòng)pfile中的db_unique_name(沒有該參數(shù)則添加)值與主庫中的db_unique_name值不同
重新生成spfile,重啟備庫
4、通過rman duplicate主庫到備機(jī)時(shí)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)
5、oracle DG Broke相關(guān)ADG特性使用中要求主備庫打開閃回,而oracle rman duplicate克隆的備庫沒有自動(dòng)打開閃回,
對(duì)備庫打開閃回功能的時(shí)候需要注意
停止日志進(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配置過程中可能遇到的問題有哪些”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來學(xué)習(xí)!
網(wǎng)頁名稱:oracle11.2.0.4DataGuardBroker配置過程中可能遇到的問題有哪些
標(biāo)題路徑:http://www.rwnh.cn/article2/jeesic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、關(guān)鍵詞優(yōu)化、ChatGPT、搜索引擎優(yōu)化、手機(jī)網(wǎng)站建設(shè)、網(wǎng)站內(nèi)鏈
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)