Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: ORA-4031 error help.
Make sure you are pinning your large and often executed packages,
triggers, procedures, etc in the shared pool (should be done at
startup). That will help eliminate fragmentation.
select 'execute dbms_shared_pool.keep('||chr(39)||
owner||'.'||name||chr(39)||','||chr(39)||
decode(type,'TRIGGER','R','SEQUENCE','Q','P')||chr(39)||');'||chr(10)
from v$db_object_cache
where type in ('PACKAGE','PROCEDURE','TRIGGER','FUNCTION')
and owner='SYS'
and kept='NO'
order by sharable_mem desc
/
This can be done for your application schema as well.
-----Original Message-----
[mailto:Avnish.Rastogi_at_providence.org]
Sent: Wednesday, October 29, 2003 11:39 AM
To: Multiple recipients of list ORACLE-L
Hello List, Need some help in resolving ORA-4031 error message. We are using Lawson and for last few days users are getting ORA-4031 error 2-3 times a day in LAWSON log files but there is no error message in alert log file or any trace file. Both shared pool and large pool is set to 1GB. Below is the current init.ora file. We are on Oracle 9202 and AIX 5.1, using MTS.
Thanks
# Miscellaneous
COMPATIBLE=9.2.0
DB_NAME=LAWSON
DB_FILES=1500
GLOBAL_NAMES=TRUE
DB_BLOCK_SIZE=8192 DB_CACHE_SIZE=1792M DB_KEEP_CACHE_SIZE=16M
BACKGROUND_DUMP_DEST=/appl/lawdb/oracle/admin/LAWSON/bdump CORE_DUMP_DEST=/appl/lawdb/oracle/admin/LAWSON/cdump USER_DUMP_DEST=/appl/lawdb/oracle/admin/LAWSON/udumpTIMED_STATISTICS=TRUE
"/appl/lawdb/oracle/data/db02/LAWSON/contrl_LAWSON_02.ctl",
"/appl/lawdb/oracle/data/db03/LAWSON/contrl_LAWSON_03.ctl",
"/appl/lawdb/oracle/data/db04/LAWSON/contrl_LAWSON_04.ctl",
"/appl/lawdb/oracle/data/db05/LAWSON/contrl_LAWSON_05.ctl")
# Archive LOG_ARCHIVE_DEST=/appl/lawdb/oracle/archive_logs/LAWSON/
LOG_ARCHIVE_DUPLEX_DEST=/appl/lawdb/oracle/archive_logs_2/LAWSON/ LOG_ARCHIVE_FORMAT="ARC_LAWSON_%S.%T" LOG_ARCHIVE_START=TRUE
FAST_START_MTTR_TARGET=1200 SORT_AREA_SIZE=0 HASH_AREA_SIZE=0 UNDO_MANAGEMENT=AUTO UNDO_TABLESPACE=undo UNDO_RETENTION = 10800
PARALLEL_THREADS_PER_CPU = 6 PARALLEL_MAX_SERVERS = 6 PARALLEL_MIN_SERVERS = 1
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: <Avnish.Rastogi_at_providence.org INET: Avnish.Rastogi_at_providence.org Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tim Fleury INET: Tim_Fleury_at_perlegen.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Oct 29 2003 - 14:59:25 CST