首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle中回复表数据及相关设置

2012-07-22 
oracle中恢复表数据及相关设置??select * from recyclebinfalshback table tb to drop before tb代表要恢

oracle中恢复表数据及相关设置

?

?select * from recyclebin

falshback table tb to drop before; tb代表要恢复的表名

?

对误删的表记录,只要没有truncate语句,就可以根据事务的提交时间进行选择恢复,一般步骤有:

select * from?flashback_transaction_query where table_name='TEST';

一般先根据时间查询:select * from tb as of timestamp to_timestamp('2011-12-28','yyyy-mm-dd');

?

若有数据,恢复极为简单了,语句为flashback table tb to timestamp to_timestamp(time,'yyyy-mm-dd hh24:mi:ss');

?

?

快照过旧:

undo信息已经被覆盖了.所以提示快照过旧.
解决方法:(只对以后的数据有效果)
1.把undo 空间设置大一点.
2.把undo_retention_police 设置为gurantee
sql>alter tablespace undosbs1 retention guarantee;(强制保证undo_retention参数保证的时间内数据不被覆盖)
缺省情况下 undo表空间是处于 noguarantee状态。

?

?

热点排行