Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 
 

ORA-04031 ORA-19804 solution

Oracle Error Tips by Burleson Consulting

 

Oracle docs note this about ORA-04031:

ORA-04031: unable to allocate string bytes of shared memory
Cause: More shared memory is needed than was allocated in the shared pool.
Action: If the shared pool is out of memory, either use the dbms_shared_pool package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the INIT.ORA parameters

"shared_pool_reserved_size" and "shared_pool_size".

If the large pool is out of memory, increase the INIT.ORA parameter "large_pool_size".

There are many valuable resources regarding shared pool sizing, and ORA-04031 is very commonly encountered in situations involving the sizing of large pools. Below is an excerpt from an the article, Oracle Concepts - Shared Pool and Multi-Threaded Server (MTS) in which ORA-04031 is addressed and offered a resolution.

If ORA-04031 is thrown, consider using the following select:

select
   name,
   SUM(bytes)
from
   V$SGASTAT
where
   pool='LARGE POOL'
group by 
   ROLLUP(name);

Though the number of bytes may vary, ORA-04031 is commonly thrown in operations with configured large pools.

The exampled select above offers a summary of the number of bytes which will reveal the current pool size and you proximity to the maximum pool size which is specified within the LARGE_POOL_SIZE parameter.  You will find that when the LARGE_POOL is increased up to 100%, ORA-04031 will typically be eliminated.

To help you to understand more clearly the impact that large pool sizing can have in resolving ORA-04031, you may be interested in the statement below:

Sizing the large pool  can be complex. The large pool, if configured must be at least 600 kilobytes in size. Usually for most MTS applications 600k is enough. However, if PQO is also used in your Oracle8 environment then the size of the large pool will increase dramatically.

The V$SGASTAT dynamic performance view has a new column in Oracle8, POOL. The POOL column in the V$SGASTAT view is used to contain the pool area where that particular type of object is being stored. By issuing a summation select against the V$SGASTAT view a DBA can quickly determine the size of the large pool area currently being used.

For the full article regarding ORA-04031 and large pool sizing, check out this link.

 

 

 


 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright ? 1996 -  2014

All rights reserved by Burleson

Oracle ? is the registered trademark of Oracle Corporation.


 

��
 
 
 
 

 
 
 

 
Oracle performance tuning software 
 
oracle dba poster
Oracle Linux poster