ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Flashback data

Flashback data

原创 Linux操作系统 作者:ygzhou518 时间:2011-11-12 23:49:56 0 删除 编辑
 
set time on
create table ygzhou.flash(id int);
 
begin
for i in 1..20 loop
insert into ygzhou.flash values(i);
end loop;
commit;
end;
/
 
delete from ygzhou.flash where id>8 or id <5;
 
Flashbackup:
1、create table ygzhou.flash_back as select * from ygzhou.flash as of timestamp to_timestamp('2011-11-12 23:00:00','yyyy-mm-dd hh24:mi:ss);
2、create table temp as select * from ygzhou.falsh_back where id not in (select id from ygzhou.flash);
3、insert into ygzhou.flash select * from temp;
4、drop table temp/ygzhou.flash_back purge;
 
 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24867586/viewspace-710842/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-02-11

  • 博文量
    167
  • 访问量
    400256