473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

stale statistics or whats the difference?

Hello Folks,

i've got two structural identical tables (including tablespace and indexes)
with identical data, on which the access path of an SQL is differs. But I
don't see a reason for the different behaviour.

Both tables are allocated in the same database and storage space and use the
same buffer pool. The DB2 subsystem is Version7.1 on z/OS. On both tables
I've run REORG with standard statistics.
I've checked for stale statistics with the following selects on the system
tables and found difference and no stale entries.

The only difference between the tables I know are:
- prefix of the table and index names
- creation date.

Does anybody have an idea what I could have missed?

Thanks in advance,

Ulrike

----

SELECT * FROM SYSIBM.SYSTABLES
WHERE NAME = 'S55RARCB'
AND CREATOR = 'D$TS55T7'
;
SELECT * FROM SYSIBM.SYSTABLESPACE
WHERE NAME = 'S55AARCB'
AND CREATOR = 'D$TS55T7'
;
SELECT * FROM SYSIBM.SYSCOLUMNS
WHERE TBNAME = 'S55RARCB'
AND TBCREATOR = 'D$TS55T7'
ORDER BY TBNAME, COLNO
;
SELECT * FROM SYSIBM.SYSCOLDIST
WHERE TBNAME = 'S55RARCB'
AND TBOWNER ='D$TS55T7'
-- AND TYPE = 'C'
;
-- NUR PARTITIONIERTE:
SELECT * FROM SYSIBM.SYSCOLSTATS
WHERE TBNAME = 'S55RARCB'
;
-- NUR PARTITIONIERTE:
SELECT * FROM SYSIBM.SYSCOLDISTSTATS
WHERE TBNAME = 'S55RARCB'
;
-- NUR PARTITIONIERTE:
SELECT * FROM SYSIBM.SYSINDEXSTATS
WHERE NAME LIKE 'S55IARCB%'
;
SELECT * FROM SYSIBM.SYSINDEXES
WHERE TBNAME = 'S55RARCB'
AND TBCREATOR = 'D$TS55T7'
;
SELECT * FROM SYSIBM.SYSINDEXPART
WHERE IXNAME LIKE 'S55IARCB%'
AND IXCREATOR = 'D$TS55T7'
;
Oct 5 '06 #1
2 2342
"Ulrike Klusik" <kl****@mathematik.uni-marburg.dewrote in message
news:eg**********@news.sdm.de...
Hello Folks,

i've got two structural identical tables (including tablespace and
indexes) with identical data, on which the access path of an SQL is
differs. But I don't see a reason for the different behaviour.

Both tables are allocated in the same database and storage space and use
the same buffer pool. The DB2 subsystem is Version7.1 on z/OS. On both
tables I've run REORG with standard statistics.
I've checked for stale statistics with the following selects on the system
tables and found difference and no stale entries.

The only difference between the tables I know are:
- prefix of the table and index names
- creation date.

Does anybody have an idea what I could have missed?

Thanks in advance,

Ulrike
If you program uses embedded static SQL such as would likely occur in a
COBOL or PL/I program, you need to rebind the plan or package (whichever
applies).
Oct 6 '06 #2
Hello Mark,

I've been using EXPLAIN SQL.

In the meantime my problem vanished in such a way, that I have now on both
tables the bad access path :-(
But I found no update the table stats!

Best wishes,
Ulrike

"Mark A" <no****@nowhere.comschrieb im Newsbeitrag
news:v8******************************@comcast.com. ..
"Ulrike Klusik" <kl****@mathematik.uni-marburg.dewrote in message
news:eg**********@news.sdm.de...
>Hello Folks,

i've got two structural identical tables (including tablespace and
indexes) with identical data, on which the access path of an SQL is
differs. But I don't see a reason for the different behaviour.

Both tables are allocated in the same database and storage space and use
the same buffer pool. The DB2 subsystem is Version7.1 on z/OS. On both
tables I've run REORG with standard statistics.
I've checked for stale statistics with the following selects on the
system tables and found difference and no stale entries.

The only difference between the tables I know are:
- prefix of the table and index names
- creation date.

Does anybody have an idea what I could have missed?

Thanks in advance,

Ulrike

If you program uses embedded static SQL such as would likely occur in a
COBOL or PL/I program, you need to rebind the plan or package (whichever
applies).


Oct 13 '06 #3

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

Similar topics

21
2569
by: asj | last post by:
well, at least for the forseeable future, it looks like. i've always thought mauricio aguilar was a loony for continuing to post these job stats, when we all know C#/.NET jobs HAVE to go up...
17
14044
by: Felix | last post by:
Dear Sql Server experts: First off, I am no sql server expert :) A few months ago I put a database into a production environment. Recently, It was brought to my attention that a particular...
5
6619
by: Jesper Jensen | last post by:
Hello group. I have an issue, which has bothered me for a while now: I'm wondering why the column statistics, which SQL Server wants me to create, if I turn off auto-created statistics, are so...
4
2680
by: Sky Fly | last post by:
Hello all, I've written a stored procedure which runs OK for the first few thousand records it processes, then around about the 10,000th record it suffers a sudden and dramatic drop in...
1
1601
by: John Rivers | last post by:
Hello, This topic has bugged me for years. The ideal for handling web forms would be that submitting the form replaces the browser history's current url with the url resulting from the form...
3
19261
by: Amir Shitrit | last post by:
Hi to all. Whats the difference between DynamicInvoke and Invoke methods of the Delegate class? Thanks in advance.
17
5028
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
3
5878
by: petermichaux | last post by:
Hi, I am trying to put together the last major pieces of my project's puzzle. This is more website/client-side architecture than JavaScript syntax but I hope this is a good place to ask. I'm a...
1
1982
by: yogesh | last post by:
i have a code as follows TServerDB() { fDB = Server()->dbStorage->Create(); } or fDB=TServer->TMySQLBD->Create(); can any one tell the relationship between two and whats the <between...
0
7278
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
7328
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
6991
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
5578
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
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.