Вы находитесь на странице: 1из 2

Flashback database

New logs (flashback Logs), which are before images of hanged data blocks. Recovery Writer background process (RVWR), which is responsible for writing the flashback logs. Initialization parameters: Views: 1. v$flashback_database_log. DB_RECOVEY_FILE_DEST_SIZE Sql> alter system set db_recovery_file_dest_size=2G scope=both; DB_RECOVERY_FILE_DEST Sql> alter system set db_recovery_file_dest=/path/ scope=both; To setup the flashback on: Shutdown; Startup mount; Alter database flashback on; Shutdown; Startup; Note: the database must be in archivelog mode; To setup: Shutdown; Startup mount; Archive log list; Alter database archivelog; ### if it is not enabled Alter database open; To check flashback feature on: Select flashback_on from v$database; Conn scott/tiger;

Drop table bonus; Flashback table bonus to before drop; Restore Point: >connect / as sysdba >create restore point beforedrop_emp; >conn scott/tiger; >drop table emp purge; >conn / as sysdba; >alter database close; >flashback database to restore point beforedrop_emp; >shutdown immediate; >startup mount; >alter database open resetlogs; >select storage_size, name from v$restore_point; To take database back in time: Select oldest_flashback_time from v$flashback_database_log; Alter database close; Flashback database to timestamp(to_date(2010-02-23:11:24.YYYY-MM-HH-:MI:SS)); Shutdown immediate; Startup mount; Alter database open resetlogs;

Вам также может понравиться