oracle更新脚本把原数据冲了,并且没有备份,急煞我也
解决办法:
oracle数据库有闪回功能:
select * from tab 可以查出已被删除的表show recyclebin 显示垃圾桶FLASHBACK TABLE TABLENAME TO BEFORE DROP 恢复删除的表PURGE TABLE TABLENAME; 从垃圾桶清除指定的表,此命令将从回收站中删除表及所有相关对象,如索引、约束等。PURGE TABLESPACE USERS; 清除表空间 USERS 的回收站中的所有对象。FLASHBACK TABLE "BIN$04LhcpnoanfgMAAAAAANPw==$0" TO BEFORE DROP RENAME TO TEST2;改名闪回闪回undo表空间有数据的闪回操作。针对delete和update的1查出scnselect timestamp_to_scn(to_date('2009-04-27 17:54:02','yyyy-mm-dd hh24:mi:ss')) from dual;2利用scn查询闪回数据select * from objectTable as of scn timestamp_to_scn(to_date('2009-04-27 17:54:02','yyyy-mm-dd hh24:mi:ss'));3闪回数据alter table objectTable enable row movement;flashback table objectTable to scn timestamp_to_scn (to_date('2009-04-27 17:54:02','yyyy-mm-dd hh24:mi:ss'));