ORA-04030: out of process memory when trying to allocate 152 bytes (Logminer LCR c,krvtadc)

Posted kerrycode

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORA-04030: out of process memory when trying to allocate 152 bytes (Logminer LCR c,krvtadc)相关的知识,希望对你有一定的参考价值。

  今天使用LogMiner找回误更新的数据时,查询v$logmnr_contents时,遇到了ORA-04030: out of process memory when trying to allocate 152 bytes (Logminer LCR c,krvtadc)错误。查了一下My Oracle Support,发现出现ORA-04030错误的原因,特摘录在此。

 

 

   如果指定了COMMITTED_DATA_ONLY选项而且发出了查询,则LogMiner会在内存中的单个事务中逐步重做所有重做记录, 直到 logminer 找到该事务的提交记录。 因此,可能会耗尽内存,在这种情况下将出现Out of Memory错误。具体参考下面资料:

 

 

ORA-04030: out of process memory when trying to allocate 152 bytes (Logminer LCR c,krvtadc)

 

 

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.2.0.4 to 12.1.0.1 [Release 10.2 to 12.1]
Information in this document applies to any platform.
This problem can occur on any platform.



SYMPTOMS

Select against logminer fails with ORA-4030 (Logminer LCR c,krvtadc).

Following query failed:
SELECT username, TO_CHAR(timestamp,‘HH24:MI:SS‘), substr(sql_redo,1,110)
FROM v$logmnr_contents
WHERE seg_owner=‘<owner name>‘
AND seg_name IN (‘<table name>‘);

FROM v$logmnr_contents where
ERROR at line 2:
ORA-4030: out of process memory when trying to allocate 56 bytes (Logminer LCR c,krvtadc)

CAUSE

According to the documentation in Oracle? Database Utilities:
If the COMMITTED_DATA_ONLY option is specified and you issue a query, LogMiner stages all redo records within a single transaction in memory until LogMiner finds the commit record for that transaction. Therefore, it is possible to exhaust memory, in which case an "Out of Memory" error will be returned.

EXECUTE DBMS_LOGMNR.ADD_LOGFILE (logfilename => ‘<filename>‘,
options => DBMS_LOGMNR.NEW);
EXECUTE sys.DBMS_LOGMNR.START_LOGMNR(DICTFILENAME => ‘<dictionary file>‘,
options =>dbms_logmnr.committed_data_only);

SOLUTION

If this occurs, you must restart LogMiner without the COMMITTED_DATA_ONLY option specified and reissue the query.

REFERENCES

                                                  

参考资料:

   Select Against Logminer Fails With ORA-4030 (Logminer LCR c,krvtadc) (文档 ID 807080.1)




















以上是关于ORA-04030: out of process memory when trying to allocate 152 bytes (Logminer LCR c,krvtadc)的主要内容,如果未能解决你的问题,请参考以下文章

执行立即“查询”ORA-04030:尝试分配 56 字节时进程内存不足(调用堆,qerrmbv[]:qerrmObnd)

Oracle数据库问题已解决:ORA-04030 私有内存超出

Oracle数据库问题已解决:ORA-04030 私有内存超出

Out of memory: Kill process 解决

找不到IIS Out-Of-Process Pooled

python out_of_process.py