Oracle8i Backup and Recovery Guide
Release 8.1.5

A67773-01

Library

Product

Contents

Index

Prev Prev Next


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: For command line connection options, see "cmdLine".

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 O/S 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"




Prev

Top

Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index