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

此题已经开启了自动 SGA 管理,但是出现了 ORA-4031 说明 SGA 还是不足,总体来说需要增大 SGA:
根据具体出现的情况,如果是 SHARED_POOL 不足,可以使用 DBMS_SHARED_POOL pin 住大的对象,或增大 SHARED_POOL_RESERVED_SIZE 和 SHARED_POOL_SIZE 的值。
如果是大池不足,可以增加 LARGE_POOL_SIZE。
如果是 streams 内存步子,可以增加 STREAMS_POOL_SIZE 的值,或者捕获进程的参数 MAX_SGA_SIZE的值。
A.错误,增加 SGA_MAX_SIZE 必须在使用 AMM 自动内存管理后才有效
B.正确,使用 AMM 自动管理 SGA 和 PGA 的大小,可以动态增加 SGA
C. PRE_PAGE_SGA 为 true,在启动的时候将全部 SGA 放置到内存中。这个参数并不会增加 SGA 的大小,此处错误
D 将 SGA 锁到内存中,也不会增大 SGA,D 错。
C.D 选项一起使用,可以将 SGA 锁入内存,可以减少内存页面交换的开销,当然需要操作系统层面的支持。LOCK_SGA 来控制是否将 SGA 锁入内存。


原文地址:https://www.cnblogs.com/Babylon/p/7844217.html