赞
踩
当我们在操作数据库时,不小心把重要的内全删了,相信很多人很定慌得一批,数据才是我们最核心的东西。
现在我一招帮你们撤回操作恢复数据!
//1.查找自己误操作的数据和时间
select r.FIRST_LOAD_TIME,r.* from v$sqlarea r order by r.FIRST_LOAD_TIME desc ;
//2.填入表名和操作的时间
select * from 表名 as of timestamp to_timestamp(‘时间’, ‘yyyy-mm-dd hh24:mi:ss’)
//3.执行下面的操作就完成了
alter table m_met_rules enable row movement;
flashback table m_met_rules to timestamp to_timestamp(‘2020-07-21 10:33:51’, ‘yyyy-mm-dd hh24:mi:ss’);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。