oracle ogg同步到kafka不抓数据,重启ogg报错

Oracle GoldenGate (OGG) 在同步到Kafka时遇到ORA-04031错误,无法分配足够的共享内存。问题源于数据库的 Streams Pool 内存不足,由于ogg进程和其它数据库进程占满内存,导致数据抽取受阻。解决方案包括调整Streams Pool大小,观察大页内存使用,并限制ogg占用的SGA大小。
摘要由CSDN通过智能技术生成
 ERROR   OGG-02077  Extract encountered a read error in the asynchronous reader thread and is abending: Error code 4031, error message: ORA-04031: unable to allocate  bytes of shared memory ("","","","").
查看oracle alert日志
Errors in file /opt/app/oracle/diag/rdbms/bdfn/BDFN/trace/BDFN_ms01_4186.trc:
ORA-04031: unable to allocate 536 bytes of shared memory ("streams pool","unknown object","Logminer LCR c","krvxbmtx")
LOGMINER: session#=1 (OGG$CAP_KFK_E001), builder MS01 pid=58 OS id=4186 sid=705 stopped
Errors in file /opt/app/oracle/diag/rdbms/bdfn/BDFN/trace/BDFN_ms03_4194.trc:
ORA-04031: unable to allocate 664 bytes of shared memory ("streams pool","unknown object","Logminer LCR c","krvuinl")
Errors in file /opt/app/oracle/diag/rdbms/bdfn/BDFN/trace/BDFN_ms02_4190.trc:
这里注意ogg从oracle抽取的数据都会进入内存streams pool,然而此时BDFN的oracle数据库是默认streams pool 256M(Streams Pool --- 10g 以后才有,和expdp原理一样)
原因分析
BDFN的oracle数据库上面的ogg的replica进程和dg的mining数据库进程,撑满了streams pool内存,导致内存不够ogg出现无法抓数据,然后进程没有报错的“假活”状态,关闭重启就会报streams pool相关联的shared memory不能分配问题。
深度追究
这里数据库设置了大页管理,这个设置是不允许动态管理sga

SQL>  show parameter memory

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值