.ora-code.com

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
ORA-06508 and the Shared Pool sizing

ORA-06508 and the Shared Pool sizing

2005-06-29       - By Robyn
Reply:     1     2     3     4     5     6     7  

Ah yes - the number of the counting :)

On 6/29/05, Paul Drake <bdbafh@(protected)> wrote:
>
> On 6/29/05, Robyn <robyn.sands@(protected)> wrote:
> > Hi Mark,
> >
> > Yes this does help. The shared pool appeared to be sized appropriately
> for
> > normal processing, and the second failure came just 20 minutes after the
> > shared pool increase with restart, so further increases in the shared
> pool
> > seemed like the wrong answer.
> >
> > My first exposure to this code was yesterday afternoon, but from what
> I've
> > seen so far, there are some larger packages with multiple dependancies.
> > I'll try the recompile with a shared pool flush when we get to test
> later
> > today, and check into the pinning option as well.
> >
> > thanks again ... Robyn
>
> Robyn,
>
> Depending upon the type of crap ... you might have to flush 3 times in a
> row.
> I'm not kidding.
>
> Paul
>
>
> > On 6/29/05, Powell, Mark D <mark.powell@(protected)> wrote:
> > >
> > > The ORA-06508 (See ORA-06508.ora-code.com) error means Oracle could not find enough contiguous
> memory
> > in the shared pool to load the referenced package into. The shared pool
> > becomes fragmented over time and even though Oracle can load packages
> into
> > multiple non-contiguous chunks of memory the rdbms still must find large
> > contiguous space for certain structures required by the code. You can
> > generally avoid this problem by doing the following:
> > >
> > > 1 - in your production environment do not make object changes where
> > dependencies exist from large stored procedures and/or packages except
> > during a maintenance window
> > >
> > > 2 - flush the pool and immediately recompile all invalidated code
> after
> > making a change
> > >
> > > 3 - limit the size of any package or procedure using two or three
> smaller
> > routines if necessary
> > >
> > > 4 - use dbms_keep to pin all large packages immediately after database
> > startup
> > >
> > > HTH -- Mark D Powell --
> > >
> > >
> > >
> > > __ ____ ____ ____ ____ ____ ____
> > From: oracle-l-bounce@(protected) [mailto:
> oracle-l-bounce@(protected)]
> > On Behalf Of Robyn
> > > Sent: Wednesday, June 29, 2005 12:08 PM
> > > To: oracle-l@(protected)
> > > Subject: ORA-06508 (See ORA-06508.ora-code.com) and the Shared Pool sizing
> > >
> > >
> > >
> > > Hello everyone,
> > >
> > > We've run into a new issue and I'm curious as to how 'normal' this
> might
> > be. We have a new/upgraded application in test. User testing was
> scheduled
> > to start yesterday but one trigger was failing. This trigger calls a
> > procedure owned by another user and had worked in the past. It is an
> 'after
> > update' trigger and the procedure populates a status table, but resulted
> in
> > ORA-06508 (See ORA-06508.ora-code.com): PL/SQL: could not find program unit being called.
> > >
> > > The developers worked through all the stuff they knew to check
> > (permissions, full identificiation of the objects, etc) to no avail. The
> > procedure and trigger appeared to be valid, but compiling the trigger
> caused
> > the procedure to go invalid. Procedure could be recompiled but the
> trigger
> > still didn't work.
> > >
> > > I searched at Metalink and found several documents referrencing this
> error
> > for various Oracle applications, while the docs specific to the database
> all
> > mentioned the same stuff that had already been tried.
> > >
> > > The Oracle applications docs stated that the shared pool was too small
> and
> > needed to be increased. Seemed odd to me since the error mentioned not
> > finding a program unit, but these were the only docs that referenced
> > receiving just this error. In every other case, there was a related
> error
> > message was mentioned.
> > >
> > > So, I shutdown the database, increase the shared pool by 128M (or 33%)
> and
> > the procedure worked. However a later attempt to recompile again broke
> the
> > procedure. This time the database was restarted without an increase in
> the
> > shared pool and again, the procedure worked.
> > >
> > > We're going to test a few things later when the users get off the
> system,
> > but this seems really odd. The database is on HP-UX not WinDoze, so I
> > should not have to play the restart game to fix a problem. Has anyone
> seem
> > a similar problem? I am planning to open a TAR if it repeats but I can't
> > test again until tonight.
> > >
> > > TIA ... Robyn
> > >
> >
> >
>
>
> --
> #/etc/init.d/init.cssd stop
> # f=ma, divide by 1, convert to moles.
>

