674.View the Exhibit to observe the error.
You receive this error regularly and have to shutdown the database instance to overcome the error.
Automatic Shared Memory Management is configured for the instance. What can you do to reduce the
chance of this error in the future?
A. Increase the value of SGA_MAX_SIZE
B. Enable automatic memory management
C. Set the PRE_PAGE_SGA parameter to true
D. Lock the System Global Area (SGA) in memory
Answer: B
答案解析:
使用自动内存管理来自动扩大SHARED_POOL_SIZE的尺寸。
- [oracle@rtest ~]$ oerr ora 4031
- 04031, 00000, "unable to allocate %s bytes of shared memory ("%s","%s","%s","%s")"
- // *Cause: More shared memory is needed than was allocated in the shared
- // pool or Streams 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
- // initialization parameters SHARED_POOL_RESERVED_SIZE and
- // SHARED_POOL_SIZE.
- // If the large pool is out of memory, increase the initialization
- // parameter LARGE_POOL_SIZE.
- // If the error is issued from an Oracle Streams or XStream process,
- // increase the initialization parameter STREAMS_POOL_SIZE or increase
- // the capture or apply parameter MAX_SGA_SIZE.
自动内存管理http://docs.oracle.com/cd/E11882_01/server.112/e25494/memory.htm#BGBJAHEJ