Oracle® Database Backup and Recovery Reference 11g Release 2 (11.2) Part Number E10643-05 |
|
|
PDF · Mobi · ePub |
Table 1-2 provides a functional summary of RMAN commands that you can execute at the RMAN prompt, within a RUN
command, or both. All commands from previous RMAN releases work with the current release, although some commands and options are now deprecated (see Appendix A, "Deprecated RMAN Syntax"). For command-line options for the RMAN client, refer to RMAN
.
Table 1-2 Recovery Manager Commands
Command | Purpose |
---|---|
Run a command file. |
|
Run a command file in the same directory as another command file that is currently running. The |
|
Display repair options. |
|
Establish a channel, which is a connection between RMAN and a database instance. |
|
Allocate a channel in preparation for issuing maintenance commands such as |
|
Mount or open a database. |
|
Back up database files, copies of database files, archived logs, or backup sets. |
|
Add information about file copies and user-managed backups to the repository. |
|
Mark a backup piece, image copy, or archived redo log as having the status |
|
Configure persistent RMAN settings. These settings apply to all RMAN sessions until explicitly changed or disabled. |
|
Establish a connection between RMAN and a target, auxiliary, or recovery catalog database. |
|
Convert datafile formats for transporting tablespaces and databases across platforms. |
|
Create the schema for the recovery catalog. |
|
Create a stored script and store it in the recovery catalog. |
|
Determine whether files managed by RMAN, such as archived logs, datafile copies, and backup pieces, still exist on disk or tape. |
|
Delete backups and copies, remove references to them from the recovery catalog, and update their control file records to status |
|
Delete a stored script from the recovery catalog. |
|
Remove the schema from the recovery catalog. |
|
Delete the target database from disk and unregisters it. |
|
Use backups of the target database to create a duplicate database that you can use for testing purposes or to create a standby database. |
|
Run an RMAN stored script. |
|
Quit the RMAN executable. |
|
Return the database to its state at a previous time or SCN. |
|
Grant privileges to a recovery catalog user. |
|
Invoke an operating system command-line subshell from within RMAN or run a specific operating system command. |
|
Imports the metadata from one recovery catalog into a different recovery catalog. |
|
Produce a detailed listing of backup sets or copies. |
|
Display a stored script. |
|
Exit the RMAN executable. |
|
Apply redo log files and incremental backups to datafiles or data blocks restored from backup or datafile copies, to update them to a specified time. |
|
Register the target database in the recovery catalog. |
|
Release a channel that was allocated with an |
|
Repair one or more failures recorded in the automated diagnostic repository. |
|
Replace an existing script stored in the recovery catalog. If the script does not exist, then |
|
Perform detailed analyses of the content of the recovery catalog. |
|
Inform RMAN that the SQL statement |
|
Restore files from backup sets or from disk copies to the default or a new location. |
|
Perform a full resynchronization, which creates a snapshot control file and then copies any new or changed information from that snapshot control file to the recovery catalog. |
|
Revoke privileges from a recovery catalog user. |
|
Start RMAN from the operating system command line. |
|
Execute a sequence of one or more RMAN commands, which are one or more statements executed within the braces of |
|
Send a vendor-specific quoted string to one or more specific channels. |
|
Set the value of various attributes that affect RMAN behavior for the duration of a RUN block or a session. |
|
Display the current |
|
Shut down the target database. This command is equivalent to the SQL*Plus |
|
Write RMAN output to a log file. |
|
Execute a SQL statement from within Recovery Manager. |
|
Start up the target database. This command is equivalent to the SQL*Plus |
|
Specify that a datafile copy is now the current datafile, that is, the datafile pointed to by the control file. This command is equivalent to the SQL statement |
|
Create transportable tablespace sets from backup for one or more tablespaces. |
|
Unregister a database from the recovery catalog. |
|
Upgrade the recovery catalog schema from an older version to the version required by the RMAN executable. |
|
Examine a backup set and report whether its data is intact. RMAN scans all of the backup pieces in the specified backup sets and looks at the checksums to verify that the contents can be successfully restored. |