alter database recover managed standby database disconnect from session;(非实时应用)
alter database recover managed standby database using current logfile disconnect;(实时应用)
测试
--在备库上启用实时应用日志,并创建表
alter database recover managed standby database using current logfile disconnect;
19:23:46 SYS@test>create table zbb.t3(id number);
ZBB@test_stdby>set time on
19:24:02 ZBB@test_stdby>desc t3
Name Null? Type
----------------------------------------- -------- ----------------------------
ID NUMBER