知识分享 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')
本文介绍了如何使用Oracle的闪回功能来恢复因误操作删除的表数据。通过启用行移动,设置特定时间点的闪回,然后插入到目标表中,可以将数据恢复到指定时间的状态。此方法适用于数据恢复场景,确保数据安全性。
606

被折叠的 条评论
为什么被折叠?



