Unix Technical Forum

RUNSTATS and JDBC

This is a discussion on RUNSTATS and JDBC within the DB2 forums, part of the Database Server Software category; --> Calling a RUNSTATS statement through JDBC fails due to a syntax error. I guess that this is because RUNSTATS ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:59 PM
Gerald Khin
 
Posts: n/a
Default RUNSTATS and JDBC

Calling a RUNSTATS statement through JDBC fails due to a syntax error.
I guess that this is because RUNSTATS is no SQL. JNI is not an option
for me.

I wonder if there is some package or stored procedure (like the
DBMS_STATS package in Oracle) that I could use to compute statistics?

Gerald
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 04:02 PM
Eugene
 
Posts: n/a
Default Re: RUNSTATS and JDBC

g.khin@ids-scheer.de (Gerald Khin) wrote in message news:<4c8399c9.0311060525.35480a0c@posting.google. com>...
> Calling a RUNSTATS statement through JDBC fails due to a syntax error.
> I guess that this is because RUNSTATS is no SQL. JNI is not an option
> for me.
>
> I wonder if there is some package or stored procedure (like the
> DBMS_STATS package in Oracle) that I could use to compute statistics?
>
> Gerald


You can create a DB2 stored procedure written in C that calls
db2Runstats from DB2 Administrative API. Then you call this DB2 stored
proc from your JDBC application.

-Eugene
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:52 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com