1830250 Members
3105 Online
110000 Solutions
New Discussion

perl - Oracle error

 
bharat_7
Occasional Contributor

perl - Oracle error

Any idea how to avoid it ? The below cursor is tring to get as many records as it can.After processing few records,below was the error message I am getting

Unable to execute st_getEventSummaryId ( cursor )
ORA-04030: out of process memory when trying to allocate 16384 bytes (sort subheap,sort key) (DBD ERROR: OCIStmtExecute)
2 REPLIES 2
Steve Steel
Honored Contributor

Re: perl - Oracle error

Hi

oerr ORA 4030
04030, 00000, "out of process memory when trying to allocate %s bytes (%s,%s)"
// *Cause: Operating system process private memory has been exhausted

The forum thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=185982

Explains it

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Eric Antunes
Honored Contributor

Re: perl - Oracle error

Hi,

You have basically, two things to do in $ORACLE_HOME/dbs/init.ora:

1 - decrease sort_area_size (this value can be used for each session, so be carefull with high values!)
2 - Increase shared_pool_size

As an exemple, you can have something like this:

shared_pool_size = 128M
sort_area_size = 256000

Best Regards,

Eric Antunes
Each and every day is a good day to learn.