Oracle 메모리 파라미터 변조 기술 상세 설명


[size=large]
  
      ,                    oracle   ,            ,    .

  

         ,    oracle            ,            , oracle           ,          ,          .

  

    

oracle  =    +    

oracle       ,    oracle              ,                   。

    

oracle  =     +    

         :

DBWR:      .

LGWR:      .

ARCH:    .

CKPT:     (    ;        ,         ;           ;    ,DBA    ,   offline)

LCKn(0-9):    .

Dnnn:    .

    (       )

    =SGA(     )+PGA(     )

SGA:              ,            。   Oracle           ,   Oracle                    ,                

 

        SGA,   SGA  OS       1/2——1/3

  :SGA+PGA+OS    <   RAM

SGA=((db_block_buffers*blocksize)+(shared_pool_size+large_pool_size+java_pool_size+log_buffers)+1MB

1、SGA     .(       )

A、     :(db_block_buffers)              。

  : db_block_buffers*db_block_size

        Oracle9i        :Db_cache_size

          :SGA       ,       40%。

B、   :(shared_pool_size):    ,sql  ,pl/sql    .      。

  :SGA       ,       10%

C、     :(log_buffer)          .

          :128K ---- 1M  ,     

D、JAVA (Java_pool_size)    JAVA     .

          :    java,       20M, 30M     
E、  (Large_pool_size)      MTS,              RMAN。

          :    MTS,5---- 10M  ,     

SGA=. db_block_buffers*db_block_size+ shared_pool_size+ log_buffer+Java_pool+size+large_pool_size

         :       55-58%    .

2、PGA     

PGA:                        ,        SGA   PGA            ,PGA                .

A、Sort_area_size         

B、Hash_area_size      ,    

       MTS     PGA,   SGA,    session     ,          OS + SGA,         
  :OS    +SGA+       *(sort_area_size+hash_ara_size+2M) < 0.7*   

    

 :      

 :              

 :               

 :       

 :   OLTP    OLAP  

        ,db_block_buffer         ,shared_pool_size   ,log_buffer      K 1M     

    A、  512M RAM   CPU  db_block_size 8192 bytes
 SGA=0.55*512M=280M  

  shared_pool_size = 50M, db_block_buffer* db_block_size = 200M
  : shared_pool_size =52428800 #50M

db_block_buffer=25600     #200M

log_buffer = 131072        # 128k (128K*CPU  )

            large_pool_size=7864320     #7.5M

            java_pool_size = 20971520   # 20 M

            sort_area_size = 524288     # 512k (65k--2M)

            sort_area_retained_size = 524288  # MTS sort_area_retained_size = sort_area_size

B、  1G RAM      CPU  db_block_size 8192 bytes
SGA=0.55*1024M=563M  
  shared_pool_size = 100M , db_block_buffer* db_block_size = 400M
  : shared_pool_size=104857600   #100M

         db_block_buffer=51200        #400M

 log_buffer = 131072        # 128k (128K*CPU  )

              large_pool_size=15728640      #15M

         java_pool_size = 20971520   # 20 M

sort_area_size = 524288     # 512k (65k--2M)

             sort_area_retained_size = 524288  # MTS sort_area_retained_size = sort_area_size

 

C、  2G      CPU  db_block_size 8192 bytes

SGA=0.55*2048M=1126.4M  
  shared_pool_size = 200M , db_block_buffer *db_block_size = 800M

        : shared_pool_size=209715200   #200M

         db_block_buffer=103192        #800M

 log_buffer = 131072           # 128k (128K*CPU  )

              large_pool_size=31457280     #30M

         java_pool_size = 20971520     # 20 M

sort_area_size = 524288        # 512k (65k--2M)

             sort_area_retained_size = 524288  # MTS sort_area_retained_size = sort_area_size

 

 

  64 bit ORACLE

  4G

shared_pool_size = 200M , data buffer = 2.5G

 

  8G

shared_pool_size = 300M , data buffer = 5G

 

  12G

shared_pool_size = 300M-----800M , data buffer = 8G

      

oracle8i:

        oracle             

      :

d:\oracle\admin\DB_Name\pfile\init.ora

            。

Oracle9i:

    :      oracle       ,                 

                 oracle        。

SQL>alter system set db_cache_size=200M scope=spfile;

SQL>alter system set shared_pool_size=50M scope=spfile;


[/size]

좋은 웹페이지 즐겨찾기