Oracle9i Database Administrator's Guide Release 2 (9.2) for Windows Part Number A95491-01 |
|
This chapter provides information on backing up and recovering your database.
This chapter contains these topics:
This section describes tools available for backup and recovery of your Oracle9i database and makes recommendations on which tool to use.
This section contains these topics:
Oracle Enterprise Manager DBA Management Pack includes Backup and Recovery Wizards for backing up and recovering an Oracle9i database. These wizards also provide a graphical user interface (GUI) to Recovery Manager.
Backup Wizard enables users to:
Oracle highly recommends Oracle Enterprise Manager for backing up and recovering your Oracle9i database because of its capabilities and ease of use.
Note: Backing up to tape requires an optional media management layer (MML) from a third-party vendor. |
See Also:
Oracle Enterprise Manager Administrator's Guide for more information on Oracle Enterprise Manager |
Recovery Manager in command-line mode is an Oracle9i tool that manages backing up, restoring, and recovering files. Recovery Manager is automatically installed with Oracle Utilities. Recovery Manager uses a special PL/SQL interface to the server for invoking backup functions. This interface operates invisibly; you will interface only with a command line.
Note: On Windows NT, starting with Oracle8i release 8.1.6, additional transformations are added to file names entered by the user. If you use Recovery Manager, existing file names stored in the recovery catalog must be normalized. To normalize file names, see Oracle9i Database Migration. |
When RMAN needs to resynchronize from a read-consistent version of the control file, it creates a temporary snapshot control file. The default location of this file on Windows NT is ORACLE_BASE
\
ORACLE_HOME
\database\sncf
SID
.ora
.
You must clearly understand the command-line syntax described in Oracle9i Recovery Manager Reference before using this tool. Backing up to tape requires an optional MML from a third-party vendor.
See Also:
"Database Tools Overview" in Oracle9i Database Getting Started for Windows for instructions on accessing this tool and Oracle9i Recovery Manager User's Guide for instructions on using this tool |
Third-party vendors provide tape backup software that works with Backup Wizard and Recovery Manager. Contact your third-party vendors for additional information.
OCOPY utility is a command-line tool that can make the following types of backups:
OCOPY can back up only to disk and can perform only local backups.
On Windows NT, Oracle accesses the media management library through library orasbt.dll
. This file must exist in the system path. Typically, the file is located in Oracle home folder ORACLE_HOME
\bin
.
Note: You are not required to start or shut down the instance when installing the media management library. |
If an orasbt.dll
already exists in the system path, then remove it before installing the media manager. After installation, check your media management vendor documentation to determine where the media management library is installed.
Use OCOPY utility for both hot and raw database file backups of the following file types:
Logical raw files are stored on a logical drive (accessed with direct I/O) identified by \\.\
x
where x
is logical drive designator. Physical raw files are stored on a physical hard drive (accessed with direct I/O) identified by \\.\physicaldrive
n
where n
is 0, 1, 2, and so on, representing each of the physical drives in the system. For more information on raw partitions, see Appendix A, "Storing Tablespaces on Raw Partitions".
OCOPY utility has two copy modes:
Table 6-1 describes syntax to use when backing up all file types to hard disk. Table 6-2 does the same for backups to multiple diskettes. Table 6-3 defines syntax terms.
File Type | Syntax |
---|---|
FAT or NTFS files |
|
Logical raw |
|
Physical raw |
|
File Type | Syntax |
---|---|
FAT or NTFS files |
|
Logical raw |
|
Physical raw |
|
Note: Always use fresh diskettes for OCOPY utility procedures. Do not back up a file onto a diskette that contains part or all of another file backed up using OCOPY. |
Table 6-4 describes syntax to use when recovering all file types from hard disk. These are files originally backed up without option /B
. Table 6-5 describes syntax to use when recovering all file types from multiple diskettes. These are files originally backed up with option /B
. Table 6-6 defines syntax terms.
Note: When recovering from multiple diskettes, insert the diskette containing the first part of the backed up file before starting OCOPY utility. |
File Type | Syntax |
---|---|
FAT or NTFS files |
Use Windows copy command |
Logical raw |
|
Physical raw |
|
File Type | Syntax |
---|---|
FAT or NTFS files |
|
Logical raw |
|
Physical raw |
|
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|