论坛首页 综合技术论坛

ORACLE 闪回误更新数据的表

浏览 1282 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2015-04-09  

1、确保数据库启用了 闪回 功能:

db_recovery_file_dest                string      /opt/oracle/flash_recovery_area
db_recovery_file_dest_size           big integer 2G
db_flashback_retention_target        integer     1440

2、在表上启用 行迁移 :

alter table t_ucp_systemparam enable row movement;

3、闪回到某时间点:

flashback table t_ucp_systemparam to timestamp to_timestamp('2012-05-31 16:20:30', 'yyyy-mm-dd hh24:mi:ss');



论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics