Name

HOST

Synopsis

Initiates an O/S shell whereby O/S commands can be executed.

Syntax

HOST [{' | "}command{' | "}];

Examples

Use HOST by itself to get to an O/S shell prompt. Exiting the shell returns control to the RMAN session.

RMAN> host;
$> ls -lt
...
$> exit
RMAN>

The following example passes a command as a parameter in order to execute that command and return directly to RMAN:

RMAN> host 'ls -lt';

total 2
-rwx------ 1 oracle dba 186 Jul 2 20:17 full_bck.ksh
host command complete

RMAN>

Get Oracle RMAN Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.