Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Backup Strategy (NT)

Re: Backup Strategy (NT)

From: Eric D. Pierce <PierceED_at_csus.edu>
Date: Fri, 25 Jan 2002 11:43:09 -0800
Message-ID: <F001.003FB9F1.20020125113017@fatcity.com>

(fwding in case TBC's "cc:" doesn't make it to the list.)

I gave the right advice for the wrong reasons. My bad. I'll revise the next release of the paper and credit you -- thanks.

Here's the word from Oracle Support:

Doc ID: Note:139327.1

The Differences between Windows NT COPY and Oracle OCOPY When Doing Backups:



When doing an online backup, should you use the Windows NT COPY
command, or the Oracle OCOPY command?

While doing online backups you should use OCOPY, or Oracle7  EBU, or Oracle8 (and later) RMAN. With the OCOPY command you  could copy to a backup directory on the hard drive but cannot  use OCOPY to copy a file to tape. The other option if you do  not want to use ocopy to perform your backup as this does  require a lot of disk space is EBU/RMAN that comes with  Oracle. Depending on your Oracle version, the distribution  includes a utility called EBU (Oracle7) or RMAN (Oracle8 and  later) that can be used for online recovery as well. You will  need to use a media management product to move the data from  RMAN to tape. Legato Storage Manager is provided however  there are other products that are supported to be used with  this tool.

To backup you will need to use the utility delivered by  Oracle, the ocopy command. Utilities like the NT commands  copy, xcopy CANNOT be used to back up. The Windows NT feature  to be aware of is that NT Backup does not allow files in use  to be copied, so you must use the OCOPY utility that Oracle  provides to copy the open database files to another disk  location. Since OCOPY cannot copy files directly to tape, you  will then need to use NT Backup or copy or a similar utility  to copy the files to tape, as required.

OCOPY allows writing to continue while the backup is running.  The NT COPY is a closed copy and the files may be marked  either as "fuzzy" or "corrupt." Ocopy opens the file using  CreateFile() with the FILE_SHARE_READ and FILE_SHARE_WRITE  flags. This allows writing to continue while we take the  backup. Inconsistencies in the backup are repaired by  applying archived redo during recovery. The 'copy' command  from NT doesn't use these flags since it wants to prevent  writes to the file while the copy is taking place.

REFERENCES
  [NOTE:41946.1] NT Online Backups
  Oracle Backup and Recovery Guide


Thomas B. Cox "Saepe in errore sed numquam in dubito" tbcox23@yahoo.com http://www.geocities.com/tbcox23/

"The whole aim of practical politics is to keep the populace alarmed (and hence clamorous to be led to safety) by menacing it with an endless series of hobgoblins, all of them imaginary." --H.L. Mencken

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jan 25 2002 - 13:43:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US