Question
You configured system-maintained MQT based on nicknames, when trying to retrieve latest data from remote data source, you found the elapsed time was very long. Why does it take so long when refreshing system-maintained MQT which is created on nicknames?
Cause
System-maintained MQT which is created on nicknames uses full refreshment.
Answer
From refreshing scale, there are 2 ways for system-maintained MQT. one is full refreshment, the other is incremental refreshment.
1) MQT defined with REFRESH IMMEDIATE option only uses incremental refreshment. REFRESH TABLE command actually doesn't do any operation on MQT.
2) MQT defined with REFRESH DEFERRED option normally uses full refreshment, but not always, there is an exception. If you defined staging table for MQT, incremental refreshment will be used.
Only REFRESH DEFERRED MQT can be created on nickname, but staging table doesn't support nickname, that's why this kind of MQT uses full refreshment. If you want to use incremental refreshment, cache table is a choice.
닉네임에 대해서는 MQT(materialized query table)작성은 가능하지만 MQT에 대한스테이징 테이블(변경된 데이터만 저장한 테이블)은 작성할 수 없음. 대안인 캐시 테이블도 테이블 복제나 매한가지임, Capture and Apply. OTL
https://www-304.ibm.com/support/docview.wss?uid=swg21514881
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.iis.fed.tuning.doc/topics/iiyvfed_tuning_cachetbls.html
'Db2 > Db2 troubleshooting' 카테고리의 다른 글
db2 9.7 FixPack6 설치 오류 (AIX 5.3) (0) | 2012.07.04 |
---|---|
Error [IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed trying to connect using unixODBC driver manager (0) | 2012.05.06 |
SQL 복제 구성에서 캡쳐 프로세스 오류 (0) | 2012.04.06 |
no resources to create process or thread 오류 (0) | 2012.01.05 |
db2icrt/db2idrop hangs when executing db2isrv (0) | 2011.12.28 |