Search notes:

$ORACLE_HOME/bin/rman

$ORACLE_HOME/bin/rman is the RMAN client.

Starting RMAN

$ rman
$ rman TARGET /
$ rman TARGET user@db
rman TARGET / uses OS authentication and implicitly connects with SYSDBA privilege.
In order to (explicitly) connect with OS authentication and use a different privilege, this is possible with something like
$ rman target '"/ as sysdba"'
$ rman target '"/ as sysbackup"'
In order to use password file authentication:
$ rman target '"me@db as sysdba"'
Connecting to a target database without using a recovery catalog:
$ rman target / nocatalog

Ending RMAN

RMAN> EXIT
Note: exit is equivalent to quit

Pipe interface

It is possible to send commands to rman with pipe-messages (dbms_pipe).
The following command creates two pipes: ORA$RMAN_PFEIFE_IN and ORA$RMAN_PFEIFE_OUT which can be used by an RMAN client to communicate with RMAN:
$ rman PIPE pfeife target /
Using timeout n forces rman to quit after n seconds if it doesn't receive any input from the specified pipe:
$ rman PIPE pfeife target / timeout 60
After invoking rman in this fashion, it will print RMAN-00572 messages when it is ready to receive messages from the pipe.

Checking syntax

If rman is started with the checksyntax option, RMAN will only parse and check the commands, but not execute them. If it finds an error, it will notify the user with a RMAN-00558: error encountered while parsing input commands message.
$ rman checksyntax
RMAN> …

See also

$ORACLE_HOME\bin

Index