473,387 Members | 1,549 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,387 software developers and data experts.

SYSIBM.SQLSTATISTICS

We have a number of client installations where dynamic sql snapshots
show that:

CALL SYSIBM.SQLSTATISTICS(?,?,?,?,?,?)

is the top consumer of CPU, usually by a wide margin. We regularly do
runstats/rebind on SYSIBM.*, like this:

DB2 -x "SELECT 'RUNSTATS ON TABLE SYSIBM.'||TABNAME||' WITH
DISTRIBUTION AND DETAILED INDEXES ALL SHRLEVEL CHANGE' FROM
SYSCAT.TABLES WHERE TABSCHEMA = 'SYSIBM' AND TYPE='T'" .
\RUNSTATS.SQL

DB2 -o -v -f .\RUNSTATS.SQL -z .\RUNSTATS.LOG

DB2 -x "SELECT 'REBIND NULLID.'||PKGNAME FROM SYSCAT.PACKAGES WHERE
PKGSCHEMA = 'NULLID'" .\REBIND.SQL

DB2 -o -v -f .\REBIND.SQL -z .\REBIND.LOG

Does the fact that this is so expensive -- 490 executions consumed 39
seconds of user CPU time -- indicate that something else is wrong?

Oct 27 '07 #1
0 2274

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

Similar topics

2
by: Patrick Finnegan | last post by:
DB2DART detects problems with SYSIBM.SYSSECTION and SYSIBM.SYSSTMT .. I cannot connect to or drop these tables(system objects). What are my options besides a db restore? Thanks in advance. ...
5
by: Andrew Werden | last post by:
I've inherited some code that calls SYSIBM.SQLPROCEDURES to validate user provided parameters and text prior to executing a stored procedure. This code was written on an early UDB release (V6?)...
7
by: Robert Stearns | last post by:
I ran the following bit of SQL and my PRIMARY KEY wound up in schema SYSIBM called SQL.... not schema is3 called primary. The index registation did wind up there. Obviously there's something I...
9
by: Raquel | last post by:
When I create a package (by db2sqljcustomize command), the new package does not immediately appear in SYSIBM.SYSPLAN for that database. It appears after some time. Does anyone know when...
0
by: Nile | last post by:
Hi, I am trying to find the number of rows in a DB2 table using ODBC SQLStatistics. Although, the documentation claims that this is supported, I am getting SQL_ERROR when the data is fetched...
5
by: Mike Gemmell | last post by:
create table ppp ( t int ) @ create view v_ppp as select t from ppp @
3
by: Michael Rudolph | last post by:
Hi, at the moment i try to use the federated database feature (DB2/NT 8.2.3) to use a remote host db2 (DB2 OS/390 7.1.2). I am unsure what privileges are needed for the host db2 user. A...
8
by: dcruncher4 | last post by:
Can I get the equivalent information for the following commands using SYSCAT or SYSIBM tables. db2 list tablespace containers for 14 show detail db2 list history backup since 20061018 for...
1
by: dschat | last post by:
Hi all, I am receiving: 'SQL0443N The Routine "SQLSTATISTICS" returned an error' when I try to connect to a DB2/OS390 table over MS Access. I bound the database with db2cli.lst, ddcsmvs.lst and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.