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 , 48 of 60


RESYNC

Syntax


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

Purpose

To perform a full resynchronization of the recovery catalog.

Resynchronizations can be full or partial. When full, RMAN updates all changed records for the physical schema: datafiles, tablespaces, redo threads, and online redo logs. If the database is open, RMAN also obtains data about rollback segments. When partial, RMAN reads the current control file to update data, but does not resynchronize metadata about the physical schema or rollback segments.

When resynchronizing, RMAN creates a snapshot control file in order to obtain a read-consistent view of the control file, then updates the catalog with any new information from the snapshot. The RESYNC CATALOG command updates the classes or records described in the following table.

Record Type  Description 

Log history 

Records that are created whenever a log switch occurs. Note that log history records describe an online log switch, not a log archival. 

Archived redo logs 

Records associated with archived logs that were created by archiving an online redo log, copying an existing archived redo log, or restoring backups of archived redo logs. 

Backups 

Records associated with backup sets, backup pieces, backup set members, proxy copies, and image copies. 

Physical schema 

Records associated with datafiles and tablespaces. If the target database is open, then rollback segment information is also updated. 

RMAN automatically executes a full or partial resynchronization as needed when you execute RMAN commands, so long as the control file is mounted and the recovery catalog database is available at command execution. RMAN reads the current control file and does not resynchronize metadata about the physical schema unless it determines that this information has changed. If RMAN does detect a change, then it performs a full resynchronization.

Use RESYNC CATALOG to perform manual full resynchronizations when:

Restrictions and Usage Notes

Keywords and Parameters

FROM CONTROLFILECOPY 'filename' 

Specifies the name of the control file copy to use for resynchronization. Physical schema information is not updated when you use this option. 

Examples

Resynchronizing the Recovery Catalog After a Structural Change: Example

This example adds a datafile to tablespace tbs_1 and then resynchronizes the catalog:

STARTUP MOUNT;
SQL "ALTER TABLESPACE tbs_1 ADD DATAFILE ''sales.f'' NEXT 10K MAXSIZE 100K";
RESYNC CATALOG;

Resynchronizing the Recovery Catalog in ARCHIVELOG Mode: Example

This example performs a full resynchronization after archiving all unarchived redo logs:

SQL "ALTER SYSTEM ARCHIVE LOG ALL";
RESYNC CATALOG;

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