Database Recovery Concepts

The process of solve any type of database failures,CONTROl_FILE parameter in init.ora file, resolve the
quickly and without data loss and keep database highissues.
available is called database recovery.The mainThrough SPFILE
elements of database recovery is the most recentWe can dynamically set or change the location of the
database backup.If you maintains database backupcontrol file using SPFILE concept using the following
efficiently, then database recovery is very straightcommand.
forward process.SQL> ALTER SYSTEM SET CONTROL_FILES =
The components and technologies of database is to'/u01/app/oracle/oradata/prod/ctlorcl01.ctl',
configure to minimize or no data loss and keep'/u02/app/oracle/oradata/prod/ctlorcl02.ctl',
database for open, includes'/u03/app/oracle/oradata/prod/ctlorcl03.ctl')
* CheckpointsSCOPE=SPFILE;
* Control fileThe parameter will get effects when restart the oracle
* Online redolog filesinstance.
* Archived redo log fileMultiplexing redo log files
* Flash Recovery AreaThe information in the online redolog files are very
Recovery Technologiesimportant for database recovery. For safe guard
* Database Flash back technologythese files against any kind of damage you can
* Open database in Archive log modeconfigure multiple copies of online redolog files in
* Implement database high availability features likedifferent disk location. All multiplex copies of redolog
RAC, DATAGUARD,steams etc.files are same in size and keep in a group. Each
Components of database recoveryredolog file in a group is called members. LGWR
Checkpoints:- Checkpoint (CKPT) in oracle database isbackground process, writes redo information to all
a mandatory background process. This processidentical members of a group,It is a best practice to
works in concert with the database writer processprotect redolog file from single point of failure. When
(DBWn) to manage the amount of time required formultiplexing redolog files, members of a group should
instance recovery. Checkpoint in oracle occurs whenkeep in different disks so that one disk failure will not
manual or automatic log switch occurs.affect the normal database operation.For normal
FIRST_START_MTTR_TARGET parameter can bedatabase operation at least two redo log groups is
adjusted to control checkpoints as a result to improverequired.
instance recovery.Creating new logfile group
Control file - Control file is a metadata repository forWe can create new redolog groups using the following
database. It keeps all information about structure of thecommand.
database. Control file is a very critical for databaseSQL > ALTER DATABASE ADD LOGFILE
operation, so as being a DBA,you should maintain atGROUP 4 ('/u01/app/oracle/oradata/prod/redo0401.log',
minimum two copies of control file ( Oracle'/u01/app/oracle/oradata/prod/redo0402.log'
recommend three ) and save these in a different disk'/u01/app/oracle/oradata/prod/redo0403.log' ) SIZE 10M;
to same the control file disk failures.We can add new member to an existing group using
Multiplexing control filethe following command.
* Through Init.oraSQL> ALTER DATABASE ADD LOGFILE
* Through SPFILEMEMBER
Multiplexing control file on init.ora file though'/u01/app/oracle/oradata/prod/redo0401.log' TO
CONTROL_FILE initialization parameterGROUP 3;
CONTROL_FILES =('/u01/app/oracle/oradata/prodRenaming Log members
ctlorcl01.ctl','/u02/app/oracle/oradata/prod/ctlorcl02.ctl','Following steps to be follow to rename log members
u03/app/oracle/oradata/prod/ctlorcl03.ctl')1. Shutdown database.
Storing control file into multiple location,it protect control2. Copy/rename redolog file to new location with
files from single point of failure. In multiplexing control fileoperating system command
configuration, Oracle updates all the control files at a3. startup database with STARTUP MOUNT
time, but uses only one,first one listed in thecommand
CONTROL_FILES parameter.When a single controlfile4. Execute SQL> ALTER DATABSE RENAME
is corrupt, then DBA can simply copy a good one toFILE 'oldfilename' TO 'newfilename'
that location or other location and make changing in the5.