Solved

ORA-04030 out of process memory

Posted on 2004-09-09
2
2,146 Views
Last Modified: 2008-01-09
Hi,
I am getting the error: ORA-04030 out of process memory when trying to allocate 12750 bytes (hash-join,subh,kllcqas,kllsltba)

when running a PLSQL script. any ideas? its on a fairly well specced machine - with 1GB ram allocated to the database instance, plus the machine has ample swap file (which i tried increasing and still got same error). Its oracle 9i r2.

the scritp is a fairly standard sort of thing - process a bunch of records from a table (theres about 500000+ records in the table) one by one.
0
Comment
Question by:mwoolger
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 12015188
Please check in metalink.oracle.com the following note:
Note:116076.1   Tackling ORA-4030 on WindowsNT
This should give you some input about how to solve this problem

another hint:
Do you got HASH_AREA_SIZE defined in initora ?
As default it's 2*SORT_AREA_SIZE.

If you do not have HASH_JOIN_ENABLED=FALSE, optimizer prefers it over NESTED LOOP or SORT-MERGE when joining tables. So hash join uses HASH_AREA_SIZE to store information from table 1 and if it's not enough, then Oracle uses TEMP-file. Then it's checking join condition values from table 2 against those stored values.

You may want to reduce/set the value of HASH_AREA_SIZE, so that your system is not out of memory.

Hope this helps
CHeers
0
 
LVL 7

Expert Comment

by:BobMc
ID: 12018541
What version of Oracle are you using?
I used to get a lot of these types of errors from 8.1.7.0 -> 8.1.7.2.5 due mainly to bugs.

I had to patch up to 8.1.7.4.x to solve them.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Creating and Managing Databases with phpMyAdmin in cPanel.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now