Oracle8i Recovery Manager User's Guide and Reference
Release 2 (8.1.6)

Part Number A76990-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

Recovery Manager Command Syntax, 12 of 50


connect

Syntax


Purpose

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:

"cmdLine" for command line connection options. 

Requirements

You can only use the connect command if you are at the RMAN prompt and if you are not already connected.

Keywords and Parameters

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"

Examples

Connecting Without a Recovery Catalog

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;
Connecting with a Recovery Catalog

This example starts RMAN and then connects to the target database PROD1 using operating system authentication and the recovery catalog database RCAT using a password file:

% rman
RMAN> connect target /; connect catalog rman/rman@rcat;
Connecting to Target, Recovery Catalog, and Duplicate Databases

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;

Related Topics

"cmdLine"


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index