Control File Auto

download Control File Auto

of 2

Transcript of Control File Auto

  • 8/3/2019 Control File Auto

    1/2

    CONTROLFILE AUTO BACKUP

    RMAN is one of the very useful utility provided by Oracle for backup and recovery Purpose.

    Oracle online backups were introduced with Version 6, where tablespace must be kept in backupmode in order to take online backups.

    RMAN has following default parameters and its default values:

    RMAN> show all;RMAN configuration parameters are:CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # defaultCONFIGURE BACKUP OPTIMIZATION OFF; # defaultCONFIGURE DEFAULT DEVICE TYPE TO DISK; # defaultCONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO'%F'; # defaultCONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TOBACKUPSET; # defaultCONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; #defaultCONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; #defaultCONFIGURE MAXSETSIZE TO UNLIMITED; # defaultCONFIGURE ENCRYPTION FOR DATABASE OFF; # defaultCONFIGURE ENCRYPTION ALGORITHM 'AES128'; # defaultCONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # defaultCONFIGURE SNAPSHOT CONTROLFILE NAME TO'F:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SNCFORCL.ORA'; # default

    Or

    RMAN> SHOW CONTROLFILE AUTOBACKUP;

    RMAN configuration parameters are:CONFIGURE CONTROLFILE AUTOBACKUP OFF;

    By default CONTROLFILE AUTOBACKUP is OFF. But it is strongly recommended enabling

    CONTROLFILE AUTOBACKUP ON.

  • 8/3/2019 Control File Auto

    2/2

    Advantage:

    y RMAN can recover the database even if the current control file, recovery catalog, andserver parameter file are inaccessible.

    y Restore the RMAN repository contained in the control file when the control file is lostand you have no recovery catalog. You do not need a recovery catalog or target databasecontrol file to restore the control file auto backup.

    y Control file auto backup can keep track of add a data file, resize, increase/decrease thesize of data files or etc.

    y If CONFIGURE CONTROLFILE AUTOBACKUP is ON, then RMAN automaticallybacks up the control file and the current server parameter file (if used to start up thedatabase) in one of two circumstances: when a successful backup must be recorded in the

    RMAN repository, and when a structural change to the database affects the contents ofthe control file which therefore must be backed up

    To perform control file auto backup on issue the following command

    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;new RMAN configuration parameters:CONFIGURE CONTROLFILE AUTOBACKUP ON;new RMAN configuration parameters are successfully storedstarting full resync of recovery catalogfull resync complete