Oracle 11g dataguard 配置簡約步驟
本步驟通過rman的duplicate實現(xiàn),本方法適合于大數(shù)據(jù)庫,也可以作為復制數(shù)據(jù)庫的參考
0.編輯/etc/hosts
1.在主數(shù)據(jù)庫開啟force logging
alter database force logging;
2.網(wǎng)絡配置(監(jiān)聽器使用靜態(tài)注冊,網(wǎng)絡服務名primary、standby,使用tnsping命令測試連通性)
3.復制目錄到備庫機器 11g的目錄結構和10g略有不同,復制的時候考慮周全
4.在目標數(shù)據(jù)庫創(chuàng)建口令文件,口令需要和主庫一致
orapwd file=orapwdb01 password=Oracle01 entries=5
5.在主庫生成pfile參數(shù)文件,編輯參數(shù),滿足dg需要,copy參數(shù)文件到備庫,并作相應的修改
db_unique_name='PRIMARY'
LOG_ARCHIVE_CONFIG='DG_CONFIG=(primary,standby)'
LOG_ARCHIVE_DEST_1='LOCATION=/home/oracle/archdest VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=primary'
LOG_ARCHIVE_DEST_2='SERVICE=standby LGWR SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=standby'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
fal_server=standby
fal_client=primary
STANDBY_FILE_MANAGEMENT=AUTO
6.備機同時連接主庫(target)和備庫(duplicate)
rman target sys/Oracle01@primary auxiliary sys/Oracle01@standby nocatalog
7.使用duplicate命令生成standby 數(shù)據(jù)庫
duplicate target database for standby from active database nofilenamecheck;
8.在主備庫添加備重做日志文件
alter database add standby logfile
group 4 ('/u01/app/oracle/oradata/db01/redo04.log') size 50m,
group 5 ('/u01/app/oracle/oradata/db01/redo05.log') size 50m,
group 6 ('/u01/app/oracle/oradata/db01/redo06.log') size 50m,
group 7 ('/u01/app/oracle/oradata/db01/redo07.log') size 50m;
9.簡單測試datagurad。
網(wǎng)頁題目:Oracle11gdataguard配置簡約步驟
標題URL:
http://weahome.cn/article/pochhd.html