Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-01 |
|
|
View PDF |
host::=
To invoke an operating system command-line sub-shell from within RMAN.
Execute this command at the RMAN prompt or within the braces of a RUN
command.
Syntax Element | Description |
---|---|
|
Enables you to execute an operating system command. Use this parameter: |
This example shuts down the database, makes a backup of datafile system01.dbf
, then executes the UNIX ls
command to display all backed up datafiles:
SHUTDOWN IMMEDIATE; STARTUP MOUNT; BACKUP DATAFILE '?/oradata/trgt/system01.dbf' FORMAT '/tmp/system01.dbf'; HOST 'ls -l /tmp/*dbf'; ALTER DATABASE OPEN;
This example makes an image copy of datafile
3
, hosts out to the UNIX prompt to check that the copy is in the directory (the UNIX session output is indented and displayed in bold), then resumes the RMAN session:
RMAN> BACKUP DATAFILE 3 FORMAT '?/oradata/df3.cpy'; RMAN> HOST; % ls $ORACLE_HOME/oradata/df3.cpy /net/oracle/oradata/df3.cpy % exit RMAN> LIST COPY;