备份导入与导出
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");