資源描述:
《oracle-11gr2-rac-to-rac-dataguard-配置方案》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、ORACLE11GR2RACTORACDATAGUARD配置方案--bylxx1.1前言本文記錄oracle11gr2Dataguardphysicalstandby的配置過程。主備數(shù)據(jù)庫都是oracle11gr2rac環(huán)境,參數(shù)文件,控制文件,數(shù)據(jù)文件和歸檔日志都保存在ASMDG上面。采用MaximumPerformance方式,即日志同步采取lgwrnoaffirm方式。1.2環(huán)境規(guī)劃環(huán)境如下:主庫備庫操作系統(tǒng)OracleLinuxServerrelease6.3OracleLinuxServerrelease6.3主機名orcl1,orcl2orclstd1,orclst
2、d2數(shù)據(jù)庫版本oracle11.2.0.3oracle11.2.0.3集群版本GI11.2.0.3GI11.2.0.3DB_NAMEorclorclDB_UNIQUE_NAMEorclorclstdinstance_nameorcl1,orcl2orcl1,orcl2service_nameorclorclstd/oracle/app/grid/oracle/app/gridORACLE_HOME(GI)ORACLE_HOME(DB)/oracle/app/oracle/product/11.2.0/db_1/oracle/app/oracle/product/11.2.0/d
3、b_1數(shù)據(jù)存儲方式ASMASM文件管理OMFOMFspfile目錄+DATA+DATA控制文件目錄+DATA+DATA數(shù)據(jù)文件目錄+DATA+DATA歸檔日志目錄+DATA+DATA監(jiān)聽端口152115211.3環(huán)境準備主庫:?雙節(jié)點11gR2GridInfrastructure(11.2.0.3)已經(jīng)安裝配置完畢;?雙節(jié)點OracelRACSoftware(11.2.0.3)已經(jīng)安裝配置完畢;?集群數(shù)據(jù)庫”orcl”已經(jīng)創(chuàng)建于ASM上;?數(shù)據(jù)庫運行于歸檔模式;備庫:?雙節(jié)點11gR2GridInfrastructure(11.2.0.3)已經(jīng)安裝配置完畢?雙節(jié)點OracelR
4、ACSoftware(11.2.0.3)已經(jīng)安裝配置完畢;主備庫:在各節(jié)點/etc/hosts加入兩端主機名IP映射關(guān)系。192.168.0.11orcl1192.168.0.13orcl1-vip10.0.0.11orcl1-priv192.168.0.12orcl2192.168.0.14orcl2-vip10.0.0.12orcl2-priv192.168.0.15cluster-scan192.168.0.21orclstd1192.168.0.23orclstd1-vip10.0.0.21orclstd1-priv192.168.0.22orclstd2192.168
5、.0.24orclstd2-vip10.0.0.22orclstd2-priv192.168.0.25clusterstd-scan1.4主庫配置1.4.1打開forceloggingSQL>ALTERDATABASEFORCELOGGING;1.4.2創(chuàng)建StandbyRedo日志Standylog的推薦數(shù)目為:(#ofonlineredologsperprimaryinstance+1)*#ofinstances目前有兩個節(jié)點,每個節(jié)點有兩個日志組,每個日志成員大小為64m,每個日志組里都有一個成員。所以下面給每個節(jié)點添加三個日志組:selectgroup#,thread#
6、,bytes/1024/1024"SIZE(M)",membersfromv$log;altersystemsetstandby_file_management=manualscope=bothsid='*';alterdatabaseaddstandbylogfilethread1group5('+DATA')size64m;alterdatabaseaddstandbylogfilethread1group6('+DATA')size64m;alterdatabaseaddstandbylogfilethread1group7('+DATA')size64m;alterda
7、tabaseaddstandbylogfilethread2group8('+DATA')size64m;alterdatabaseaddstandbylogfilethread2group9('+DATA')size64m;alterdatabaseaddstandbylogfilethread2group10('+DATA')size64m;altersystemsetstandby_file_management=autoscope=bothsid='*';selectgroup#,t