› Fóruns › Banco de dados Oracle › RMAN – Não restaura o backup › RMAN – Não restaura o backup
Regis,
o que me intriga é o seguinte: se no meu script de backup tem a opção “backup … include current controlfile plus archivelog” teoricamente esses archivelogs já não deveriam estar “inclusos” nos arquivos do RMAN?
E se der um crash no meu servidor principal e eu não conseguir recuperar os archivelogs… td bem que tenho um script de backup que copia os archives para outro servidor de tempo em tempo… mas não sei exatamente qual archive o RMAN vai solicitar…
Usei as seguintes opções:
RMAN> list archivelog all;
List of Archived Log Copies
Key Thrd Seq S Low Time Name
59431 1 7670 A 18-JAN-11 /logs/flash_recovery_area/ASOEC10/archivelog/2011_01_19/o1_mf_1_7670_6mdt7dxb_.arc
59448 1 7671 A 19-JAN-11 /logs/flash_recovery_area/ASOEC10/archivelog/2011_01_19/o1_mf_1_7671_6mdy04hs_.arc
RMAN> run
{
RESTORE VALIDATE CHECK LOGICAL ARCHIVELOG from sequence 7670;
}2> 3> 4>
Starting restore at 19-JAN-11
using channel ORA_DISK_1
channel ORA_DISK_1: scanning archive log /logs/flash_recovery_area/ASOEC10/archivelog/2011_01_19/o1_mf_1_7670_6mdt7dxb_.arc
channel ORA_DISK_1: scanning archive log /logs/flash_recovery_area/ASOEC10/archivelog/2011_01_19/o1_mf_1_7671_6mdy04hs_.arc
Finished restore at 19-JAN-11
RMAN> ALTER DATABASE OPEN RESETLOGS;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 01/19/2011 14:16:15
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: ‘/u01/app/oracle/oradata/asoec10/system01.dbf’