| Home | Downloads | Contact Us |
![]() |
![]() |
| Home >> Resources >> Oracle >> Oracle9i Recovery Manager Reference Release 2 (9.2) |
RMAN Commands , 47 of 59

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.
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:
ARCHIVELOG mode, since the
catalog is not updated automatically when a log switch
occurs or when an online redo log is archived.This example performs a full resynchronization after archiving all unarchived redo logs:
SQL "ALTER SYSTEM ARCHIVE LOG ALL"; RESYNC CATALOG;
This example adds a datafile to tablespace users and
then resynchronizes the catalog:
#!/usr/bin/tcsh # connect in nocatalog mode and add datafile rman TARGET / NOCATALOG <<EOF SQL "ALTER TABLESPACE users ADD DATAFILE ''?/oradata/trgt/users03.dbf'' SIZE 1M AUTOEXTEND ON NEXT 10K MAXSIZE 10M"; EXIT EOF # connect in catalog mode and resynchronize rman TARGET / CATAOG rman/rman@catdb <<EOF RESYNC CATALOG; EOF
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |