Add Supplemental Log 异常等待

今天在配置OGG得时候需要开启Add Supplemental Log以前配置STANDBY的时候也开启,当时没有问题,所以今天就大胆执行了,但是经历了一段时间的等待,然后查询发现,所以以后要注意一下,这个操作会等待TX所即便是S模式也会等待,也就是说不能有任何的DML或者DDL正在操作。

CAUSE

The statement ALTER DATABASE ADD SUPPLEMENTAL LOG DATA  is waiting for TX lock in shared mode when there is any uncommitted transaction. This is the expected behavior.

You can issue ALTER DATABASE ADD SUPPLEMENTAL LOG DATA when the database is open. However, OracleDatabase will invalidate all DML cursors in the cursor cache, which will have an effect on performance until the cache is repopulated. Besides,we also need to wait for the completion of all the in-flight transaction so that any redo generated after this DDL would have the right supplemental logging attributes. 


SOLUTION

You need to wait for the completion of all the in-flight transaction.

In those databases with high activity where there are always active transactions the supplemental logging can be enabled by bouncing the database and running the statement manually:

STARTUP MOUNT  
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;  
ALTER DATABASE OPEN;



MOS发现:

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

转载于:http://blog.itpub.net/7728585/viewspace-1101024/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值