.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
X$ksmsp (OSEE 10.2.0.2 on Solaris 8)

X$ksmsp (OSEE 10.2.0.2 on Solaris 8)

2006-06-28       - By Schultz, Charles
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

I looked at v$sgastat, but it is was too general. We have fragmentation
issues (in the shared pool, I believe) and Oracle is saying that we have
a potential memory leak (still in the diagnosis phase). Hence, I think
the PGA and Buffer pool views are out, although I could be wrong. The
ora-4031 (See ora-4031.ora-code.com) trace files are reporting errors on the following objects:
kggfaAllocSeg
kgghtInit
kgghteInit
qcdlgcd
qcopCreateCol
qcopCreateLog
qcuAllocIdn
qkshtQBAtomicAlloc
qkxrMemAlloc

Of course, one of the most confusing problems with this fragmentation
issue is whether to decrease or increase the shared pool. Increasing the
shared pool has the temporary affect of making the ora-4031 (See ora-4031.ora-code.com) errors
disappear, but that seems to be a bad long-term solution, as decreasing
the shared pool might actually be the better way to go. My one caveat
with this approach (resizing the shared pool) ignores the root cause of
the problem - if the fragmentation is avoidable, why not avoid it? I am
still trying to learn more about this concept - even though I have read
a lot (Tom Kyte, Jonathan Lewis, etc), the material is sinking in
slowly. From talks I have had offline, this might be a case of
contention on a shared pool heap latch - a requestor wants a certain
size chunk and the latch for the size chunk is busy. My memory of the
details might be fuzzy.


I ran across note 367392.1, but all of our traces are from foreground
processes, not background.

Following note 146599.1, I peeked at V$SHARED_POOL_RESERVED but did not
learn much (one size that has failed a number of times, 4200). Also,
this note points to the x$ tables, hence my original question about
x$ksmsp. If the performance is so bad and there are better alternatives,
I am surprised that they are not listed here.

And finally note 62143.1. I am still re-reading this one, as I still
have much to learn in "tuning the shared pool". This is a good appendix
for terms and offers various scripts, but none that I found to be very
relevant.

Other references:
"Understanding Shared Pool Memory Structures" Russell Green, Sep 2005
Oracle white paper
Scripts from Alejandro Vargas' blog

-- --Original Message-- --
From: Mladen Gogala [mailto:gogala@(protected)]
Sent: Tuesday, June 27, 2006 7:47 PM
To: Schultz, Charles
Cc: duncan.lawie@(protected); Hallas, John, Tech Dev;
oracle-l@(protected)
Subject: Re: X$ksmsp (OSEE 10.2.0.2 on Solaris 8)


On 06/27/2006 10:30:11 AM, Schultz, Charles wrote:
> What is the alternative to track down memory issues? Sure, one could
> use DMA (Direct Memory Access), but I for one am not there yet. If
> there is a better way to diagnose and resolve memory issues, I am all
> ears (or rather, eyes *grin*).
>

Track what memory issues? Insufficient shared pool? Try with V$SGASTAT.
PGA? Try with V$PROCESS_MEMORY. Buffer cache? Try with
V$BUFFER_POOL_STATISTICS.
What do you have in mind when you say "memory issues"? All those tables
are well documented and stable.

--
Mladen Gogala
http://www.mgogala.com

--
http://www.freelists.org/webpage/oracle-l