473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DB2 dropped into first gear?

A Java Batch job running on AIX 4.3.3 talking to another
RS6000 running DB2 6.1 was taking 15 min last week. This week
it is taking over 6 hours! The job uses 4 tables that have
over 5,000,000 rows each.
I am told nothing has changed in the batch job and other
than about 10K new records inserted each night into a few of
the tables, nothing has changed in the DB. (I am told)

The questions is; Can a query, insert and update job
go from 15mins to 6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with
no luck.

Any ideas where to look? All smit diags show ok on OS and
hardware.
network seems fine.

Thanks --

TS
Nov 12 '05 #1
11 1990
Have you considered the network? Have any network changes been made? How
many segments separate the two machines? Could the traffic patterns be
different this week for some reason?

Al Murry wrote:
A Java Batch job running on AIX 4.3.3 talking to another
RS6000 running DB2 6.1 was taking 15 min last week. This week
it is taking over 6 hours! The job uses 4 tables that have
over 5,000,000 rows each.
I am told nothing has changed in the batch job and other
than about 10K new records inserted each night into a few of
the tables, nothing has changed in the DB. (I am told)

The questions is; Can a query, insert and update job
go from 15mins to 6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with
no luck.

Any ideas where to look? All smit diags show ok on OS and
hardware.
network seems fine.

Thanks --

TS


Nov 12 '05 #2
Other jobs competing for resources at the same time? (scheduler, utilities,
....)
Tempspace/sort parms... Sort is now going to disk?
Clustering ratios changed? Maybe someone reorged the wrong way...
Summary tables involved? ast, ...
lock escalation
forgot to remove traces?
Are we talking jdbc or sqlj?
etc....

PM

"Al Murry" <am****@northtech.net> a écrit dans le message de
news:pa***************************@northtech.net.. .
A Java Batch job running on AIX 4.3.3 talking to another
RS6000 running DB2 6.1 was taking 15 min last week. This week
it is taking over 6 hours! The job uses 4 tables that have
over 5,000,000 rows each.
I am told nothing has changed in the batch job and other
than about 10K new records inserted each night into a few of
the tables, nothing has changed in the DB. (I am told)

The questions is; Can a query, insert and update job
go from 15mins to 6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with
no luck.

Any ideas where to look? All smit diags show ok on OS and
hardware.
network seems fine.

Thanks --

TS

Nov 12 '05 #3
I have shut all other jobs down. Taking a snapshot a different times
Shows nothing adnormal. No lock escalation.
Using jdbc.
No cluster idx's.

TS

On Mon, 20 Oct 2003 21:38:13 +0000, PM-pm3iinc-nospam wrote:
Other jobs competing for resources at the same time? (scheduler, utilities,
...)
Tempspace/sort parms... Sort is now going to disk?
Clustering ratios changed? Maybe someone reorged the wrong way...
Summary tables involved? ast, ...
.
forgot to remove traces?
Are we talking jdbc or sqlj?
etc....

PM

"Al Murry" <am****@northtech.net> a écrit dans le message de
news:pa***************************@northtech.net.. .
A Java Batch job running on AIX 4.3.3 talking to another
RS6000 running DB2 6.1 was taking 15 min last week. This week
it is taking over 6 hours! The job uses 4 tables that have
over 5,000,000 rows each.
I am told nothing has changed in the batch job and other
than about 10K new records inserted each night into a few of
the tables, nothing has changed in the DB. (I am told)

The questions is; Can a query, insert and update job
go from 15mins to 6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with
no luck.

Any ideas where to look? All smit diags show ok on OS and
hardware.
network seems fine.

Thanks --

TS


Nov 12 '05 #4
> > "Al Murry" <am****@northtech.net> a écrit dans le message de
news:pa***************************@northtech.net.. .
A Java Batch job running on AIX 4.3.3 talking to another
RS6000 running DB2 6.1 was taking 15 min last week. This week
it is taking over 6 hours! The job uses 4 tables that have
over 5,000,000 rows each.
I am told nothing has changed in the batch job and other
than about 10K new records inserted each night into a few of
the tables, nothing has changed in the DB. (I am told)

The questions is; Can a query, insert and update job
go from 15mins to 6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with
no luck.

Any ideas where to look? All smit diags show ok on OS and
hardware.
network seems fine.

Thanks --

TS


Is DB2 6.1 for AIX still supported by IBM?
Nov 12 '05 #5
logging performance changed?
db2 list history and db2diag.log (db2 starting with small bufferpool,
etc.)... could provide some clues?
db2level changed recently?
bug/boucle in the program's code (error management)? (could happen)
database activated?

PM

