Chinaunix首页 | 论坛 | 博客
  • 博客访问: 427646
  • 博文数量: 94
  • 博客积分: 3066
  • 博客等级: 中校
  • 技术积分: 908
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-25 17:10
文章分类

全部博文(94)

文章存档

2016年(3)

2015年(4)

2014年(1)

2013年(9)

2012年(8)

2011年(1)

2010年(8)

2009年(4)

2008年(2)

2007年(6)

2006年(48)

我的朋友

分类: Oracle

2013-09-03 22:27:57

 

create table zcl_exam_train_officer              as select * from        exam_train_officer       as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_exam_train_publish              as select * from        exam_train_publish       as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_exam_train                      as select * from        exam_train               as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_officer_assigned                as select * from        officer_assigned         as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_officer_info                    as select * from        officer_info             as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_officer_assign_detail           as select * from        officer_assign_detail    as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_test_sites                      as select * from        test_sites               as of timestamp to_date('20130903151500','yyyymmddhh24miss');
create table zcl_officer_assign                  as select * from        officer_assign           as of timestamp to_date('20130903151500','yyyymmddhh24miss');


select count(*) from zcl_exam_train_officer          union all
select count(*) from zcl_exam_train_publish          union all
select count(*) from zcl_exam_train                  union all
select count(*) from zcl_officer_assigned            union all
select count(*) from zcl_officer_info                union all
select count(*) from zcl_officer_assign_detail       union all
select count(*) from zcl_test_sites                  union all
select count(*) from zcl_officer_assign            


alter table  exam_train_officer              enable row movement;
alter table  exam_train_publish              enable row movement;
alter table  exam_train                      enable row movement;
alter table  officer_assigned                enable row movement;
alter table  officer_info                    enable row movement;
alter table  officer_assign_detail           enable row movement;
alter table  test_sites                      enable row movement;
alter table  officer_assign                  enable row movement;


flashback table exam_train_officer       to timestamp to_date('20130903151500','yyyymmddhh24miss');
flashback table exam_train_publish      to timestamp to_date('20130903151500','yyyymmddhh24miss');
flashback table test_sites              to timestamp to_date('20130903151500','yyyymmddhh24miss');

flashback table officer_info            to timestamp to_date('20130903151500','yyyymmddhh24miss');

flashback table exam_train              to timestamp to_date('20130903151500','yyyymmddhh24miss');

flashback table officer_assign          to timestamp to_date('20130903151500','yyyymmddhh24miss');

flashback table officer_assigned        to timestamp to_date('20130903151500','yyyymmddhh24miss');

flashback table officer_assign_detail   to timestamp to_date('20130903151500','yyyymmddhh24miss');

阅读(1517) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~