oracle 資料恢復 回滾資料

2022-07-02 13:12:14 字數 377 閱讀 4920

1.查詢你執行update 語句之前的資料 精確到什麼時間

select * from 表名 as of timestamp to_timestamp('2017-07-21 17:16:38', 'yyyy-mm-dd hh24:mi:ss');

2.開啟可移動資料命令,執行完就可以回滾資料

alter table 表名 enable row movement;

3.回滾 update 語句前的資料

flashback table 表名 to timestamp to_timestamp('2017-07-21 17:16:38', 'yyyy-mm-dd hh24:mi:ss');

注:可以回滾delete資料,不可以回滾truncate資料。

oracle資料回滾

當我們修改了表的資料並且提交了事務後,想回滾資料怎麼辦?先根據sql執行歷史確定資料回滾時間點 select sql text,last load time from v sql where sql text like update order by last load time desc 再將資料...

Oracle資料回滾

select from 表名 as of timestamp to timestamp 2019 04 15 22 00 38 yyyy mm dd hh24 mi ss alter table 表名 enable row movement alter table 表名 disable row mo...

Oracle資料回滾

1 select from 表名 as oftimestamp to timestamp 2019 04 15 22 00 38 yyyy mm dd hh24 mi ss 1 select 2 from 表名 as oftimestamp to timestamp 2019 04 16 21 43...