Oracle数据库闪回归档

create flashback archive test_archive tablespace exmple cuota 10 M retention 1 day;--创建闪回归档,最大存储10M数据,保存1天
alter table user.tablename flashback archive test_archive;--这样修改表所有的记录都会记录在闪回归档里
select * from user.tablename as od timestamp(systimestamp – interval ‘1’ minute);--查询指定时间戳的表内容
select * from user.tablename between timestamp timestamp1 and timestamp2;--查询两个时间戳之间的内容
alter table user.tablename no flashback archive;--取消使用闪回归档
select * from dba_tablespaces;--查看数据库有哪些表空间
select * from user_flashback_archive;--查询用户的闪回归档
select * from dba_flashback_archive_ts; --查询总体的闪回归档

原文地址:https://www.cnblogs.com/suhfj-825/p/12327781.html