If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > CLI and Java

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-04, 08:01
mrkarlsruhe mrkarlsruhe is offline
Registered User
 
Join Date: Sep 2003
Location: Germany
Posts: 19
CLI and Java

Hi!

Is it possbile to start and analyze a CLI or a JDBC trace with java?
Are there java methods to get the same informations like a trace do?

My problem is, that a cli trace shows a lot of informations about codepages, e.g.:

Application Codepage=850, Database Codepage=923, Char Send/Recv Codepage=850, Graphic Send/Recv Codepage=850, Application Char Codepage=850, Application Graphic Codepage=850

I want to get the same informations with java automatically.
Reply With Quote
  #2 (permalink)  
Old 02-24-04, 09:14
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I am not sure exactly what you want, but you can execute CLP commands from java. There is a sample of how to to it located at:
http://www.developer.ibm.com/tech/sampdb2.html
it is "runstats.zip". Basically you run the java application from the DB2 command window. This allows for "executing" the CLP commands from the java app.

HTH

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On