1.查询update语句执行的时间节点 ;
select t.FIRST_LOAD_TIME, t.SQL_TEXT from v$sqlarea t where to_char(t.FIRST_LOAD_TIME) > '2023-03-19/17:00:00' order by t.FIRST_LOAD_TIME desc;
- 开启表的行迁移
alter table test enable row movement;
3.回滚表数据到目标节点
flashback table test to timestamp to_timestamp('20230319 17:00:02','YYYYMMDD HH24:MI:SS');4.查询回滚结果```sql
SQL> select * from test;COL1 ID
---------- ----------
col1 1
col2 2
col3 3
col4 4SQL>