I accidentally dropped a table, can I get it back?

Hello

I accidentally dropped a table, I can get it back is back with a different name than the original? I use Oracle 10.2.0.3.

Thanks, Felipe.

Hi Felipe,.

If you accidentally deleted a table, you can retrieve it back using the FLASHBACK TABLE... Before FILING to recover a table deleted from the Recycle Bin. Look at the following SQL example:

SQL> CREATE TABLE emp_example
  2  AS SELECT * FROM employees WHERE department_id=70;
Table created.

SQL> SELECT COUNT(*) FROM emp_example;
  COUNT(*)
----------
         5

SQL> DROP TABLE emp_exaple;
Table dropped.

SQL> FLASHBACK TABLE emp_example TO BEFORE DROP
  2  RENAME TO emp_other_name;
Flashback complete.

SQL> SELECT COUNT(*) FROM emp_other_name;
  COUNT(*)
----------
         5

See you soon,.

Francisco Munoz Alvarez
http://www.oraclenz.com

Tags: Database

Similar Questions

Maybe you are looking for