oracle表数据恢复

不小心把表my_table中的数据全部删除了,现在要恢复数据。

1.select timestamp_to_scn(to_timestamp('2012-12-05 16:10:00','YYYY-MM-DD HH24:MI:SS')) from dual;(结果为10588775770
2.create table my_table_bak as select * from my_table as of scn 10588775770

3.drop table my_table
4.rename my_table_bak to my_table

ok!

你可能感兴趣的:(oracle)