oracle恢復表資料至某個時間點

2021-08-27 19:22:48 字數 493 閱讀 2493

oracle資料update,delete 後怎麼恢復到以前的資料

1、select * from v$sql where sql_text like '%update map_optcbl_point_70 set shape%'--查出你需要恢復的時間點 2、

create table t_table_recove --新的表

as select * from your_table --你誤操作的表

as of timestamp to_timestamp('2013-09-23 11:38:46','yyyy-mm-dd hh24:mi:ss');--時間點

--得到你想要的資料

3、delete  your_table;--將原表的資料全部刪除

4、insert  into your_table  select * from t_table_recove;--恢復資料

5.刪除臨時表 drop table t_table_recove;

Oracle表資料恢復

alter table 表名 enable row movement 2 執行表資料恢復語句,需明確恢復的表名和恢復時間節點。flashback table 表名 to timestamp to timestamp 時間點 yyyy mm dd hh24 mi ss 注意 如有需要 1 通過flas...

oracle恢復表資料

經常可能會因為某些誤操作等原因導致oracle資料庫表裡的資料發生變化,不過沒關係,用這條語句可以查詢最近幾個小時內的資料 具體多久不一定,自行測試 既然能查到,恢復當然就解決了。查詢該錶60分鐘前的資料 select from table as of timestamp systimestamp ...

Oracle 表和表資料恢復

對誤刪的表,只要沒有使用 purge 永久刪除選項,那麼基本上是能從 flashback table 區恢復回來的。資料表和其中的資料都是可以恢復回來的,記得 flashback table 是從 oralce 10g 提供的,一般步驟有 a.從 flashback table 裡查詢被刪除的資料表...