DB2 V9配置顧問程式(四)

rheet1978發表於2008-06-30

接下來分別開啟DB2TEST1.CFG和DB2TEST2.CFG檔案,檢視其配置引數,並比較每個配置引數在兩個檔案中的值,可以發現,示例資料庫DB2TEST2的很多引數被配置顧問程式根據系統的情況做了修改。為了方便大家理解,我們把這兩個檔案中的配置引數和配置引數的值不同的部分合併到一個檔案中進行檢視,不同的部分用紅色標識(DB2TEST1和DB2TEST2的資料庫內碼表都是1386,資料庫程式碼集都是GBK),具體如清單9所示:

 

- - 清單 9 .比較示例資料庫DB2TEST1和DB2TEST2的配置引數,區別部分用紅色標識

                                                                                                                                                       
                              資料庫 db2test1 的資料庫配置      db2test2 的資料庫配置                                                                                       
                                                                                                                               
 資料庫配置發行版級別                                    = 0x0b00              0x0b00                                          
 資料庫發行版級別                                        = 0x0b00              0x0b00                                          
                                                                                                                               
 資料庫地域                                              = CN                  CN                                              
 資料庫內碼表                                            = 1386                1386                                            
 資料庫程式碼集                                            = GBK                GBK                                             
 資料庫國家/地區程式碼                                    = 86
                  86                                              
 資料庫整理順序                                          = UNIQUE            UNIQUE                                          
 備用整理順序               ( ALT_COLLATE )    =                                                                     
 資料庫頁大小                                            = 4096                4096                                            
                                                                                                                               
 動態 SQL 查詢管理         ( DYN_QUERY_MGMT )   = DISABLE             DISABLE                                         
                                                                                                                               
 對此資料庫的發現支援       ( DISCOVER_DB )   = ENABLE              ENABLE                                          
                                                                                                                               
 . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                        
                                                                                                                               
 自調整記憶體                   ( SELF_TUNING_MEM )  = ON                  ON                                              
 資料庫共享記憶體大小(4KB)   ( DATABASE_MEMORY )  = AUTOMATIC         AUTOMATIC                                       
 資料庫記憶體閾值               ( DB_MEM_THRESH )   = 10                  10                                              
 鎖定列表的最大儲存量(4KB) ( LOCKLIST )    = AUTOMATIC         = AUTOMATIC                                      
 每個應用程式的鎖定百分比列表 ( MAXLOCKS )     = AUTOMATIC           AUTOMATIC                                       
 程式包快取記憶體大小(4KB)   ( PCKCACHESZ )   = AUTOMATIC           AUTOMATIC                                       
 共享排序的排序堆域值(4KB) ( SHEAPTHRES_SHR )   = AUTOMATIC           AUTOMATIC                                       
 排序列表堆(4KB)           ( SORTHEAP )    = AUTOMATIC           AUTOMATIC                                       
                                                                                                                               
 資料庫堆(4KB)             ( DBHEAP )    = 600                 600                                             
 目錄快取記憶體大小(4KB)     ( CATALOGCACHE_SZ )  = ( MAXAPPLS * 4 )      80                                              
 日誌緩衝區大小(4KB)       ( LOGBUFSZ )    = 8                   = 30
                                             
 實用程式堆大小(4KB)                    ( UTIL_HEAP_SZ ) = 5000                5000                                            
 緩衝池大小(頁)                             ( BUFFPAGE ) = 250                 250                                             
 應用程式組記憶體集的最大大小(4KB)     ( APPGROUP_MEM_SZ ) = 30000               30000                                           
 應用程式組堆的記憶體百分比              ( GROUPHEAP_RATIO ) = 70                  70                                              
 最大應用程式控制堆大小(4KB)         ( APP_CTL_HEAP_SZ ) = 128                 128                                             
                                                                                                                               
 SQL 語句堆(4KB)                            ( STMTHEAP ) = 2048                2048                                            
 預設應用程式堆(4KB)                      ( APPLHEAPSZ ) = 256                 256                                             
 統計資訊堆大小(4KB)                    ( STAT_HEAP_SZ ) = 4384                4384                                            
                                                                                                                               
 檢查死鎖的時間間隔(毫秒)                  ( DLCHKTIME ) = 10000               10000                                           
 鎖定超時(秒)                             ( LOCKTIMEOUT ) = -1                = -1                                             
                                                                                                                               
 更改的頁閾值                           ( CHNGPGS_THRESH ) = 60                  80                                              
 非同步頁清除程式的數目                   ( NUM_IOCLEANERS ) = AUTOMATIC           AUTOMATIC                                       
 I / O 伺服器的數目                        ( NUM_IOSERVERS ) = AUTOMATIC           AUTOMATIC                                       
 索引排序標誌                                 ( INDEXSORT ) = YES               = YES                                            
 順序檢測標誌                                ( SEQDETECT ) = YES                 YES                                             
 預設預取大小(頁)                    ( DFT_PREFETCH_SZ ) = AUTOMATIC           AUTOMATIC                                       
                                                                                                                               
 跟蹤修改的頁數                               ( TRACKMOD ) = OFF                 OFF                                             
                                                                                                                               
 容器的預設數目                                          = 1                   1                                               
 預設表空間擴充套件資料塊大小(頁)            ( DFT_EXTENT_SZ ) = 32                  32                                              
                                                                                                                               
 最大活動應用程式數                           ( MAXAPPLS ) = AUTOMATIC           AUTOMATIC                                       
 活動應用程式的平均數目       ( AVG_APPLS ) = AUTOMATIC                      = AUTOMATIC                                                          
 每個應用程式的最大開啟資料庫檔案數           ( MAXFILOP ) = 64                  64                                              
                                                                                                                               
 日誌檔案大小(4KB)                         ( LOGFILSIZ ) = 1000                1024                                            
 主日誌檔案的數目                           ( LOGPRIMARY ) = 3                   13                                              
 輔助日誌檔案的數目                          ( LOGSECOND ) = 2
                   4                                               
 已更改的至日誌檔案的路徑                   ( NEWLOGPATH ) =                                                                     
 日誌檔案路徑      = C : \ DB2 \ NODE0000 \ SQL00002 \SQLOGDIR \    C : \ DB2 \ NODE0000 \ SQL00003 \ SQLOGDIR \              
 溢位日誌路徑                          ( OVERFLOWLOGPATH ) =                                                                     
 映象日誌路徑                            ( MIRRORLOGPATH ) =                                                                     
 首個活動日誌檔案                                        =                                                                     
 磁碟上已滿的塊日誌                    ( BLK_LOG_DSK_FUL ) = NO                  NO                                              
 事務使用的最大主日誌空間的百分比        ( MAX_LOG )= 0                                                                        
 1 個活動 UOW 的活動日誌檔案的數目        ( NUM_LOG_SPAN ) = 0                   0                                               
                                                                                                                               
 組落實計數                                  ( MINCOMMIT ) = 1                   1                                               
 軟檢查點前回收的日誌檔案的百分比              ( SOFTMAX ) = 100                 520                                             
 啟用的恢復的日誌保留                        ( LOGRETAIN ) = OFF                 OFF                                             
 啟用的日誌記錄的使用者出口                     ( USEREXIT ) = OFF                 OFF                                             
                                                                                                                               
. . . . . . . . . . . . . . . . . . . . . . . .                  
 後面的引數值都相同。                      
                                           

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9524210/viewspace-366485/,如需轉載,請註明出處,否則將追究法律責任。

相關文章