Oracle data deletion statement

Source: Internet
Author: User

Oracle data deletion statement -- view the current SCN value SELECT dbms_flashback.get_system_change_number from dual; -- SELECT to_char (sysdate, 'yyyy-mm-dd hh24: mi: ss ', to_char (DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER) as scn from dual; -- SELECT * FROM scott through the time flashback query data www.2cto.com. test as of timestamp TO_TIMESTAMP ('2017-11-17 10:25:17 ', 'yyyy-MM-DD HH: MI: ss'); -- returns data through scn select * FROM scott. test as of scn 23565583; -- flashback table tablename to timestamp xxx flashback table tablename to scn xxx -- prerequisites for flashback table -- the row movement function must be enabled for this table, you can enable and resume alter table test enable row movement before restoration;

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.