DB2 SQLCode -1218錯誤

一輩子產系統,最近數據庫操做頻繁出現-1218錯誤:java

<!-- lang: java -->
java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]Error occured with SQLCode -1218 with the following parameters: 4096
    at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    at weblogic.jdbc.db2.drda.DRDARequest.processSQLCA(Unknown Source)
    at weblogic.jdbc.db2.drda.DRDARequest.processCodePoint(Unknown Source)
    at weblogic.jdbc.db2.drda.DRDAStatementRequest.processCodePoint(Unknown Source)
    at weblogic.jdbc.db2.drda.DRDAExecuteStatementRequest.processCodePoint(Unknown Source)
    at weblogic.jdbc.db2.drda.DRDARequest.processReply(Unknown Source)
    at weblogic.jdbc.db2.DB2ImplStatement.getNextResultType(Unknown Source)
    at weblogic.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
    at weblogic.jdbc.base.BaseStatement.postImplExecute(Unknown Source)

根據DB2錯誤碼分析,第一感受覺得是數據庫庫緩衝池過小,不能知足業務須要,須要擴大緩衝池大小來解決這個問題。仔細考慮後以爲有些不對勁,查詢了許多資料,都是說怎麼擴充緩衝池的,後來查詢了數據庫最近一段時間的日誌,在數據庫日誌中找到了真正的緣由是由於平臺上的可用物理內存不中,致使咱們新建的緩衝池沒有激活,數據庫系統自動將緩衝池切換到一個隱藏的容量很小的緩衝池上致使的。DB2的這個坑爹的設計!數據庫日誌信息大致以下:web

<!-- lang: java -->
    MESSAGE : ZRC=0x850F0005=-2062614523=SQLO_NOSEG
      "No Storage Available for allocation"
      DIA8305C Memory allocation failure occurred.
        DATA #1 : String, 286 bytes
        Failed to allocate the desired database shared memory set.
        Check to make sure the configured DATABASE_MEMORY + overflow
    does not exceed the maximum shared memory on the system.
    Attempting to start up with only the system buffer pools.
    Desired database shared memory set size is (bytes):
    DATA #2 : unsigned integer, 4 bytes
    1651048448
    MESSAGE : ADM6073W  The table space "SYSCATSPACE" (ID "0") is configured to use 
      buffer pool ID "1", but this buffer pool is not active at this time. 
      In the interim the table space will use buffer pool ID "4096".  The 
      inactive buffer pool should become available at next database startup 
      provided that the required memory is available.
相關文章
相關標籤/搜索