Solved

ORA-04030 out of process memory

Posted on 2004-09-09
2
2,164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

627 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