Home > Database > Mysql Tutorial > 在Oracle中恢复被DROP掉的表

在Oracle中恢复被DROP掉的表

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:10:36
Original
1181 people have browsed it

在Oracle中可能不小心会DROP掉一个表,如果没有定期做备份的话,将会带来很大的麻烦。如果有的情况下,每天的数据都很重要,而定

在Oracle中可能不小心会DROP掉一个表,如果没有定期做备份的话,将会带来很大的麻烦。如果有的情况下,每天的数据都很重要,而定期备份的周期又稍长,情况恐怕也不容乐观!以前只知道Windows有个回收站,今天听说Oracle也有个回收站!

不过还好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中恢复被DROP掉的表的方法,相信大家通过本文的学习,在下次遇到类似问题就能轻松解决。 

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template