知识分享 oracle的单表数据闪回操作
操作场景:误操作导致某些表删除掉了 ,需要恢复指定时间的数据
--------------------------------------------------------------------
alter table 表名 enable row movement;
flashback table 表名 to timestamp TO_TIMESTAMP('2022-11-26 15:02:00', 'yyyy-mm-dd hh24:mi:ss');
alter table 表名 disable row movement;
----------------------------------------------------------------------
表中的数据 无删除 oracel闪回操作恢复
select *
from 表名
as of timestamp to_timestamp('2024-04-26 16:00:00','yyyy-mm-dd hh24:mi:ss') 用这个可以查询某个时间点的数据,然后加个insert into 表名,就可以恢复了
insert into CT_AC_FaCard
select *
from CT_AC_FaCard
as of timestamp to_timestamp('2024-04-26 16:00:00','yyyy-mm-dd hh24:mi:ss')