Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Determining library_cache usage

Determining library_cache usage

From: Bob Lofstrand <blofstrand_at_csedge.com>
Date: Wed, 25 Feb 2004 17:39:39 -0600
Message-ID: <0C3690346404A94CBF4DDDD4724FC61409BB6192@csmail.corpsys.csedge.com>

We get this error:  

ORA-04031: unable o allocate 40048 bytes of shared memory ("shared pool","SELECT : SASOFPD.PD_DT, : ...","sqa area","text : kpp_extend") :-4031  

when trying to run a monstrous 26.1kb query. Yes that is the amount of text. The one query involves 9 case statements, some nested in others and several involving more than 50 when clauses. It also has 8 sum(), over 200 to_date() and a group by clause... Don't ask.  

My guess is that we are running out of library_cache when this beast is parsed out. Sound reasonable?  

Also, does anyone know of a way to determine how much library_cache/shared_pool a session is using.


Bob Lofstrand                   mailto:blofstrand_at_csedge.com 
Oracle Database Administrator   www.csedge.com 
Corporate Systems Inc.          806-337-3906 
"There is no silver bullet." -Frederick P. Brooks. The Mythical Man-Month.  

The information contained in this communication, including attachments, is strictly confidential and for the intended use of the addressee only; it may also contain proprietary, price sensitive, or legally privileged information. Notice is hereby given that any disclosure, distribution, dissemination, use, or copying of the information by anyone other than the intended recipient is strictly prohibited and may be illegal. If you have received this communication in error, please notify the sender immediately by reply e-mail, delete this communication, and destroy all copies.

Corporate Systems, Inc. has taken reasonable precautions to ensure that any attachment to this e-mail has been swept for viruses. We specifically disclaim all liability and will accept no responsibility for damage sustained as a result of software viruses and advise you to carry out your own virus checks before opening any attachment.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Wed Feb 25 2004 - 17:35:58 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US