oracle 中pga 与sga的大小怎样来设置? 正常情况下 pga 比sga小许多. 谢谢

解决方案 »

  1.   

    一般来说SGA可以调得大一些,PGA小一些,你看看它们的定义就大概明白了。如果用户不多,数据的读写不多的话,而你对数据库和跑在上面的应用程序不熟悉的话,用默认设置就行了,毕竟它的默认设置也不是随便给个值。
    System Global Area (SGA)
    • The SGA consists of several memory structures:
    – Shared pool
    – Database buffer cache
    – Redo log buffer
    – Other structures (e.g. lock and latch management,statistical data)
    • There are two optional memory structures that can be configured within the SGA:
    – Large pool
    – Java poolProgram Global Area (PGA)
    The PGA is memory reserved for each user process
    that connects to an Oracle database.
      

  2.   

    SGA + PGA + 后台进程占用的内存(约有50、60M) ~= 系统内物理内存 * 75