備份導入與導出
1、導出
exp test/test@test tables=(test1,test2) file=xiaohu.dmp log=xiaohu.log
2、導入恢複
imp test/test@test tables=(test1) ignore=y file=xiaohu.dmp 恢複時使用
3、備份表
create table test2 as select * from test1;
4、删除表
truncate table test1;
誤删表恢複
flash閃存恢複 flashback table 表名 to before drop;
1,打開flash存儲的權限
alter table tablename enable row movement;
2,把表還原到指定的時間點
flashback table tablename to timestamp
to_timestamp("2011-08-05 10:40:00","yyyy-mm-dd hh24:mi:ss");