Enable and disable Oracle Flashback

Source: Internet
Author: User

1. Open flashback:

Close Database

SQL> shutdown immediate;

Mount Mode

SQL> startup mount;

If the archive is not enabled, open archive [because flashback depends on Media recovery, archive must be enabled before flashback is enabled]

SQL> alter database archivelog;

Enable Flashback

SQL> alter database flashback on;

 

2. Disable flashback:

Close the database:

SQL> shutdown immediate

Mount Mode

SQL> startup mount;

Disable Flashback

SQL> alter database flashback off;

 

To enable and disable the Oracle flash back, pay attention to the following points:

1. The premise of flashing is that the database archive must be opened.

2. Flash back open/close is the same as Archive open/close, all in mount Mode

3. If you want to close the archive on the database with the flash back enabled, you must first disable the flash back function dependent on the archive.

Check whether flashback is Enabled: select name, flashback_on from v $ database; check whether the flash recovery zone and size are set: show parameter db_recovery; first set the size of the flash recovery zone: alter system set db_recovery_file_dest_size = '2g '; then, set the path of the flash recovery zone: alter system set db_recovery_file_dest = 'e: \ oracle \ product \ 10.2.0 \ db_recovery_file_dest, the default value is 1440 minutes per day: alter system set db_flashback_retention_target = 1440;

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.