当前位置:Gxlcms > 数据库问题 > Oracle 数据 update后怎么恢复到以前的数据

Oracle 数据 update后怎么恢复到以前的数据

时间:2021-07-01 10:21:17 帮助过:32人阅读

Oracle 数据 update后怎么恢复到以前的数据

--1. 在v$sqlarea 这视图里面找到你操作的那条sql时间
select r.FIRST_LOAD_TIME,r.* from v$sqlarea r order by r.FIRST_LOAD_TIME desc;

--2.将该操作节点前未修改的数据,导入到新表中
create table t_table_recove --新表
as
select * from ac01 --原表
as of timestamp to_timestamp(‘2019-06-23 11:12:41‘,‘yyyy-mm-dd hh24:mi:ss‘);

--3.删除原表的数据
delete ac01;
--4.恢复数据
insert into ac01 select * from t_table_recove;

Oracle 数据 update后怎么恢复到以前的数据

标签:oracl   v$sql   导入   数据   order   mes   sql   update   ora   

人气教程排行