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 > Jdbc, metadata slowly!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-05-06, 04:07
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Jdbc, metadata slowly!

Hi!
I have DB2 Udb (FP13) and my problem is the slowest metadata capture from schema, especialy the method "getExportedKeys".
I check every admin parameter but all are ok, I have no idea!

Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-05-06, 08:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Can you give a more detailed accounting of your problem. Also include your
DB2 OS. Maybe if you gave code snippets of where you problem is...

Andy
Reply With Quote
  #3 (permalink)  
Old 09-05-06, 08:37
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
OS is Linux (Suse Enterprise 9) with 64 bit instance ( cpu amd Opteron) and the dbms is DB2 Udb ESE with last fix pak (13).
This problem doesn't verify on DB2 Udb fix pak 8 with instance 32 bit...

The metadata capture go slowly especially in "getExportedKeys" method..i look some redbook and I make a parameters comparision with the healthy dbms without solution...
Reply With Quote
  #4 (permalink)  
Old 09-05-06, 08:54
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Is it any faster if you query the catalog views directly?

Andy
Reply With Quote
  #5 (permalink)  
Old 09-05-06, 09:08
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Unfortunatly the software company must use driver (type 4) with jcc connection, this is the only way to capture metadata and builds the java objects!!
Aniway all is fast except the method "getExportedKeys" for the exported foreign key..
Reply With Quote
  #6 (permalink)  
Old 09-05-06, 09:29
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
So,

1) it runs fine from 8.1.8 32 bit
2) it runs "slow" on 8.1.13 64 bit.
3) you cannot play with the code to determine if there is a problem there.

Are you running this on the servers?

Andy
Reply With Quote
  #7 (permalink)  
Old 09-05-06, 09:52
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Your summary is correct!
No because I'm using standard and minimal code, I know jdbc well enough...
I'm sure that this problem is on DB2 server.
I tried to use the "Configuration Advisor" and manually modify the parameter values without saw change...
Reply With Quote
  #8 (permalink)  
Old 09-05-06, 09:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Are you running this on the DB2 server or from a workstation?

Andy
Reply With Quote
  #9 (permalink)  
Old 09-05-06, 10:06
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Yes i'm working from remote client (Windows XP 32 bit) with my jcc Ibm driver and license and Sun 1.4.2 VM..
Reply With Quote
  #10 (permalink)  
Old 09-05-06, 13:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Have you tried the IBM Java JRE?

Andy
Reply With Quote
  #11 (permalink)  
Old 09-06-06, 02:48
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Yes, in my client!
Reply With Quote
  #12 (permalink)  
Old 09-06-06, 08:46
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Great! I resolved following these steps:

- turn on the trace of jdbc jcc driver
- see what package db2 try to use with hight time..
- bind of the package *.bnd (in my situation db2schema.bnd)


Now my DB2 8.2.6 is fast!!

aniway thanks ARWinner!
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