0% found this document useful (0 votes)
36 views

Enable Flashback On A Database

1. Set parameters to enable Flashback and configure the Flash Recovery Area. 2. Verify the database is in NOARCHIVELOG mode and alter it to ARCHIVELOG mode. 3. Enable Flashback on the database using the ALTER DATABASE FLASHBACK ON command.

Uploaded by

Jabras Guppies
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Enable Flashback On A Database

1. Set parameters to enable Flashback and configure the Flash Recovery Area. 2. Verify the database is in NOARCHIVELOG mode and alter it to ARCHIVELOG mode. 3. Enable Flashback on the database using the ALTER DATABASE FLASHBACK ON command.

Uploaded by

Jabras Guppies
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

ENABLE FLASHBACK ON A DATABASE

1. The following parameters should be set on the databases. - DB_RECOVERY_FILE_DEST_SIZE - DB_RECOVERY_FILE_DEST - DB_FLASHBACK_RETENTION_TARGET Verify that this parameter has been setup if not execute the following: sqlplus /as sysdba SQL> alter system set db_recovery_file_dest_size=20G scope=spfile; SQL> alter system set db_recovery_file_dest= '/FRA' scope=spfile; SQL> alter system set db_flashback_retention_target=1440 scope=spfile; 2. Verify that the database is in archivelog mode. SQL>select log_mode from v$database; LOG_MODE ------------NOARCHIVELOG 3. Enable Archivelog. SQL> SQL> SQL> SQL> SQL> shutdown immediate startup mount alter database archivelog; alter database open; select log_mode from v$database;

LOG_MODE ------------ARCHIVELOG 4. Enable flashback on the database. SQL> alter database flashback on; Database altered.

5.

Create a test restore point. SQL> create restore point testing_starts guarantee flashback database; Restore point created.

6.

Verify restore point created. SQL> select name, scn, time, guarantee_flashback_database from v$restore_point; NAME -------------------------------------------------------------------------------SCN ---------TIME GUA --------------------------------------------------------------------------- TESTING_STARTS 42033862 08-MAY-12 01.37.30.000000000 PM YES

7.

Drop the Test restore point created. SQL> drop restore point testing_starts; Restore point dropped.

8.

Disable flashback on the database. SQL> alter database flashback off; Database altered. SQL> select flashback_on from v$database; FLASHBACK_ON -----------------NO

You might also like