Restore the Oracle database Procedure

Restore the Oracle database Procedure

Ø Copy the datafiles, archivelog files and controlfile to restore backup location

Ø Set the SID of the restore database in .bash_profile and run the bash profile -- $. .bash_profile

Ø Crosscheck the existing backup restore, if any expired, delete those backup – RMAN> delete expired backup;

RMAN> crosscheck backup;

RMAN> delete expired backup;

Ø Set to restore the database

RMAN > restore controlfile from ‘/backup/ctlfile.ctl’;     <Mention the controlfile name in backup location>

Ø After successful restore of the controlfile – mount the database

RMAN> alter database mount;

Ø Now catalog the backup files from the backup location

RMAN> catalog start with '/backup';

Ø List backup of archivelog all;

Ø Now find the highest SCN No & Copy it, then start the restore of thee database

RMAN> run {
set newname for database to '/oradata/datafiles/%b';     --- Here all the datafile will be places in given location
set until scn 1091462;    --- This is highest SCN Available
restore database;
switch datafile all;    - To switch all the datafile to new location
recover database;
}

Ø After successfully restore & recover of the database, now open the database with resetlogs

RMAN> alter database open reset logs;

Hence the database will be in open mode & verify the database








Comments

Popular posts from this blog

RAC Failure Scenario - Testing in our RAC Test DB - Node 1 & Node 2

ORA-01110: data file 1: '/oradata/datafiles/system01.dbf'

Expdp from Higher version 12c (12.1.0.2) to lower version 11g (11.2.0.4)