oracle表数据误删还原
2024-10-01 05:09:33
首先,找到数据删除前的一个时间点。
select timestamp_to_scn(to_timestamp('2013-10-12 8:30:00', 'YYYY-MM-DD HH24:MI:SS')) from dual;
如,我这里得到的点为36551273744。
然后根据这个点找到你所删除文件的表的数据。使用一个临时表把这些数据存放起来。
create table 临时表 as select * from 清空原表 as of scn 36551273744;
delete from 被删除数据的表 where 1=1;
把临时表的数据放回原表
insert into 被删除数据的表 select * from 临时表;
删除临时表
drop table 临时表;
最新文章
- Linux编译工具:gcc入门
- 21.2 Partitioning Types
- MySQL数据库 安装图解
- jquery无限级下拉框
- BZOJ1107 : [POI2007]驾驶考试egz
- java.lang.NoSuchMethodException
- SSIS ->;>; Script Debugging and Troubleshooting
- Multiple View Geometry in Computer Vision Second Edition by Richard Hartley 读书笔记(二)
- Android开发系列之Android项目的目录结构
- 大数据系列修炼-Scala课程05
- window系统下sbt的安装
- php动态编辑zlib扩展
- jsp页面怎么引入js
- python windows 安装jieba....
- js基础知识--变量类型和变量计算
- 使用Speech SDK 5.1文字转音频
- 下面关于XML叙述不正确的是( )
- Winfrom 开源组件Control.FirefoxDialog使用
- WinForm的Chart图形控件
- 【树形dp】vijos P1180 选课
热门文章
- 李洪强iOS开发之使用CycleScrollView实现轮播图
- C++11内存模型的粗略解释
- jqueryrotate 使用 帮助 笔记 学习
- 8 Things Every Person Should Do Before 8 A.M.
- sdut Message Flood(c++ map)
- Notepad++加上xml格式化的功能
- 各种好用的工具之一 ---- PNGGauntlet
- (Java)利用ListIterator(iterator 重复器/迭代器的子接口) 操作ArrayList
- hive 配置mysql元数据库
- STM32学习笔记——FSMC 驱动大容量NAND FLASH [复制链接]