首先必須啟動(dòng)DG_BROKER_START
ALTER SYSTEM SET DG_BROKER_START=TRUE SCOPE=BOTH;
創(chuàng)建一個(gè)批處理文件:
set ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_2
set ORACLE_SID=HYDEE
set PATH=%PATH%;%ORACLE_HOME%\bin;%ORACLE_HOME%\opatch
dgmgrl / "startup"
sqlplus sys/密碼@192.168.10.223/hydee AS SYSDBA @D:\oracle-scripts\start_apply_log.txt
其中start_apply_log.txt內(nèi)容為:
alter database recover managed standby database using current logfile disconnect;
然后創(chuàng)建一個(gè)系統(tǒng)啟動(dòng)時(shí)的計(jì)劃任務(wù):
當(dāng)前文章:windows操作系統(tǒng)重啟時(shí)自動(dòng)啟用備庫(kù)日志應(yīng)用
本文網(wǎng)址:
http://weahome.cn/article/pgsjse.html