–查询 执行 delete 的语句 ,拿到删除的时间 FIRST_LOAD_TIME ,删除行数可参考 ROWS_PROCESSED
select t.FIRST_LOAD_TIME,t.ROWS_PROCESSED,t.* from v$sql t where t.sql_text like '%delete from trade%' ;
select *from trade as of timestamp to_timestamp('2023-12-07/14:21:03','yyyy-MM-dd HH24:mi:ss') t
这句是查询出时间点该表所有备份数据
– 时间放在查询语句中
insert into trade(
select *from trade as of timestamp to_timestamp('2023-12-07/14:21:03','yyyy-MM-dd HH24:mi:ss') twhere not EXISTS (select 1from trade d where t.id = d.id ));