Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Determining library_cache usage

Determining library_cache usage

2004-02-25       - By Bob Lofstrand



We get this error:

ORA-04031 (See ORA-04031.ora-code.com): 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@(protected)
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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML > <HEAD >
<META HTTP-EQUIV= "Content-Type " CONTENT= "text/html; charset=iso-8859-1 " >


<META content= "MSHTML 5.50.4930.1700 " name=GENERATOR > </HEAD >
<BODY >
<DIV > <FONT face=Arial size=2 > <SPAN class=280161422-25022004 >We get this
error: </SPAN > </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN
class=280161422-25022004 > </SPAN > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN class=280161422-25022004 >ORA-04031 (See ORA-04031.ora-code.com): unable o
allocate 40048 bytes of shared memory ( "shared <BR >pool ", "SELECT :
SASOFPD.PD_DT, : ... ", "sqa area ", "text :
kpp_extend ") <BR >:-4031 </SPAN > </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN
class=280161422-25022004 > </SPAN > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN class=280161422-25022004 >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. </SPAN > </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN
class=280161422-25022004 > </SPAN > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN class=280161422-25022004 >My guess is that we
are running out of library_cache when this beast is parsed out. Sound
reasonable? </SPAN > </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN
class=280161422-25022004 > </SPAN > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 > <SPAN class=280161422-25022004 >Also, does anyone
know of a way to determine how much library_cache/shared_pool a session is
using. </SPAN > </FONT > </DIV >
<DIV class=Section1 >
<P > <SPAN
style= "FONT-SIZE: 10pt; FONT-FAMILY: Arial " >-- ---- ---- ---- ---- ---- ---- ----- </SPAN >
<BR > <SPAN style= "FONT-SIZE: 10pt; FONT-FAMILY: Arial " >Bob Lofstrand  
       
        mailto: <U > <SPAN
style= "COLOR: blue " >blofstrand@(protected) </SPAN > </U > </SPAN > <BR > <SPAN
style= "FONT-SIZE: 10pt; FONT-FAMILY: Arial " >Oracle Database
Administrator   </SPAN > <U > </U > <U > <SPAN
style= "FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial " >www.csedge.com </SPAN > </U >
<BR > <SPAN style= "FONT-SIZE: 10pt; FONT-FAMILY: Arial " >Corporate Systems
Inc.          806-337-3906 </SPAN >
<BR > <SPAN style= "FONT-SIZE: 10pt; FONT-FAMILY: Arial " > <FONT
face= "Times New Roman " size=3 > "There is no silver bullet. " 
</FONT > </SPAN > <SPAN style= "FONT-SIZE: 10pt; FONT-FAMILY: Arial " > <FONT
face= "Times New Roman " size=3 >-Frederick P. Brooks. The Mythical
Man-Month. </FONT > </SPAN > </P > </DIV >
<DIV >  </DIV > </BODY > </HTML >

<table > <tr > <td bgcolor=#ffffff > <font color=#000000 > <pre >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.
</pre > </font > </td > </tr > </table >