oracle表数据修复错误后恢复数据

来源:互联网 发布:php冒泡排序法 编辑:程序博客网 时间:2024/06/07 10:00

--查找出执行sql时的时间

select r.FIRST_LOAD_TIME,r.* from v$sqlarea r order by r.FIRST_LOAD_TIME desc ;


--查出修改之前的数据 存储到一张新表中

create table eomstest_20160603 --新表
as
select * from eomstest --之前操作的那张表  时间为上边查出来的修改时间
 as of timestamp to_timestamp('2016-06-03 16:29:13','yyyy-mm-dd hh24:mi:ss');

1 0
原创粉丝点击