Running RMAN
As an Oracle user, you can run the rman command from the command prompt with the RMAN command file as a parameter. This topic describes how to set the master server to hag and the Oracle policy to obk before you start the backup.
On Windows, RMAN functionality runs as a service, so use the send operand to set up the run-time environment. To start a backup using the rman command from the command prompt, type the following:
# send "'NB_ORA_POLICY=obk,NB_ORA_SERV=hag'" cmdfile \ "install_path\oracle\scripts\db_full_backup.rcv"
On UNIX, type the following at the command prompt:
# rman target 'internal/oracle@ORCL' rcvcat 'rman/rman@RCAT' # send "'NB_ORA_POLICY=obk,NB_ORA_SERV=hag'" cmdfile \ '/oracle/scripts/db_full_backup.rcv"
If you intend to connect to a database using a TNS alias, the RMAN send command specifies the environment variables. The example sets the master server to hag and the Oracle policy to obk before you start the backup.
Note:
For rman command script syntax and examples, see your Oracle documentation.
More Information