oracle 闪回表
来源:互联网 发布:biz域名 编辑:程序博客网 时间:2024/06/16 18:21
create table ass (name varchar2(220));
select *from ass;
drop table ass;
select *from ass;
flashback table ass to before drop rename to aa;
select * from recyclebin;
select *from ass;
drop table ass;
select *from ass;
flashback table ass to before drop rename to aa;
闪回表到某个时间或者某个scn
1.获取删除前的scn
select dbms_flashback.get_system_change_number from dual
1787910
2.查看当前的数据
select * from hongrao
ID NAME
1 wei
3 wei
3 hong
5 rao
4 hong
5 rao
3.执行删除
delete from hongrao where id>=4
4.删除后的数据
select * from hongrao
ID NAME
1 wei
3 wei
3 hong
5.执行闪回表
flashback table hongrao to scn 1787910
注意当时通常不会这样闪回表,因为有些更新有可能也是需要的,所通常会先执行闪回查询到另一个另一个表中然后按照需要合并这两张表
即是 create table a as select * from hongrao as of 1787910 然后将a表和hongrao的表进行对比后移除错误的数据
select * from recyclebin;
- oracle 闪回表
- oracle闪回表
- oracle 闪回表
- Oracle 闪回表权限授予
- oracle闪回表介绍
- oracle闪回表详解
- Oracle 闪回表实验
- oracle闪回表详解
- oracle闪回表详解
- Oracle学习之:闪回表
- Oracle???
- oracle
- oracle
- oracle
- oracle
- oracle...
- oracle
- oracle
- oracle 恢复被删除的存储过程或者表等
- CodeForces 23A You're Given a String...
- oracle 绑定变量和动态sql
- OD快捷键使用
- 单例模式SingleTon
- oracle 闪回表
- Log级别说明
- oracle 返回结果集(ref curssor)到客户端
- 最多约数问题
- oracle 双引号作为变量名
- Web Service压缩数据传输
- IOS 开源项目汇总【不断更新中】
- oracle 使用标签来嵌套使用变量和重复标签的问题
- Objective-C中的锁