首先必須啟動DG_BROKER_START
ALTER SYSTEM SET DG_BROKER_START=TRUE SCOPE=BOTH;
創建一個批處理文件:
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內容為:
alter database recover managed standby database using current logfile disconnect;