Solved

ORA-04030 out of process memory

Posted on 2004-09-09
2
2,143 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

708 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

13 Experts available now in Live!

Get 1:1 Help Now