SQL> select process,status from v$managed_standby;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
ARCH ERROR
RFS IDLE
RFS IDLE
查看parameter,發現log_archive_dest_state_2設定ENABLE。由於不做SWITCH OVER,所以,這個參數對於我的DG來說,是沒用的。
於是:
alter system set log_archive_dest_state_2='DEFER' scope=both;
重新查詢:
SQL> select process,status from v$managed_standby;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
ARCH ERROR
MRP0 WAIT_FOR_LOG
RFS IDLE
RFS IDLE
沒有效果。
查看參數:
log_archive_max_processes integer 2
對於我的有效ARCH進程實際上只有一個有效,於是:
alter system set log_archive_max_processes=1 scope=1;
SQL> select process,status from v$managed_standby;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
RFS IDLE
RFS IDLE
MRP0 WAIT_FOR_LOG
開回來:
alter system set log_archive_max_processes=2 scope=2;
SQL> select process,status from v$managed_standby;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
ARCH CONNECTED
RFS IDLE
RFS IDLE
MRP0 WAIT_FOR_LOG
問題解決。