Oracle8i Backup and Recovery Guide Release 8.1.5 A67773-01 |
|
To establish a connection between RMAN and a target, auxiliary, or recovery catalog database.
Note: When connecting from the command line, the password may be visible to other users on the system. The connect command avoids this problem. |
See Also: For command line connection options, see "cmdLine".
You can only use the connect command if you are at the RMAN prompt and if you are not already connected.
connect target connectStringSpec |
establishes a connection between RMAN and the target database. See "connectStringSpec". |
|
connect catalog connectStringSpec |
establishes a connection between RMAN and the recovery catalog database. See "connectStringSpec". |
|
connect auxiliary connectStringSpec |
establishes a connection between RMAN and an auxiliary instance. An auxiliary instance can be used with the duplicate command or used during TSPITR. See "connectStringSpec". |
This example starts RMAN and then connects to the target database with a Net8 service name prod1
:
% rman nocatalog RMAN> connect target sys/change_on_install@prod1;
This example starts RMAN and then connects to the target database PROD1 using O/S authentication and the recovery catalog database RCAT using a password file:
% rman RMAN> connect target /; 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;