Oracle9i Recovery Manager Reference
Release 1 (9.0.1)

Part Number A90136-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

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

RMAN Commands , 46 of 60


RESET DATABASE

Syntax


Text description of reset.gif follows
Text description of the illustration reset.gif

Purpose

To reset the target database in the RMAN repository, which means to do either of the following actions:

Restrictions and Usage Notes

Keywords and Parameters

TO INCARNATION primary_key 

Changes the incarnation that RMAN considers to be current to an older incarnation. Specify the primary key of the DBINC record for the database incarnation. Obtain the key value using the LIST INCARNATION OF DATABASE command. After you start the instance and issue the RESET DATABASE TO INCARNATION command, then you can mount or restore a control file from the desired incarnation and then run RMAN commands in this incarnation. 

Examples

Resetting RMAN to a Previous Incarnation: Example

The following scenario makes an old incarnation of database prod1 current again:

# step 1: obtain the primary key of old incarnation
LIST INCARNATION OF DATABASE PROD1;

List of Database Incarnations
DB Key  Inc Key   DB Name   DB ID       CUR    Reset SCN    Reset Time
------- -------   -------   ------      ---    ----------   ----------
1       2         PROD1     1224038686  NO     1            02-JUL-00
1       582       PROD1     1224038686  YES    59727        10-JUL-00

# step 2: start instance and reset database
SHUTDOWN IMMEDIATE;
STARTUP NOMOUNT;
RESET DATABASE TO INCARNATION 2;

# step 3: restore control file from previous incarnation:
RESTORE CONTROLFILE;

# step 4: shut down and then and mount the database
SHUTDOWN IMMEDIATE
STARTUP MOUNT

# step 5: restore and recover the database to a point before the RESETLOGS
RESTORE DATABASE UNTIL SEQUENCE 1001;
RECOVER DATABASE UNTIL SEQUENCE 1001;

# step 6: make this incarnation the current incarnation:
ALTER DATABASE OPEN RESETLOGS;

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

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback