Los archivos principales y de respaldo de DataGuard existen métodos de procesamiento de brechas

 
  
Debido a la red y otras razones, los registros de archivo entre la base de datos en espera y la base de datos activa pueden ser inconsistentes entre los dispositivos activos y en espera de DataGuard, lo que resulta en una brecha.
Pasos para resolver la brecha:
1. Obtenga la información detallada de la brecha en la base de datos en espera
2. Copie los registros de archivo necesarios de la base de datos principal a la base de datos en espera
3. La base de datos en espera registra los registros de archivo y luego se aplica.
 
- El registro de alerta solicita detalles de espacio en el registro de copia de seguridad  
Recuperación de medios Esperando secuencia del hilo 1 7057
Recuperando secuencia de espacio en el hilo 1, secuencia de espacio 7057-7080
FAL [cliente]: Error al recuperar la secuencia de espacio, no se especificó ningún servidor FAL
Lunes 24 de marzo 11:39: 40 CST 2014
FAL [cliente]: no se pudo solicitar la secuencia de intervalo 
 GAP-thread 1 secuencia 7057-7080
 DBID 768411208 rama 784810891
FAL [cliente]: se han intentado todos los servidores FAL definidos.

-También puede consultar la
selección de intervalo * desde la base de datos en espera v $ archive_gap; - Ensamble las

instrucciones de copia por conveniencia
- Si el registro de archivo está en ASM, primero copie el registro de archivo al sistema operativo a través de rman, y luego scp al directorio de archivo en espera de la base de datos en espera; - Si el
registro de archivo está en el sistema operativo, scp directamente al directorio de archivo en espera de la base de datos en espera.
@Pirmary
selecciona la longitud ('+ DG1 / primary / archivelog / 2014_03_21 /') de dual;
LENGTH ('+ DG1 / PRIMARY / ARCHIVELOG / 2014_03_21 /')
---------------- -----------------------------
                                           35 -
  
Obtener comando de copia
seleccionar 'copiar archivo de registro' '' || NOMBRE || '' ' a '' / tmp / '|| substr (name, 35) ||' ''; ' 
desde v $ archived_log 
donde SEQUENCE #> 7060 
y SEQUENCE # <= 7080 
y thread # = 1 
y NAME <>' nombre de servicio en espera ';



copie archivelog '+ DG1 / primary / archivelog / 2014_03_21 / thread_1_seq_7061.393.842805877' a '/tmp/thread_1_seq_7061.393.842805877';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_21 / thread_1_seq_7062.472.842816319' a '/tmp/thread_1_seq_7062.472.842816319';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_21 / thread_1_seq_7063.414.842825435' a '/tmp/thread_1_seq_7063.414.842825435';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7064.308.842843087' a '/tmp/thread_1_seq_7064.308.842843087';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7065.278.842847011' a '/tmp/thread_1_seq_7065.278.842847011';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7066.415.842847023' a '/tmp/thread_1_seq_7066.415.842847023';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7067.469.842850077' a '/tmp/thread_1_seq_7067.469.842850077';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7068.402.842864915' a '/tmp/thread_1_seq_7068.402.842864915';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7069.475.842868603' a '/tmp/thread_1_seq_7069.475.842868603';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7070.413.842869761' a '/tmp/thread_1_seq_7070.413.842869761';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7071.312.842871319' a '/tmp/thread_1_seq_7071.312.842871319';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7072.407.842874331' a '/tmp/thread_1_seq_7072.407.842874331';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7073.405.842874917' a '/tmp/thread_1_seq_7073.405.842874917';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7074.328.842875663' a '/tmp/thread_1_seq_7074.328.842875663';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7075.296.842876043' a '/tmp/thread_1_seq_7075.296.842876043';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7076.452.842886921' a '/tmp/thread_1_seq_7076.452.842886921';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_22 / thread_1_seq_7077.446.842906131' a '/tmp/thread_1_seq_7077.446.842906131';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_23 / thread_1_seq_7078.348.842928271' a '/tmp/thread_1_seq_7078.348.842928271';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_23 / thread_1_seq_7079.347.842928277' a '/tmp/thread_1_seq_7079.347.842928277';
copie archivelog '+ DG1 / primary / archivelog / 2014_03_23 / thread_1_seq_7080.367.842929387' a '/tmp/thread_1_seq_7080.367.842929387';





- Obtener el comando standby register archivelog
- 同样 在 主 库 执行 , 获得 注册 语句
seleccione 'ALTER DATABASE REGISTER PHYSICAL LOGFILE' '/ tmp /' || substr (name, 35) || '' '; desde v $ archived_log donde SEQUENCE #> 7060 y SEQUENCE # <= 7080 y thread # = 1 y NAME <> 'nombre de servicio en espera';

ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7061.393.842805877';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7062.472.842816319';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7063.414.842825435';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7064.308.842843087';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7065.278.842847011';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7066.415.842847023';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7067.469.842850077';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7068.402.842864915';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7069.475.842868603';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7070.413.842869761';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7071.312.842871319';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7072.407.842874331';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7073.405.842874917';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7074.328.842875663';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7075.296.842876043';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7076.452.842886921';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7077.446.842906131';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7078.348.842928271';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7079.347.842928277';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7080.367.842929387';



@Standby:
registrar el registro de archivo gap en espera
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/ tmp / thread_1_seq_7061.
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7062.472.842816319';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7063.414.842825435';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7064.308.842843087';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7065.278.842847011';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7066.415.842847023';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7067.469.842850077';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7068.402.842864915';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7069.475.842868603';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7070.413.842869761';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7071.312.842871319';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7072.407.842874331';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7073.405.842874917';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7074.328.842875663';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7075.296.842876043';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7076.452.842886921';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7077.446.842906131';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7078.348.842928271';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7079.347.842928277';
ALTERAR BASE DE DATOS REGISTRO DE REGISTRO FÍSICO '/tmp/thread_1_seq_7080.367.842929387';

- si el modo de espera es real, entonces el modo de espera aplicará automáticamente el
archivo de registro - si no es así, abra la aplicación real 
.

--get real aplica el
conjunto de información tamaño de línea 200
col name para a70
alter session set nls_date_format = 'aaaa-mm-dd hh24: mi: ss';
seleccione NAME, THREAD #, FIRST_TIME, secuencia #, aplicado a partir del pedido v $ archived_log por FIRST_TIME, THREAD #, secuencia #, DEST_ID;

--puede ver el registro de alertas, también muestra la información de aplicación del
archivo de

registro archive -f alert.log - asegúrese de que no haya espacio entre el
SQL primario y el en espera > seleccione * de v $ archive_gap;

- Limpie
@Priamry
cd / tmp
rm thread_ *

RMAN> crosscheck archivelog all;
RMAN> list archivelog all;
RMAN> borrar todo el archivo caducado;
 

Supongo que te gusta

Origin www.cnblogs.com/xiaoL/p/12682861.html
Recomendado
Clasificación