2011년 11월 30일 수요일

DB2 에러코드 정보

jts.log, ccm.log, qm.log, rm.log를 살펴보면 DB2와 관련된 로그를 볼 수 있습니다:

Caused by: java.lang.RuntimeException:
com.ibm.team.repository.common.RetryableDatabaseException: com.ibm.db2.jcc.b.SqlException thrown
The transaction log is full.
SQL: Insert Into REPOSITORY.ITEM_STATES (ITEM_UUID, KEY_UUID, MODIFIED, ITEM_TYPE_DBID, VAL_ENCODING, ITEM_VALUE) VALUES (?, ?, ?, ?, ?, ?)
SQL Exception #1
SQL Message: DB2 SQL error: SQLCODE: -289, SQLSTATE: 57011, SQLERRMC: CONTENTTS
SQL State: 57011
Error Code: -289


특히 SQLSTATE 또는 SQLCODE 값은 DB2로부터 정보를 보다 많이 얻을 수 있습니다.

SQLSTATE의 경우:
C:\Documents and Settings\srich>db2 ? sqlstate 57011
SQLSTATE 57011: Virtual storage or database resource is not available.

SQLCODE 값이 있는 경우 보다 자세한 정보를 얻을 수 있습니다:
C:\Documents and Settings\srich>db2 ? SQL289
SQL0289N Unable to allocate new pages in table space
"".
Explanation:
One of the following conditions is true on one or more database
partitions:



https://jazz.net/wiki/bin/view/Main/DB2Codes

댓글 없음:

댓글 쓰기