1.查看回收站中的表: select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin; 2.恢复表: flashback table (表名) to before drop 或flashback table (回收站中的表名) to before drop;…
保证两个数据表结构相同,如不相同只能同步相同字段; 只是思路,具体请根据需求修改. declare cursor csrn_mon is select * from table2; row_mon csrn_mon%rowtype; cursor csrn_loc is select * from table1; row_loc csrn_loc%rowtype; cursor csrn_del is select xh from table1 minus select xh from tabl…
用于直接drop掉表的情况(plsql developer直接删掉表就是drop操作) 查删除的表select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin;同时查出的有表的主键.索引等等,只需闪回表,其他的也随之恢复 闪回flashback table tablename to before drop;…