Oracle 閃回功能

2022-06-21 12:36:08 字數 686 閱讀 8590

檢視閃回功能是否開啟

sql> select flashback_on from v$database;

flashback_on

------------------

yes

開啟閃回功能(確保資料庫處於歸檔模式)

sql> shutdown immediate;

sql> startup mount;

sql> alter database archivelog;

sql> alter database flashback on/off;  開啟關閉閃回功能

sql> alter database open;

設定閃回區大小:

sql> alter system set db_recovery_file_dest_size=80g scope=spfile;

設定閃回區位置:

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

設定閃回目標為5天,以分鐘為單位,每天為1440分鐘:

sql> alter system set db_flashback_retention_target=7200 scope=spfile;

oracle閃回功能示例

閃回表中的資料 必須開啟行移動功能alter table ccc log enable row movement select from ccc log delete from ccc log select from ccc log select from ccc log as of scn 945...

oracle 資料閃回

select from scott.dept insert into scott.dept values 50,錯誤資料 china select from scott.dept as of timestamp to timestamp 2011 12 09 10 00 00 yyyy mm dd ...

oracle閃回技術

1,閃回資料庫到之前某時間點 在安裝時需要開放閃回功能 不支援表空間刪除 select name from v database 看是否開啟閃回功能 select flashback on,name from v database select name from v bgprocess where...