oracle >>误删除数据之后,恢复数据
1:确定登录的用户有flash any table权限
--开启行移动功能
alter table 表名 enable row movement;
--恢复表数据
flashback table 表名 to timestamp to_timestamp('删除时间点','yyyy-mm-dd hh24:mi:ss');
--关闭行移动功能 ( 千万别忘记 )
alter table 表名 disable row movement;
1:确定登录的用户有flash any table权限
--开启行移动功能
alter table 表名 enable row movement;
--恢复表数据
flashback table 表名 to timestamp to_timestamp('删除时间点','yyyy-mm-dd hh24:mi:ss');
--关闭行移动功能 ( 千万别忘记 )
alter table 表名 disable row movement;