oracle闪回技术

2022/5/28 2:19:48

本文主要是介绍oracle闪回技术,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

一、闪回设置

show parameter undo; 
undo_managment='AUTO';   //自动闪回管理
undo_retention=900;   //闪回数据保存秒数
undo_tablespace='UNDOTBS1';   //设置闪回表空间

 

二、闪回查询

1、闪回时间查询

select * from scott.dept;
delete from scott.dept where deptno=40; 
commit;
select * from scott.dept as of timestamp sysdate-1/1400;  //查看一分钟前的表信息,删除后一分钟内查询,否则要把时间范围扩大

 

2、闪回scn查询

 



这篇关于oracle闪回技术的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程