oracle data guard 备库启停日志应用
1、启用redo apply
前台执行命令:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
后台执行命令:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
启用real-time apply
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE;
2、停止redo apply
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
总结:
1、启用redo apply时,备库会启用MRP进程;
2、手动注册归档日志到备库时,不要用real-time apply,会影响归档的应用。
谨记:心存敬畏,行有所止。