Oracle Flashback Technologies-Flash back to the drop table

Source: Internet
Author: User

Oracle Flashback Technologies-Flash back to the drop table

In oracle10g, when a table is dropped, the table is not actually deleted, and the support is rename and placed in RecycleBin.

#新建一个表y2, used to test

Sql> CREATE TABLE y2 as select * from All_tables; Table created. Sql> Select COUNT (*) from Y2;  COUNT (*)----------      3598

#删除表

Sql> Show recyclebinsql> drop table y2; Table dropped. Sql> Show recyclebinoriginal name    recyclebin name                OBJECT TYPE  DROP time------------------------------ -----------------------------------------------Y2               bin$gsug65h6lkdgu7wmcgqm8g==$0 TABLE        2015-06-23:08:04:05sql> Select COUNT (*) from Y2;select count (*) from Y2                     *error on line 1:ora-00942:table or view D OES not exist

#闪回被drop的表

Sql> Flashback table Y2 to before drop; Flashback complete. Sql> Select COUNT (*) from Y2;  COUNT (*)----------      

Oracle Flashback Technologies-Flash back to the drop table

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.