Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the steps to turn on or off the flashback function of an oracle database

Shulou Source: shulou.com Published: 2022-06-01 03:19:02 11月16日 Update

This article shows you how to open or close the oracle database flashback function steps, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.

First, open the flashback database feature:

1. Make sure the database is in archive mode. If it is non-archive mode, convert the database to archive mode.

SQL > archive log list

Database log mode archive mode

Automatic archiving enabled

End of Archive / cwarch

The earliest online log sequence 1274

Next archive log sequence 1276

Current log sequence 1276

2. Set the flashback recovery area

Set the flashback area size:

SQL > alter system set db_recovery_file_dest_size=80g scope=spfile

Set the flashback zone location:

SQL > alter system set db_recovery_file_dest='/workdb/account_flashback_area' scope=spfile

Set the flashback target to 5 days, in minutes, and 1440 minutes per day:

SQL > alter system set db_flashback_retention_target=7200 scope=spfile

3. Turn on the flashback function

SQL > shutdown immediate

SQL > startup mount

SQL > alter database flashback on

SQL > alter database open

4. Confirm that the database flashback feature is enabled

SQL > select flashback_on from v$database

FLASHBACK_ON

-

YES

Turn off the flashback database feature:

SQL > shutdown immediate

SQL > startup mount

SQL > alter database flashback off

SQL > alter database open

The above is how to turn on or off the flashback function of oracle database. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Data database schema log archive function sequence feature step content skill knowledge concise concise location unit size that is articles more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Apple Linux OPPO Reno Xiaomi