Why is undosql not displayed when oracle uses flashback ?, Flashbackundosql

Source: Internet
Author: User

Why is undosql not displayed when oracle uses flashback ?, Flashbackundosql

Why is undosql not displayed when oracle uses flashback?

This is because oracle11g does not enable this function. Use the Administrator sys (that is, sysdba) to execute the following statement to alter databases add supplemental log data. If we want to restore some data, run (view the incorrect SQL statement. For example, we accidentally deleted a piece of data from the test table, and then copied the insert statement from the following results and executed it) select undo_ SQL from flashback_transaction_query where table_name = 'test'; # note that the table names after where in oracle must be in uppercase, otherwise, the system will prompt that the table cannot be found. The previous result is the latest operation. The scott user's test table will be restored to the data flashback select * from scott 10 minutes ago. test to timestamp sysdate-10/1440; accidentally delete a database table, use flashback to restore create table test (a int) tablespace USERS; subsequent tablespace cannot be missing, otherwise, you cannot enter the recycle bin drop table test; flashback table test to before drop; the data in the original database table is also restored.

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.