Recover Dropped Table Using RMAN: Recovering A Specific Table From Backup

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Recover Dropped Table 

Using RMAN
Accidental drop of the table and its recovery is a complex task. The solutions offered till Oracle
12c were either complex and having data loss.
Note : This discussion assumes , the table which is not there in recycle bin or recycle bin is
turned off
 
Oracle 11g solutions with Data Loss

1. Point in time recovery using database backup and archivelogs.


2. Flashback database before the point of table drop.
Oracle 11g solution without Data Loss

1. Create A temporary database with the backupod tablespace for the dropped table, sys,
system and undo tablespaces of the first database ( primary database)
2. Do point time recovery for the timestamp just before the drop of the table
3. Take the export of the table to be recovered
4. Import the table to original database
 
Oracle 12c made the things simple by new feature called “Recover Table ” . Here is the steps for
the same.

Recovering a Specific Table from Backup


1) Select log_mode from v$database; –> Database should be in archivelog mode
2) Find the location to store the datafiles to the temporary database created in this step
3) Find the time stamp at which the table is dropped.
4) RMAN > connect target /
5) RMAN> recover table wysheid.tab1 until time “to_date(’05/30/2018
03:59:00′,’mm/dd/yyyyhh24:mi:ss’)” auxiliary destination ‘/wysheid/oracle/auxilairy/’ ;

You might also like