473,467 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with Modifing MQT

Hi,
we are using DB2 v8.1 on Linux64 for a DW application. We have a
table with around 800 million records in it. For performance purpose we
created about 2 or 3 MQT's(summary tables) on the table with refresh
immediate option. But when developers come up with some changes on the
MQT(which happens all most once every month). We drop the MQT and
recreate it. When the table was small we never had problem. But later
on we started having the transaction log full error.

As a work around, we are dropping all the MQTs. Renaming the table to
someother name. And then create the table again, create the MQT and
then insert the 800 million records again. Which requires around 3 -4
hrs time to reinsert all the records back into the table. Is there
anyother simple way to solve this problem.

Regards,
Koushik S

Aug 1 '06 #1
4 3337
Assuming that you're using circular logging; did you try increasing the
log space?

Phil Sherman
lpmsk wrote:
Hi,
we are using DB2 v8.1 on Linux64 for a DW application. We have a
table with around 800 million records in it. For performance purpose we
created about 2 or 3 MQT's(summary tables) on the table with refresh
immediate option. But when developers come up with some changes on the
MQT(which happens all most once every month). We drop the MQT and
recreate it. When the table was small we never had problem. But later
on we started having the transaction log full error.

As a work around, we are dropping all the MQTs. Renaming the table to
someother name. And then create the table again, create the MQT and
then insert the 800 million records again. Which requires around 3 -4
hrs time to reinsert all the records back into the table. Is there
anyother simple way to solve this problem.

Regards,
Koushik S
Aug 1 '06 #2
Hi Phil,
Yes, We are using circular log.
We already increased the log file size. Our log file size is 30 000
pages. Increasing more than this resulted in slower performance of the
ETL process the load the DW.
Log Retain No
Log primary 20
Log secondary 30
This combination worked good for us. So we retained it. Is there
anything I need to change in this.

Regards,
Koushik S
Phil Sherman wrote:
Assuming that you're using circular logging; did you try increasing the
log space?

Phil Sherman
lpmsk wrote:
Hi,
we are using DB2 v8.1 on Linux64 for a DW application. We have a
table with around 800 million records in it. For performance purpose we
created about 2 or 3 MQT's(summary tables) on the table with refresh
immediate option. But when developers come up with some changes on the
MQT(which happens all most once every month). We drop the MQT and
recreate it. When the table was small we never had problem. But later
on we started having the transaction log full error.

As a work around, we are dropping all the MQTs. Renaming the table to
someother name. And then create the table again, create the MQT and
then insert the 800 million records again. Which requires around 3 -4
hrs time to reinsert all the records back into the table. Is there
anyother simple way to solve this problem.

Regards,
Koushik S
Aug 1 '06 #3
It didn't quite work - your update job failed!

I'd try upping the "log secondary" parameter to at least 80 (doubling
the total log space) and verify that you have the disk space to support
it. After the job completes, do a "GET SNAPSHOT FOR DATABASE ON db_name"
and look at the "Maximum secondary log space used" line to determine how
to properly set the parameter.

Phil Sherman
lpmsk wrote:
Hi Phil,
Yes, We are using circular log.
We already increased the log file size. Our log file size is 30 000
pages. Increasing more than this resulted in slower performance of the
ETL process the load the DW.
Log Retain No
Log primary 20
Log secondary 30
This combination worked good for us. So we retained it. Is there
anything I need to change in this.

Regards,
Koushik S
Phil Sherman wrote:
>>Assuming that you're using circular logging; did you try increasing the
log space?

Phil Sherman
lpmsk wrote:
>>>Hi,
we are using DB2 v8.1 on Linux64 for a DW application. We have a
table with around 800 million records in it. For performance purpose we
created about 2 or 3 MQT's(summary tables) on the table with refresh
immediate option. But when developers come up with some changes on the
MQT(which happens all most once every month). We drop the MQT and
recreate it. When the table was small we never had problem. But later
on we started having the transaction log full error.

As a work around, we are dropping all the MQTs. Renaming the table to
someother name. And then create the table again, create the MQT and
then insert the 800 million records again. Which requires around 3 -4
hrs time to reinsert all the records back into the table. Is there
anyother simple way to solve this problem.

Regards,
Koushik S

Aug 1 '06 #4
Ian
lpmsk wrote:
Hi,
we are using DB2 v8.1 on Linux64 for a DW application. We have a
table with around 800 million records in it. For performance purpose we
created about 2 or 3 MQT's(summary tables) on the table with refresh
immediate option. But when developers come up with some changes on the
MQT(which happens all most once every month). We drop the MQT and
recreate it. When the table was small we never had problem. But later
on we started having the transaction log full error.
You can also do:

db2 +c alter table mqt activate not logged initially
db2 refresh table mqt;
db2 commit

Aug 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MaKiT | last post by:
I have a program which on start makes a 4x4 grid of tiles. These tiles are all blank. Two Array variables hold the position of 8 pairs of images. Then when you click a tile it is uncovered and you...
117
by: Peter Olcott | last post by:
www.halting-problem.com
13
by: ashu | last post by:
hi to all, Please read the following ques. first. assume that a bank maintains 2 kinds of accounts for customers one called as savings accounts & other as current account. the savings account...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
39
by: Marcin Zmyslowski | last post by:
Hello all! I have the following problem with MS Access 2003 permissions. I have two users. One is admin and the second one is user who has full permissions to enter modify and read data. I...
0
by: S. Justin Gengo | last post by:
A while ago I submitted a bug report for a problem that occurrs when using the admin tool. There is now a "permanent" fix available I thought I'd share. First the problem was: After running the...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.