Examples of the rman scripts – HP A.06.11 User Manual

Page 89

Advertising
background image

4.

Specify format:

format 'backup_specification<DB_NAME_%s:%t:%p>.dbf'

Note that %s:%t:%p and the Oracle database name are required, whereas the
backup specification is recommended.

For example, if you have created and saved a backup specification named
bspec1

for backing up an Oracle database identified by the Oracle instance

called inst1, you would enter the following string:

format 'bspec1<inst1_%s:%t:%p>.dbf'

See the Oracle Recovery Manager User’s Guide and References for information
on substitution variables. The Oracle channel format specifies which Oracle
backup specification to use for the backup.

5.

Optionally, specify backup incremental level.

Note that a Data Protector full backup performs the same operation as an
incremental level 0 backup type in the Oracle RMAN scripts. They both back
up all the blocks that have ever been used.

This option is required if you want to use the backup as a base for subsequent
incremental backups.

To run a backup using RMAN, start RMAN by running the following command from
the ORACLE_HOME directory (if you use the recovery catalog):

On Windows: bin\rman target Target_Database_Login catalog
Recovery_Catalog_Login

On UNIX: bin/rman target Target_Database_Login catalog
Recovery_Catalog_Login

On HP OpenVMS:

1.

Run ORAUSER.COM using $@OMNI$ROOT:[LOG]LOGIN.COM.

2.

Execute $rman target target_connect_string catalog
catalog_connect_string

.

Examples of the RMAN scripts

Some examples of RMAN scripts that must be executed from the RMAN> prompt are
listed below:

Integration guide for Oracle and SAP

89

Advertising