|
|
Oracle Server Enterprise Edition Technical Forum
Thread Status: Closed
From: Casey Bowden 13-Aug-01 23:01
Subject: Hot Backup Order
RDBMS Version: 8.1.5
Operating System and Version: Win NT 4. SP5
Error Number (if applicable):
Product (i.e. SQL*Loader, Import, etc.):
Product Version:
Hot Backup Order
Which is better, to put a tablespace in backup mode and copy off all datafiles then end backup on said tablespace. OR Put the tablespace in backup mode, copy off one datafile, end backup on said tablesapce and repeat for all datafiles? Please explain how the System Change Numbers are used in the header of the datafile and what is the Oracle recommendendation. And how each situation uses them differntely.
Thanks
Casey
--------------------------------------------------------------------------------
From: Vinod Menon 14-Aug-01 15:40
Subject: Re : Hot Backup Order
Basically this depends on situations. Say you have large # of datafiles under a single tablespace. In that case it is better to copy some of the datafiles, then switch modes and continue.
The reason is on taking a tablespace in backup mode the headers r updated immediately through forced check points - which gurantees that the datafiles are latest. On crash you might need lesser recovery time this case.
--------------------------------------------------------------------------------
From: Oracle, Helen Schoone 16-Aug-01 20:46
Subject: Re : Hot Backup Order
Hi. I see no reason to alter a tablespace into and out of hot backup mode for each datafile of the tablespace. Sounds like more of a possibility for errors. Also, each time you alter a tablespace into hot backup mode, a checkpoint will occur causing any modified blocks for all the files of that tablespace to be flushed to disk.
Each datafile header contains checkpoint information. The checkpoint SCN guarantees that all data associated with a change prior to that SCN have been flushed to disk. [B]When you alter a tablespace into hot backup mode, Oracle checkpoints, then stops checkpointing the file header of all datafiles in the tablespace while it is in hot backup mode, although DBWR continues to write changed blocks to the files, as applicable.[/B] If the file later needs to be restored and recovered, Oracle knows that recovery of that file needs to begin at the checkpoint SCN recorded in the file header when the tablespace was altered into backup mode. During the time the tablespace is in hot backup mode, extra information is written to redo for all changes made to the datafiles of the tablespace which facilitates recovery of the files since they can be copied while they are being written to.
Once you alter a tablespace out of hot backup mode, Oracle records the information in the redo, updates the checkpoint information in the file headers and normal processing resumes.
I hope this helps.
Regards,
Helen
Oracle Support Services
--------------------------------------------------------------------------------
Copyright (c) 1995,2000 Oracle Corporation. All Rights Reserved. Legal Notices and Terms of Use. |
|