In a disaster situation where all files are lost you can only recover to the last SCN in the archived redo logs. The incomplete recovery requires the database to be opened using the RESETLOGS option. # SET UNTIL SEQUENCE 9923 # alternatively, you can specify log sequence number
# SET UNTIL SCN 1000 # alternatively, you can specify SCN
#HOW TO GET DBF MANAGER OFFLINE#
SQL 'ALTER TABLESPACE users OFFLINE IMMEDIATE' Īs you would expect, RMAN allows incomplete recovery to a specified time, SCN or sequence number. If the tempfiles are missing they must be recreated as follows.ĪUTOEXTEND ON NEXT 64K" Restore & Recover A Subset Of The DatabaseĪ subset of the database can be restored in a similar fashion. TEMPFILE ''/u02/oradata/orcl/temp01.dbf'' If the tempfiles are still present you can issue aĬommand like the following for each of them.
#HOW TO GET DBF MANAGER ARCHIVE#
RMAN will apply archive logs as necessary until the This will result in all datafiles being restored then recovered. SHUTDOWN IMMEDIATE # use abort if this fails If the controlfiles and online redo logs are still present a whole database recoveryĬan be achieved by running the following script. RMAN> RESYNC CATALOG Restore & Recover The Whole Database
#HOW TO GET DBF MANAGER FULL#
In doubt you can perform a full resync using the following command. Some commands perform partial and full resyncs implicitly, but if you are
Presence of new archive logs is recorded. The recovery catalog should be resyncronized on a regular basis so that changes to the database structure and Perform a complete database backup using a single command. RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u03/backup/orcl/backup%d_DB_%u_%s_%p' RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS
'logN' Full BackupĬonfigure the relevant persistant parameters for this instance. RMAN> CATALOG ARCHIVELOG 'log1', 'log2', 'log3'. RMAN> CATALOG DATAFILECOPY '/u02/oradata/orcl/TSH1.dbf' $ rman target=/ Manager: Release 9.2.0.1.0 - ProductionĬonnected to target database: orcl (DBID=1371963417)Įxisting user-created backups can be added to the catalog using the CATALOG command. All rights reserved.Įach database to be backed up by RMAN must be registered with the catalog. $ rman Manager: Release 9.2.0.1.0 - ProductionĬopyright (c) 1995, 2002, Oracle Corporation. GRANT connect, resource, recovery_catalog_owner TO rman This should be on a separate server to any databases you are planning to backup.ĭATAFILE '/u02/oradata/orcl/rman01.dbf' SIZE 6208K REUSE