| Oracle9i Recovery Manager Reference Release 1 (9.0.1) Part Number A90136-02 |
|
RMAN Commands , 16 of 60

To establish a connection between RMAN and a target, auxiliary, or recovery catalog database.
CONNECT TARGET, CONNECT CATALOG, and CONNECT AUXILIARY commands if you are at the RMAN prompt and if you are not already connected to the specified databases.
NOCATALOG option on the command line and then run CONNECT CATALOG at the RMAN prompt.
CONNECT CATALOG command when RMAN is in the default NOCATALOG mode, that is, when these conditions are met:
This example starts RMAN and then connects to the target database with an Oracle Net service name prod1:
% rman NOCATALOG RMAN> CONNECT TARGET sys/change_on_install@prod1;
This example starts RMAN and then connects to the target database with an Oracle Net service name prod1. Because BACKUP is run and no CONNECT CATALOG has been run, RMAN defaults to NOCATALOG mode:
% rman RMAN> CONNECT TARGET sys/change_on_install@prod1; RMAN> BACKUP DATAFILE 7; # You cannot run CONNECT CATALOG after this point because RMAN has defaulted to NOCATALOG
This example starts RMAN and then connects to the target database prod1 by using operating system authentication and the recovery catalog database rcat by using a password file:
% rman RMAN> CONNECT TARGET / RMAN> CONNECT CATALOG rman/rman@rcat
This example connects to three different databases specifying a username and password for each:
% rman RMAN> CONNECT TARGET SYS/sysdba@prod1 RMAN> CONNECT CATALOG rman/rman@rcat RMAN> CONNECT AUXILIARY SYS/sysdba@dupdb
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|