"Willard Farwark" <am****@northtech.net> a écrit dans le message de
news:pa****************************@northtech.net. ..
I have shut all other jobs down. Taking a snapshot a different times
Shows nothing adnormal. No lock escalation.
Using jdbc.
No cluster idx's.

TS

On Mon, 20 Oct 2003 21:38:13 +0000, PM-pm3iinc-nospam wrote:
Other jobs competing for resources at the same time? (scheduler, utilities, ...)
Tempspace/sort parms... Sort is now going to disk?
Clustering ratios changed? Maybe someone reorged the wrong way...
Summary tables involved? ast, ...
.
forgot to remove traces?
Are we talking jdbc or sqlj?
etc....

PM

"Al Murry" <am****@northtech.net> a écrit dans le message de
news:pa***************************@northtech.net.. .
A Java Batch job running on AIX 4.3.3 talking to another
RS6000 running DB2 6.1 was taking 15 min last week. This week
it is taking over 6 hours! The job uses 4 tables that have
over 5,000,000 rows each.
I am told nothing has changed in the batch job and other
than about 10K new records inserted each night into a few of
the tables, nothing has changed in the DB. (I am told)

The questions is; Can a query, insert and update job
go from 15mins to 6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with
no luck.

Any ideas where to look? All smit diags show ok on OS and
hardware.
network seems fine.

Thanks --

TS

Nov 12 '05 #6
No.

Mark A wrote:

Is DB2 6.1 for AIX still supported by IBM?


Nov 12 '05 #7
On Mon, 20 Oct 2003 21:37:57 +0000, Mark A wrote:
> "Al Murry" <am****@northtech.net> a écrit dans le message de
> news:pa***************************@northtech.net.. .
>> A Java Batch job running on AIX 4.3.3 talking to another RS6000
>> running DB2 6.1 was taking 15 min last week. This week it is taking
>> over 6 hours! The job uses 4 tables that have over 5,000,000 rows
>> each.
>> I am told nothing has changed in the batch job and other than about
>> 10K new records inserted each night into a few of the tables, nothing
>> has changed in the DB. (I am told)
>>
>> The questions is; Can a query, insert and update job go from 15mins
>> to 6hrs in one day? I don't think so...
>>
>> Have reorged all the tables, ran DB2DART on the DB with no luck.
>>
>> Any ideas where to look? All smit diags show ok on OS and hardware.
>> network seems fine.
>>
>> Thanks --
>>
>> TS


Is DB2 6.1 for AIX still supported by IBM?


Nope. WE just got 7.2 but I Dont want to put it into prod
without fixing all problems first..

TS
Nov 12 '05 #8
Ran into a similar problem last night. A batch process that normally
took seconds now took hours. No structural changes, etc. The only
difference is that now one of the tables had 30K more rows in it.

What we finally figured out (or at least guessed at), was that we must
have crossed some internal threshold on rowcounts that made the
optimizer take a path. A quick runstats on the one table in question
returned the performance to seconds again. (Ironically the cost from
the explain utility was higher after the runstats.) Try updating the
stats for your tables and see if that restores performance.

Evan
"PM \(pm3iinc-nospam\)" <PM(pm3iinc-nospam)@sympatico.ca> wrote in message news:<pk******************@news20.bellglobal.com>. ..
logging performance changed?
db2 list history and db2diag.log (db2 starting with small bufferpool,
etc.)... could provide some clues?
db2level changed recently?
bug/boucle in the program's code (error management)? (could happen)
database activated?

PM

"Willard Farwark" <am****@northtech.net> a écrit dans le message de
news:pa****************************@northtech.net. ..
I have shut all other jobs down. Taking a snapshot a different times
Shows nothing adnormal. No lock escalation.
Using jdbc.
No cluster idx's.

TS

On Mon, 20 Oct 2003 21:38:13 +0000, PM-pm3iinc-nospam wrote:
Other jobs competing for resources at the same time? (scheduler, utilities, ...)
Tempspace/sort parms... Sort is now going to disk?
Clustering ratios changed? Maybe someone reorged the wrong way...
Summary tables involved? ast, ...
.
forgot to remove traces?
Are we talking jdbc or sqlj?
etc....

PM

"Al Murry" <am****@northtech.net> a écrit dans le message de
news:pa***************************@northtech.net.. .
> A Java Batch job running on AIX 4.3.3 talking to another
> RS6000 running DB2 6.1 was taking 15 min last week. This week
> it is taking over 6 hours! The job uses 4 tables that have
> over 5,000,000 rows each.
> I am told nothing has changed in the batch job and other
> than about 10K new records inserted each night into a few of
> the tables, nothing has changed in the DB. (I am told)
>
> The questions is; Can a query, insert and update job
> go from 15mins to 6hrs in one day? I don't think so...
>
> Have reorged all the tables, ran DB2DART on the DB with
> no luck.
>
> Any ideas where to look? All smit diags show ok on OS and
> hardware.
> network seems fine.
>
> Thanks --
>
> TS

