Oracle9i Recovery Manager Reference
Release 1 (9.0.1)

Part Number A90136-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

RMAN Commands , 49 of 60


RUN

Syntax


Text description of run.gif follows
Text description of the illustration run.gif

backupCommands::=


Text description of backupco.gif follows
Text description of the illustration backupco.gif

restoreCommands::=


Text description of restorec.gif follows
Text description of the illustration restorec.gif

maintenanceCommands::=


Text description of maintena.gif follows
Text description of the illustration maintena.gif

miscellaneousCommands::=


Text description of miscella.gif follows
Text description of the illustration miscella.gif

Purpose

To compile and execute job commands, which are one or more statements executed within the braces of RUN. The RUN command compiles the list of job commands into one or more job steps and then executes them immediately.

Restrictions and Usage Notes

Keywords and Parameters

Refer to individual entries for information about commands that you can run from the RMAN prompt.

Examples

Making a Backup: Example

This example backs up a database by using a single manually allocated channel to perform the backup:

RUN
{
  ALLOCATE CHANNEL c1 TYPE sbt;
  BACKUP DATABASE;
}

Restoring and Recovering a Tablespace: Example

This example takes tablespace tbs_1 offline, restores it, then performs complete media recovery:

RUN
{  
  SQL "ALTER TABLESPACE tbs_1 OFFLINE IMMEDIATE"; 
  RESTORE TABLESPACE tbs_1; 
  RECOVER TABLESPACE tbs_1;  
  SQL "ALTER TABLESPACE tbs_1 ONLINE"; 
} 

Executing an RMAN Script: Example

This example executes the stored script backupdb:

RUN { EXECUTE SCRIPT BACKUPDB; } 

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback