Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: NT/2000 schedulable Process
Sybrand Bakker wrote:
> On Fri, 22 Feb 2002 23:20:21 -0500, "Rom" <orom_at_systec.com> wrote:
>
>
>>Thanks for the answer. >>Thing is that I am about to create the backup scripts, but I don't have any >>samples. do you have one by any chance? >> >>I mean, I made many of them on Unix, but NT is kinda new to me. >> >>Thanks, >>Ofer >>
Do you want to maintain a copy of the hot backup set on disk (either compressed or not compressed) besides having backup sets on tape
to help reduce your time to recovery? (if you have free space available) Do you want to back up to a SAN/NAS instead of locally attached tape? If so, ARCServe/Veritas might not be your best bet. Have you looked into the use of RMAN yet?
If you're going to script it, I'd use the following: (lines marked with * are optional)
clear the staging area
switch the logfile (spool out the current logfile # to file)
loop through each tablespace
put the tablespace in backup mode
loop through each datafile in the tablespace
ocopy the datafile to the backup staging area *run dbv.exe against the backup copy to look for corrupt blocks *compress the datafile with a command line utility *delete the staged copy of the datafileend loop
What I use is one script that queries dba_tablespaces, dba_data_files to include all data files in the backup set dynamically (nothing new here) that spools the actual hot backup script and then executes it.
The reason that I switch the logfile prior to and after the backup executes is that I know what archived redo logs are required with this set to make it consistent during recovery.
hth.
Paul Received on Sat Feb 23 2002 - 10:48:15 CST