select t.time_dp,t.scn from sys.smon_scn_time t order by t.time_dp desc;
1 2014/7/1 11:05:47225286134
2 2014/7/1 11:00:19225285926
3 2014/7/1 10:57:41225285748
--scn與時間的對應關係
每隔5分鐘,系統產生一次系統時間標記與scn的匹配並存入sys.smon_scn_time表。
select * from payoperbankcard2 as of scn 225285748
就可以看到在這個檢查點的錶的歷史情況。
然後我們恢復到這個檢查點(我這裏恢復到2014/7/1 10:57:41時的情況)
insert intoow_admin_organizations
select * payoperbankcard2 as of scn 225285748
where id not in (select org_key from ow_admin_organizations)
恢復update的數據操作一樣。