ITPub博客

首页 > 数据库 > Oracle > 11gR2中Flashback_transaction_query的undo_sql列为空的解决办法

11gR2中Flashback_transaction_query的undo_sql列为空的解决办法

原创 Oracle 作者:warehouse 时间:2012-11-10 20:21:27 0 删除 编辑

http://space.itpub.net/26839123/viewspace-720046 (转载)

搜了一下发现有人也遇到了这个问题。上面是连接,为了防止连接过去,我把内容复制了过来。

[@more@]

SQL> select table_name,operation,row_id,undo_sql
from flashback_transaction_query where table_name='TEST' ;

TABLE_NAME OPERATION ROW_ID UNDO_SQL
---------- ---------- ---------- --------------------------------------------------
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN

12 rows selected

goole后,原来Oracle11g禁用了supplemental logging

开启后恢复正常:

alter database add supplemental log data;

SQL> alter database add supplemental log data;

Database altered

SQL> select * from test;

ID XM
---------- ----------
1 李山
2 杨晓

SQL> delete test where id=1;

1 row deleted

SQL> select table_name,operation,row_id,undo_sql
from flashback_transaction_query where table_name='TEST';


TABLE_NAME OPERATION ROW_ID UNDO_SQL
---------- ---------- ---------- --------------------------------------------------
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST DELETE AAAR9YAAFA insert into "ADMIN"."TEST"("ID","XM") values ('1',
AAACDAAA '李山');

TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN
TEST UNKNOWN

13 rows selected

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/19602/viewspace-1059746/,如需转载,请注明出处,否则将追究法律责任。

下一篇: grouping sets的作用
请登录后发表评论 登录
全部评论

注册时间:2007-12-07

  • 博文量
    717
  • 访问量
    5089824