Ah yes - the number of the counting&nbsp;&nbsp; :)<br><br><div><span class=
"gmail_quote">On 6/29/05, <b class="gmail_sendername">Paul Drake</b> &lt;<a href
="mailto:bdbafh@(protected)">bdbafh@(protected)</a>&gt; wrote:</span><blockquote
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin:
0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/29/05, Robyn &lt;<a href="mailto:robyn.sands@(protected)">robyn.sands@(protected)
.com</a>&gt; wrote:<br>&gt; Hi Mark,<br>&gt;<br>&gt;&nbsp;&nbsp;Yes this does
help.&nbsp;&nbsp;The shared pool appeared to be sized appropriately for<br>&gt;
normal processing, and the second failure came just 20 minutes after the
<br>&gt; shared pool increase with restart, so further increases in the shared
pool<br>&gt; seemed like the wrong answer.<br>&gt;<br>&gt;&nbsp;&nbsp;My first
exposure to this code was yesterday afternoon, but from what I've<br>&gt; seen
so far, there are some&nbsp;&nbsp;larger packages with multiple dependancies.
<br>&gt; I'll try the recompile with a shared pool flush when we get to test
later<br>&gt; today, and check into the pinning option as well.<br>&gt;<br>&gt;
&nbsp;&nbsp;thanks again ... Robyn<br><br>Robyn,<br><br>Depending upon the type
of crap ... you might have to flush 3 times in a row.
<br>I'm not kidding.<br><br>Paul<br><br><br>&gt; On 6/29/05, Powell, Mark D &lt
;<a href="mailto:mark.powell@(protected)">mark.powell@(protected)</a>&gt; wrote:<br>&gt;
&gt;<br>&gt; &gt; The ORA-06508 (See ORA-06508.ora-code.com) error means Oracle could not find enough
contiguous memory
<br>&gt; in the shared pool to load the referenced package into.&nbsp;&nbsp;The
shared pool<br>&gt; becomes fragmented over time and even though Oracle can
load packages into<br>&gt; multiple non-contiguous chunks of memory the rdbms
still must find large
<br>&gt; contiguous space for certain structures required by the code.&nbsp;
&nbsp;You can<br>&gt; generally avoid this problem by doing the following:<br>
&gt; &gt;<br>&gt; &gt; 1 - in your production environment do not make object
changes where
<br>&gt; dependencies exist from large stored procedures and/or packages except
<br>&gt; during a maintenance window<br>&gt; &gt;<br>&gt; &gt; 2 - flush the
pool and immediately recompile all invalidated code after<br>&gt; making a
change
<br>&gt; &gt;<br>&gt; &gt; 3 - limit the size of any package or procedure using
two or three smaller<br>&gt; routines if necessary<br>&gt; &gt;<br>&gt; &gt; 4
- use dbms_keep to pin all large packages immediately after database
<br>&gt; startup<br>&gt; &gt;<br>&gt; &gt; HTH -- Mark D Powell --<br>&gt; &gt;
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; __ ____ ____ ____ ____ ____ ____<br>&gt;
&nbsp;&nbsp;From: <a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce
@(protected)
</a> [mailto:<a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce
@(protected)</a>]<br>&gt; On Behalf Of Robyn<br>&gt; &gt; Sent: Wednesday,
June 29, 2005 12:08 PM<br>&gt; &gt; To: <a href="mailto:oracle-l@(protected)"
>
oracle-l@(protected)</a><br>&gt; &gt; Subject: ORA-06508 (See ORA-06508.ora-code.com) and the Shared Pool
sizing<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hello everyone,<br>
&gt; &gt;<br>&gt; &gt; We've run into a new issue and I'm curious as to how
'normal' this might
<br>&gt; be.&nbsp;&nbsp;We have a new/upgraded application in test. User
testing was scheduled<br>&gt; to start yesterday but one trigger was failing.
&nbsp;&nbsp;This trigger calls a<br>&gt; procedure owned by another user and had
worked in the past.&nbsp;&nbsp;It is an 'after
<br>&gt; update' trigger and the procedure populates a status table,&nbsp;&nbsp
;but resulted in<br>&gt; ORA-06508 (See ORA-06508.ora-code.com): PL/SQL: could not find program unit being
called.<br>&gt; &gt;<br>&gt; &gt; The developers worked through all the stuff
they knew to check
<br>&gt; (permissions, full identificiation of the objects, etc) to no avail.
&nbsp;&nbsp;The<br>&gt; procedure and trigger appeared to be valid, but
compiling the trigger caused<br>&gt; the procedure to go invalid.&nbsp;&nbsp
;Procedure could be recompiled but the trigger
<br>&gt; still didn't work.<br>&gt; &gt;<br>&gt; &gt; I searched at Metalink
and found several documents referrencing this error<br>&gt; for various Oracle
applications, while the docs specific to the database all<br>&gt; mentioned the
same stuff that had already been tried.
<br>&gt; &gt;<br>&gt; &gt; The Oracle applications docs stated that the shared
pool was too small and<br>&gt; needed to be increased.&nbsp;&nbsp;Seemed odd to
me since the error mentioned not<br>&gt; finding a program unit, but these were
the only docs that referenced
<br>&gt; receiving just this error.&nbsp;&nbsp;In every other case, there was a
related error<br>&gt; message was mentioned.<br>&gt; &gt;<br>&gt; &gt; So, I
shutdown the database, increase the shared pool by 128M (or 33%) and<br>&gt;
the procedure worked.&nbsp;&nbsp;However a later attempt to recompile again
broke the
<br>&gt; procedure.&nbsp;&nbsp;This time the database was restarted without an
increase in the<br>&gt; shared pool and again, the procedure worked.<br>&gt;
&gt;<br>&gt; &gt; We're going to test a few things later when the users get off
the system,
<br>&gt; but this seems really odd.&nbsp;&nbsp;The database is on HP-UX not
WinDoze, so I<br>&gt; should not have to play the restart game to fix a problem
.&nbsp;&nbsp;Has anyone seem<br>&gt; a similar problem?&nbsp;&nbsp;I am planning
to open a TAR if it repeats but I can't
<br>&gt; test again until tonight.<br>&gt; &gt;<br>&gt; &gt; TIA ... Robyn<br>
&gt; &gt;<br>&gt;<br>&gt;<br><br><br>--<br>#/etc/init.d/init.cssd stop<br># f=ma
, divide by 1, convert to moles.<br></blockquote></div><br>