Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ora-04031 and x$ksmlru

RE: ora-04031 and x$ksmlru

From: Jamadagni, Rajendra <>
Date: Thu, 16 May 2002 10:40:07 -0800
Message-ID: <>


I don't know if it matters, but we faced the same error in 9x, and when we set the hash_area_size to 1M, it went away. The exact error message for us was

ORA-04031: unable to allocate 1126656 bytes of shared memory ("shared pool","unknown object","hash-join subh","kllcqc:kllcqslt")

The 3rd parameter is "hash-join subh", so I think it pertains to hash joins. For Barb, the third parameter is "cursor work he(ap)" so I wonder would it pertain to hash_area_size at all?


Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
Sent: Thursday, May 16, 2002 2:14 PM
To: Multiple recipients of list ORACLE-L

Thanks to the wonderful search capabilities that Steve Adams has installed on his website at, the following page has some more information about the X$KSMLRU fixed-table

I did an "advanced search" on MetaLink for "kllcqc", making sure to check the checkbox for "Bug Database" -- quite a few bugs appeared (for what they are worth). One of them (#2324210) is against on Solaris, but the error message looks remarkably like yours even so. Like you, they are using MTS. They indicate that the settings for SORT_AREA_SIZE and HASH_AREA_SIZE are too large for the Shared Pool, hence the ORA-04031. The solution is to reduce SORT_AREA_SIZE and HASH_AREA_SIZE...

What are the settings for SORT_AREA_SIZE and HASH_AREA_SIZE here? Is it possible that the users may be using ALTER SESSION SET to set their own "custom" values for these parameters? I think this statement should appear in the V$SQL or V$SQLAREA if they are using it. This would possibly explain the sudden (and violent) onset of these symptoms...

Please see the official ORACLE-L FAQ:
Author: Jamadagni, Rajendra

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
To REMOVE yourself from this mailing list, send an E-Mail message
to: (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Thu May 16 2002 - 13:40:07 CDT

Original text of this message