Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-02 |
|
|
View PDF |
cmdLine::=
To start RMAN from the operating system command line. Use these arguments to:
Note: On some platforms, you may not want to connect at the operating system command line because the password is visible to other users on the system. The |
If you start RMAN without specifying either CATALOG
or NOCATALOG
on the command line, then RMAN makes no connection to a repository. If you run a command that requires the repository, and if no CONNECT
CATALOG
command has been issued yet, then RMAN automatically connects in the default NOCATALOG
mode. After that point, the CONNECT
CATALOG
command is not valid in the session.
See Also:
Oracle Database Backup and Recovery Basics to learn how to connect RMAN to database instances |
Use these arguments at the operating system command line rather than at the RMAN prompt.
Syntax Element | Description |
---|---|
|
Causes new output to be appended to the end of the message log file. If you do not specify this parameter, and if a file with the same name as the message log file already exists, then RMAN overwrites it. |
|
Specifies a connect string to an auxiliary database, for example, See Also: "connectStringSpec" |
|
Specifies a connect string to the database containing the recovery catalog, for example, See Also: "connectStringSpec" |
|
Parses and compiles all RMAN commands in a file and then sequentially executes each command in the file. RMAN exits if it encounters a syntax error during the parse phase or if it encounters a runtime error during the execution phase. If no errors are found, then RMAN exits after the job completes. If the first character of the filename is alphabetic, then you can omit the quotes around the filename. The contents of the command file should be identical to commands entered at the RMAN prompt. Note: If you run a command file at the RMAN prompt rather than as an option on the operating system command line, then RMAN does not run the file as a single job. RMAN reads each line sequentially and executes it, only exiting when it reaches the last line of the script. |
|
Equivalent to |
|
Specifies the file where RMAN records its output, that is, the commands that were processed and their results. If you do not specify this argument, then RMAN writes its message log file to standard output. The RMAN output is also stored in the The |
|
Causes RMAN to print message numbers, that is, |
|
Indicates that you are using RMAN without a recovery catalog. Note: If you do not specify either |
|
Sends a vendor-specific command string to all allocated channels. See Also: Your media management documentation to determine whether this feature is supported, and "SEND" |
|
Invokes the RMAN pipe interface. RMAN uses two public pipes: one for receiving commands and the other for sending output. The names of the pipes are derived from the value of the RMAN opens the following pipes in the target database:
All messages on both the input and output pipes are of type See Also: Oracle Database Backup and Recovery Advanced User's Guide to learn how to pass commands to RMAN through a pipe |
|
Once connected to the target database and recovery catalog (which must be specified using the The single-quotes around the stored script name are required when the script name either begins with a number or is an RMAN reserved word. You should avoid creating script names that begin with a number or that match RMAN reserved words. See "CREATE SCRIPT" for more details about stored scripts. |
|
Specifies a connect string to the target database, for example, See Also: "connectStringSpec" |
|
Causes RMAN to exit automatically if it does not receive input from an input pipe within See Also: Oracle Database Backup and Recovery Advanced User's Guide to learn how to pass commands to RMAN through a pipe |
This example connects to the target database prod1
without a recovery catalog:
% rman TARGET SYS/oracle@inst1 NOCATALOG
This example connects to the target database prod1
without specifying catalog options. Because CONNECT
CATALOG
is not run at the RMAN prompt, RMAN connects in default NOCATALOG
mode when the first command requiring a repository connection is run:
% rman RMAN> CONNECT TARGET RMAN> BACKUP DATABASE;
This example connects to target database prod1
, recovery catalog database rcat
, and auxiliary instance aux1
:
% rman TARGET SYS/sys_pwd@prod1 CATALOG rman/rman@rcat AUXILIARY sys/aux_pwd@aux1
This example connects to the target database prod1
and the recovery catalog database rcat
, and then runs the command file b_whole_10.rcv
:
% rman TARGET SYS/sys_pwd@prod1 CATALOG rman/rman@rcat @'/oracle/dbs/b_whole_l0.rcv'
This example connects to the target database prod1
and the recovery catalog database rcat
, and then runs the stored script full_backup
:
% rman TARGET SYS/sys_pwd@prod1 CATALOG rman/rman@rcat SCRIPT full_backup
This example connects to the target database prod1
without a recovery catalog and then specifies that RMAN should append messages to the message log:
% rman TARGET / NOCATALOG LOG = $ORACLE_HOME/dbs/log/msglog.f APPEND
This example invokes the RMAN pipe newpipe
with a 90 second timeout option:
% rman PIPE newpipe TARGET SYS/oracle@inst1 TIMEOUT = 90