用toad的时候不小心改了一两条记录的数据,如何查找并还原回来? 能否查看ip和修改记录? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 假設你是一小時內改的數據,可以類似下面的語句查詢出來select * from test as of timestamp systimestamp - interval '1' hour; --用flashback ,查看某个时间的表数据(你删除前的) 然后可以改回来select * from mytestemployee as of timestamp to_date('20101021 15:30:01','yyyymmdd hh24:mi:ss' 如果没有提交,就rollback,如果提交了,10g以上可以利用flashback。9i以下不了解。 簡單的方法是,你先創建一個臨時表來保存修改前的數據create table temp_test as select * from test as of timestamp systimestamp - interval '1' hour;然後truncate該表truncate table test;最後從臨時表中導入insert into test select * from temp_test;commit; flashback query 或 flashback table 数据库定时删除全备份不执行了。高分求原因和处理问题。 求oracle SQL语句 Oracle9i 协议适配器错误 如何解决? 技术职位 :oracle 动态执行表不可访问,本会话的自动统计被禁止。什么意思啊? 高分求救,一个高难度的SQL语句?? 建立表空间的语句有无覆盖已存在数据文件的参数呢? RMAN的还原问题,急,马上给分 不知道是数据问题还是DATASET问题,请大哥指教! ORACLE9I 拼接SQL语句 弱实体集 oracle中哪个函数可以生成随机数
select * from test as of timestamp systimestamp - interval '1' hour;
select * from mytestemployee as of timestamp to_date('20101021 15:30:01','yyyymmdd hh24:mi:ss'
10g以上可以利用flashback。9i以下不了解。
create table temp_test as select * from test as of timestamp systimestamp - interval '1' hour;
然後truncate該表
truncate table test;
最後從臨時表中導入
insert into test select * from temp_test;
commit;