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-04031

ora-04031

2004-07-14       - By Spears, Brian
Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  

Ok seems attachements don 't make it..

Put this in a .sql file and fire it up. Haven 't checked if it need 9i
upgrading but I think it should be
Be of value.

rem pins.sql - Lists all packages and in-memory objects.

Brian Spears ... See below

spool c:\dba\lst\pins.txt

column executions format 999,999,999;
column Mem_used format 999,999,999;
col name format a30 wrap
col KEPT_YN    format a12 wrap;

PROMPT =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
PROMPT Column Numbers to Sort on: Most common is 4 - Executions
PROMPT
PROMPT . 2    3 4 5 6
PROMPT . TYPE   Owner Executions Mem_used Kept? =20
PROMPT =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

select substr(owner,1,10) Owner
,substr(type,1,12) Type
,substr(name,1,60) Name
,executions
,sharable_mem Mem_used
,substr( ' '||kept|| ' ',1,12) KEPT_YN
from V$DB_OBJECT_CACHE
where type in ( 'TRIGGER '
, 'PROCEDURE '
, 'PACKAGE BODY '
, 'PACKAGE '
    , 'SEQUENCE ')
order by &sort_by_column
/
PROMPT =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
PROMPT Useful sorts: Executions <--- Best in memory
PROMPT         Mem_used <--- Large should be
PROMPT         Kept? <--- Missing any ?
PROMPT =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D

spool off
-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of Spears, Brian
Sent: Wednesday, July 14, 2004 12:01 PM
To: oracle-l@(protected)
Subject: RE: ORA-04031 (See ORA-04031.ora-code.com)=20


Here is my handy dandy script to help you quickly see which packages you
could pin... Cursor_sharing=3Dsimilar...often vastly reduces the amount =
of
memory used as well.


Brian Spears

-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of Powell, Mark D
Sent: Wednesday, July 14, 2004 11:18 AM
To: 'oracle-l@(protected) '
Subject: RE: ORA-04031 (See ORA-04031.ora-code.com)=20


> > It is currently set at 4400 - how much lower would I need to go????
> > < <