Skip to Main Content
  • Questions
  • ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)



Connor and Chris don't just spend all day on AskTOM. You can also catch regular content via Connor's blog and Chris's blog. Or if video is more your thing, check out Connor's latest video and Chris's latest video from their Youtube channels. And of course, keep up to date with AskTOM via the official twitter account.

Question and Answer

Connor McDonald

Thanks for the question, Md.Rahim.

Asked: January 11, 2020 - 11:33 am UTC

Answered by: Connor McDonald - Last updated: January 13, 2020 - 4:10 am UTC

Category: Database Administration - Version: 11.2

Viewed 100+ times

Whilst you are here, check out some content from the AskTom team: What Is SQL Injection and How to Stop It

You Asked

Dear Sir ,

Few Day i face Production Database Out of process memory Oracle Database Release

My Problem is :

ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)

How can i solve this problem , Please Help

and we said...

There are various potential causes - some due to bugs, some due to genuine memory limits.

So first, capture some detailed diagnostics about the error

1) alter system set events '4030 trace name heapdump level 536870917;name errorstack level 3';
2) wait for the error to occur at least once
3) alter system set events '4030 trace name context off; name context off';

This will generate a trace file with extensive debugging information - you can then log a support call with Oracle to work through the issue.

And is a very old, and very unpatched version.... You (a) really should be on and (b) be looking at upgrading to a supported version!

More to Explore


Need more information on Administration? Check out the Administrators guide for the Oracle Database