Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Tips to Recover a Dropped Oracle Table

Oracle Database Tips by Donald BurlesonFebruary 24, 2015, Updated May 21, 2015

Question:  How do I recover a dropped Oracle table?  I emptied the recycle bin and I need the table back or I will lose my job.  How do I recover a dropped table?  Can I restore the table and recover the dropped table without affecting other objects of the database?

Answer:  DBAs get fired for dropping production tables, so act quickly!  DDL like drop table cannot be rolled-back, and you have lost your recycle bin, but you still have several options for recovering a dropped table:

  • Data pump exports - If you care about the data in this table, you would have exported it nightly.
  • RMAN - You can recover a single dropped table by restoring the entire database into your test environment using RMAN, and then roll forward. You can then extract the table and copy it from test to production using CTAS over a database link and then re-add the indexes and constraints.
  • LogMiner - Oracle LogMiner can used to recover a dropped table.  See here, the steps to recover a dropped table using LogMiner.
  • Flashback - It's easy to recover a dropped table with these steps in flashback.

Here is an example of recovering a dropped table with flashback.  To recover the table we first check to see that it resides in the recyclebin, and then we issue the "flashback table to before drop" command to recover the table:

SQL> drop table mytab;

Table dropped.

SQL> select original_name from dba_recyclebin;

ORIGINAL_NAME
--------------------------------
MYTAB

SQL> flashback table MYTAB to before drop;

Flashback complete.

SQL> select * from mytab;

ID
----------
2
2

Sometimes you just drop a column rather than the whole table.  Follow the link for insight into how to recover a dropped column.


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.