How to Configuring Oracle Flashback

To enable logging for Flashback Database, set the DB_FLASHBACK_RETENTION_TARGET initialization parameter and issue the ALTER DATABASE FLASHBACK ON statement.

  • Ensure the database is operation in ARCHIVELOG mode,To display the status of archiving:
  • SQL> select log_mode from v$database;
    
    LOG_MODE
    ------------
    ARCHIVELOG
    
    SQL>
     

    If is not configured make sure you follow this tutorial before you proceed.

  • If yes do the following
  •  
  • Connect as sysdba user.
  •  SQL> connect / as sysdba
  • Make a clean shutdown.
  •  SQL> shutdown immediate
  • Start your database in mount mode only.
  •  SQL> startup mount

  • Enable flashback.
  • SQL>alter database flashback on;
    >

  • Open your database.
  • SQL> alter database open;
  • Check to see if changed were made.
  •  SELECT NAME, FLASHBACK_ON FROM V$DATABASE;