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

SQL Stored procedures

DB2 7.2 EE fixpack 10a

Monitoring time:

Last reset timestamp = 08/12/2003 13.13.33.298835
Snapshot timestamp = 08/12/2003 13.33.49.996443

Table snapshot

Table Schema = SYSIBM
Table Name = SYSPROCPARMS
Table Type = Catalog
Rows Read = 148058842
Rows Written = 0
Overflows = 0
Page Reorgs = 0

30 * 60 = 1800 sec
82255 rows per second

Any comments/ideas from ibm-team?

Andy

Nov 12 '05 #1
4 2759
Andy,

If you're running a lot of stored procedures (thinking multiple clients
here), and you have a good number of stored procs on v7, this could be
possible...in v7 CALL isn't a compiled statement, and so table scans for
sysprocedures, and sysprocparms are needed on every call. This stops in
v8, since call is compiled, and so we can use the package cache.

Or do you think the value just failed to reset?

andreyp#Antispam@mapsitnA#it4profit.com wrote:
DB2 7.2 EE fixpack 10a

Monitoring time:

Last reset timestamp = 08/12/2003 13.13.33.298835
Snapshot timestamp = 08/12/2003 13.33.49.996443

Table snapshot

Table Schema = SYSIBM
Table Name = SYSPROCPARMS
Table Type = Catalog
Rows Read = 148058842
Rows Written = 0
Overflows = 0
Page Reorgs = 0

30 * 60 = 1800 sec
82255 rows per second

Any comments/ideas from ibm-team?

Andy


Nov 12 '05 #2
Ian
andreyp#Antispam@mapsitnA#it4profit.com wrote:
DB2 7.2 EE fixpack 10a

Monitoring time:

Last reset timestamp = 08/12/2003 13.13.33.298835
Snapshot timestamp = 08/12/2003 13.33.49.996443

Table snapshot

Table Schema = SYSIBM
Table Name = SYSPROCPARMS
Table Type = Catalog
Rows Read = 148058842
Rows Written = 0
Overflows = 0
Page Reorgs = 0


Have you run RUNSTATS on the catalog (SYSIBM.*) tables?


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #3
sorry, but my previous post was ignored. Look:

This is part of "call procedure" statement

SELECT A.PROCSCHEMA, A.PROCNAME, A.PARMNAME, A.TYPESCHEMA, A.TYPENAME,
CASE WHEN TYPENAME = 'VARGRAPHIC' THEN A.LENGTH/2 ELSE A.LENGTH END,
A.SCALE,
A.PARM_MODE, A.ORDINAL, A.CODEPAGE
FROM "SYSIBM".SYSPROCPARMS A, "SYSIBM".SYSPROCEDURES B
WHERE

B.PROCSCHEMA = 'SCHEMA'AND B.PROCNAME = 'PROCNAME'

AND A.SPECIFICNAME = B.SPECIFICNAME AND A.PROCSCHEMA = B.PROCSCHEMA AND
B.PARM_COUNT = 1
We have near 14000 rows in first table and 3200 in second. This sql is not

optimal when explain because no indexes. May be rewrite to use index

...
WHERE

A.PROCSCHEMA = 'SCHEMA'AND A.PROCNAME = 'PROCNAME'
...

?

Andy

Nov 12 '05 #4
Andy,

You are free to open a PMR on this problem. But the preferred solution
is to go to V8 where CALL has been addressed.
The next fixpack where anything can happen is FP12.
But given where V7 is in it's lifecycle it is not advised to add fixes
for problems that are not impeding with correctness or stability. It
just adds too much instability.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #5

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

Similar topics

2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
5
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
45
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
28
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and...
11
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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...

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.