//MOUNT DB startup mount; //启动RMAN. run{ set until time '月-日-年 时:分:秒'; recover database; } //启动DB. alter database open resetlogs;不过那个时间格式我一直不太清楚到底怎么写才正确~~ 也没怎么试, 楼主可以试试~ 实在不行就用 set until scn SCNnum; (SCNnum, 先去查出你truncate时的SCN)
select * from t1 as of timestamp(to_timestamp('2006-08-01 21:00:00', 'YYYY-MM-DD hh:mm:ss'));
我的是9i,没办法帮你试了,给你一个例子试试看,
试完了麻烦把结果也告诉我一下。例:执行将test表闪回到2005年5月7日下午3点。SQL>flashback table test to timestamp to_timestamp(’2005-05-07 15:00:00’,’yyyy-mm-dd hh24:mi:ss’);
回楼上:我试试后在把结果再发出来。
startup mount;
//启动RMAN.
run{
set until time '月-日-年 时:分:秒';
recover database;
}
//启动DB.
alter database open resetlogs;不过那个时间格式我一直不太清楚到底怎么写才正确~~ 也没怎么试, 楼主可以试试~
实在不行就用 set until scn SCNnum; (SCNnum, 先去查出你truncate时的SCN)
所以没有办法通过日志来找回丢失的数据