Use of FLASHBACK in Oracle

余生颓废 提交于 2019-11-28 02:22:50
Lalit Kumar B

You need to have Flashback Data Archive enabled. Then the truncate could be reversed with a statement like this:

insert into <truncated_table> 
   select * from <truncated_table> as of timestamp <some time>;

Thanks to @Jon Heller for adding this useful information about the new feature:

This requires version 11.2 or higher, which introduced support for DDL statements such as truncate.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!