recover the tables when using "drop" sentences to do it

  today  a very urgent thing happened in the project, my colleague droped all the tables of database because of the careleness, there was no other choice we had to face this situation, we thank of many ways ,and tried to solve this problem,
  but  we still did not fix this problem, suddenly ,there are many results occured my head ,what should we do and so on .finally , we searched a way to solve this problem

在Oracle中恢复被DROP掉的表


在Oracle中可能不小心会DROP掉一个表,如果没有定期做备份的话,将会带来很大的麻烦。如果有的情况下,每天的数据都很重要,而定期备份的周期又稍长,情况恐怕也不容乐观!
不过还好Oracle有个回收站,概念就跟Windows里的回收站一模一样。
比如有以下误操作:
DROP TABLE drop_test;
这个时候再用SELECT语句查询此表时,将会提示表或视图不存在。但可以用如下语句查询到这个表还在Oracle回收站中:
SELECT * FROM user_recyclebin WHERE original_name=‘drop_test’;
那么现在就可以用如下语句进行恢复:
FLASHBACK TABLE drop_test TO BEFORE DROP

你可能感兴趣的:(oracle,windows)