Nov 12 '05 #9
"Evan Smith" <es********@hotmail.com> wrote in message
Ran into a similar problem last night. A batch process that normally
took seconds now took hours. No structural changes, etc. The only
difference is that now one of the tables had 30K more rows in it.

What we finally figured out (or at least guessed at), was that we must
have crossed some internal threshold on rowcounts that made the
optimizer take a path. A quick runstats on the one table in question
returned the performance to seconds again. (Ironically the cost from
the explain utility was higher after the runstats.) Try updating the
stats for your tables and see if that restores performance.

Evan

If runstats had been run, that is a potentially major change. 30K more rows
may have caused major disorganization problems in the table or the index,
which might have caused DB2 to stop using an index. This often happens when
there is not sufficient freespace defined for new table rows or index rows
to be inserted in the middle of the existing data. Reorgs and then runstats
will help this, but also consider adding percent free to tables and indexes.
Nov 12 '05 #10
Got it fixed. Thanks for all the help. After much discussions, got
them to bring the prod to devl and play with it.
Was using Quest to runstats late at night, I thought Quest's
reorg did indexes also. WRONG!
Used DB2's command line. Reorged one of the tables with the
index DB2 suggested and took care of it.

What got me was everything changed it one or two days. Did not
think that would happend.

ts

On Mon, 20 Oct 2003 19:14:02 +0000, Larry Edelstein wrote:
Have you considered the network? Have any network changes been made? How
many segments separate the two machines? Could the traffic patterns be
different this week for some reason?

Al Murry wrote:
A Java Batch job running on AIX 4.3.3 talking to another RS6000 running
DB2 6.1 was taking 15 min last week. This week it is taking over 6
hours! The job uses 4 tables that have over 5,000,000 rows each.
I am told nothing has changed in the batch job and other than about 10K
new records inserted each night into a few of the tables, nothing has
changed in the DB. (I am told)

The questions is; Can a query, insert and update job go from 15mins to
6hrs in one day? I don't think so...

Have reorged all the tables, ran DB2DART on the DB with no luck.

Any ideas where to look? All smit diags show ok on OS and hardware.
network seems fine.

Thanks --

TS


Nov 12 '05 #11
"Al Murry" <am****@northtech.net> wrote in message
news:pa****************************@northtech.net. ..
Got it fixed. Thanks for all the help. After much discussions, got
them to bring the prod to devl and play with it.
Was using Quest to runstats late at night, I thought Quest's
reorg did indexes also. WRONG!
Used DB2's command line. Reorged one of the tables with the
index DB2 suggested and took care of it.

What got me was everything changed it one or two days. Did not
think that would happend.

ts

If you put some percent free in the index (and also the table if you have
defined a clustering index), that will help minimize index page splits
(which cause performance problems during the insert and need to be reorged
more often). The percent free should be the percentage of data that is
inserted into the table between reorgs.
Nov 12 '05 #12

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

Similar topics

7
by: cbielins | last post by:
So yea... I rm-ed a rlv that our TS_FACT2 tblspace was using. So our db went to the crapper. The tblspace didn't have any pertinent info, so I'm ok with dropping the tblspace and starting over. ...
3
by: hikums | last post by:
I dropped the db2detaildeadlock event monitor without flushing the events that were full hoping dropping it will clear the messages also. I now understand this is a default monitor that I should...
1
by: D A H | last post by:
I have gotten the same exception in multiple projects. I have solved the underlying problem. My question is if anyone knew of a setting that would cause this exception to be thrown. A...
3
by: Rajesh Kumar Mallah | last post by:
Hi, Looks like alter table does not tells about the indexes it dropped PG version: 7.4.3 Regds mallah.
4
by: J.C. | last post by:
So --my first VB program is to build a database of our large (1000+ networks) network. I would like to start by collecting all I can from our router configuration files. I can see that I can...
0
by: bthomas71chevy | last post by:
(I hope I can explain this correctly and someone can clarify it and or correct me if I'm wrong?) After a Build of a Web App and deployment, each pages server cache is dropped and that is why the...
2
by: Jck | last post by:
Could someone tell me how to detect TcpClient connection dropped, please? I have a TcpClient connected to a server by IP and Port. The TcpClient only read data from the server. However, if there...
0
by: bbkm | last post by:
when i am doing dropped table reccovery step1- the tablespace should be in recovery mode is it rite step2 - the database should be in archivelog mode is it rite step-3 - identify the dropped table...
2
by: kashhere | last post by:
hi 2 all can any one plz tell me the info about Vault Gear I need to know about that if you have any links about this please provide me thanks in advance kash
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.