Skip to Main Content
  • Questions
  • Recovery of dropped table in Oracle 10g

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, gaurav .

Asked: September 02, 2011 - 5:45 am UTC

Last updated: September 02, 2011 - 12:19 pm UTC

Version: 10.2.0.1.0

Viewed 1000+ times

You Asked

Hi Tom How to recover a drop table if the recyclebin is off in oracle 10g

and Tom said...

option 1)

you go to your backups.

You restore to another location your system tablespace, undo tablespace and the tablespace that contained that table. You point in time recover that new database to right before the drop took place. You then either a) transport off the entire tablespace if that table is the only thing in it or b) data pump out the table data and data pump it back into the other database


option 2)

you had flashback database enabled. shutdown your database, flash it back to before the drop took place, open it read only - data pump it out, flash the database 'forward' to right now and open it read only and import the data in.

option 3)

you have an export of some sort lying around that is good enough - import that table.




And then reenable the recyclebin!

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Alexander, September 02, 2011 - 10:34 am UTC

How about a transport tablespace to past point in time before the drop into an existing database, then expdb back over.

Although on 10g there are bugs related to the automation of the auxiliary instance that have prevented me from being able to get it to work, maybe they'd have better luck.
Tom Kyte
September 02, 2011 - 11:16 am UTC

what do you mean by "transport tablespace to past point in time"?

if you are taking about a tablespace point in time recovery - that is option 1 above.

Alexander, September 02, 2011 - 11:40 am UTC

Tom Kyte
September 02, 2011 - 12:19 pm UTC

right, a tablespace point in time recovery basically - because you'd need that auxillary instance (rman will create a new instance, restore system and undo and your tablespace to it, recovery to a point in time and transport it).

it would just be faster to do that and then extract the data - why bother finding another database with the right character set that doesn't have that schema yet to attach it to - you can just get it straight away.

More to Explore

Data Pump

All of the database utilities including Data Pump are explained in the Utilities guide.