DG GAP解决方案
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DG GAP解决方案相关的知识,希望对你有一定的参考价值。
备库中大量出现类似如下内容:
Tue Apr 26 17:34:49 2016
SMON: enabling cache recovery
Dictionary check beginning
Dictionary check complete
Database Characterset is AL32UTF8
No Resource Manager plan active
replication_dependency_tracking turned off (no async multimaster replication found)
Physical standby database opened for read only access.
Completed: alter database open read only
CORRUPTION DETECTED: In redo blocks starting at block 1count 2048 for thread 1 sequence 373
ALTER DATABASE RsECOVER managed standby database using current logfile disconnect
Attempt to start background Managed Standby Recovery process (orcl)
在主库查询归档应用情况:
set lines 300 pages 300
col name for a20
select name,dest_id,thread#,sequence#,standby_dest,applied,registrar,completion_time
from v$archived_log
where standby_dest=‘YES‘
order by thread#,sequence#;
set linesize 140
set pagesize 999
col SEQUENCE# for 999999
col APPLIED for a10
col ARCHIVED for a8
col FIRST_TIME for a20
col NEXT_TIME for a20
alter session set nls_date_format=‘yyyy-mm-dd hh24:mi:ss‘;
select * from (select SEQUENCE#, FIRST_TIME, NEXT_TIME, APPLIED, ARCHIVED from V$ARCHIVED_LOG order by 1 desc) where rownum<100 order by 1;
select SEQUENCE#, FIRST_TIME, NEXT_TIME, APPLIED, ARCHIVED from V$ARCHIVED_LOG;
SEQUENCE# FIRST_TIME NEXT_TIME APPLIED ARC
---------- ------------------ ------------------ --------- ---
387 26-APR-16 26-APR-16 NO YES
386 26-APR-16 26-APR-16 NO YES
385 26-APR-16 26-APR-16 NO YES
382 26-APR-16 26-APR-16 NO YES
381 26-APR-16 26-APR-16 NO YES
380 26-APR-16 26-APR-16 NO YES
379 26-APR-16 26-APR-16 NO YES
378 26-APR-16 26-APR-16 NO YES
377 26-APR-16 26-APR-16 NO YES
376 26-APR-16 26-APR-16 NO YES
375 26-APR-16 26-APR-16 NO YES
374 26-APR-16 26-APR-16 NO YES
372 26-APR-16 26-APR-16 YES YES
371 26-APR-16 26-APR-16 YES YES
370 26-APR-16 26-APR-16 YES YES
369 26-APR-16 26-APR-16 YES YES
368 26-APR-16 26-APR-16 YES YES
367 26-APR-16 26-APR-16 YES YES
366 26-APR-16 26-APR-16 YES YES
365 26-APR-16 26-APR-16 YES YES
364 26-APR-16 26-APR-16 YES YES
363 26-APR-16 26-APR-16 YES YES
362 26-APR-16 26-APR-16 YES YES
361 26-APR-16 26-APR-16 YES YES
360 26-APR-16 26-APR-16 YES YES
经检查,发现373号归档没应用。 并且查看/data/arch 目录也未发现。
解决办法:
从主库传送373号归档到备库,然后手工注册:
alter database register physical logfile ‘/data/arch/1_1604_905778979.dbf‘;
以上是关于DG GAP解决方案的主要内容,如果未能解决你的问题,请参考以下文章