Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Archive Log continuity
I had a situation where a database (9.2.0.3) which is running in archive log
mode had to be restored (by restoring of the Unix files) from the previous
night's cpio backup and the archive logs NOT applied i.e work was lost.
Before I opened the database I ran 'archive log list' and found the 'Next log sequence to archive' and moved it (12496) and all subsequent logs to another location and then opened the database as below:
SQL> archive log list
Database log mode Archive Mode Automatic archival Enabled Archive destination /arch/FBSP Oldest online log sequence 12494 Next log sequence to archive 12496 Current log sequence 12496
(moved 12496 and subsequent logs)
SQL> alter database open;
Database altered.
SQL> alter system checkpoint;
System altered.
SQL> alter system switch logfile;
System altered.
The database came up and is running
My questions is
Shutting down the database does appear to perform an archivelog switch but I assume it checkpoints the database so that the save represents the 'complete' database save at that point in time. If this is the case then won't the archive logs be out of sync with the database and therefore would be of no further use, since data has been written to the database but not the archivelogs. If this is the case then does it mean:
Are these the correct assumptions or have gone badly wrong somewhere ?
Thanks Received on Wed Aug 06 2003 - 10:01:10 CDT