Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2008, 08:26 PM
Dan van Ginhoven
 
Posts: n/a
Default connect to db2 9.5 server slow

Hi!

I have installed a new Db2 V9.5 fp1 Linux 64 bit with a partioned database.

When I connect to the database using DB2Visualizer on Windows, that uses db2jcc, it works OK.

Connecting from DB2 Control Center takes 4-5 minutes, but it connects. Opening a table can take 4-5 minutes too.
Connecting thru a Linux DB2 Client also takes 4-5 minutes, but after that table access seems OK.
I compared dbm cfg with a working db2 server but did'nt find any significant differences.

Where do I start looking? Tried to Google, but did'nt find any obvious answers.
Something with the authentication process?

Mvh
/dg


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-29-2008, 08:26 PM
Serge Rielau
 
Posts: n/a
Default Re: connect to db2 9.5 server slow

Dan van Ginhoven wrote:
> Hi!
>
> I have installed a new Db2 V9.5 fp1 Linux 64 bit with a partioned database.
>
> When I connect to the database using DB2Visualizer on Windows, that uses db2jcc, it works OK.
>
> Connecting from DB2 Control Center takes 4-5 minutes, but it connects. Opening a table can take 4-5 minutes too.
> Connecting thru a Linux DB2 Client also takes 4-5 minutes, but after that table access seems OK.
> I compared dbm cfg with a working db2 server but did'nt find any significant differences.
>
> Where do I start looking? Tried to Google, but did'nt find any obvious answers.
> Something with the authentication process?

That's the first place where I would look. Are you using some LDAP
server that DB2 is trying to reach out to? I'm far from being an expert
on thsi but I seem to recall that sometimes the OS tried to reach out to
various authentication services in a specific order. If one of the
remote ones is ahead of the one with the required information these
issues occur.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2008, 08:26 PM
Dan van Ginhoven
 
Posts: n/a
Default Re: connect to db2 9.5 server slow

Thanks Serge.
There is no LDAP server, but I suspect that jdbc uses one authentication metod that works,
and that DB2 CC and cCient uses one that times out after 300 seconds and than tries the other method.
But I don't know if this is DB2 or Linux issue, and where to look for a solution.

/dg

"Serge Rielau" <srielau@ca.ibm.com> wrote in message news:67ons3F2pnrfqU1@mid.individual.net...
> Dan van Ginhoven wrote:
> > Hi!
> >
> > I have installed a new Db2 V9.5 fp1 Linux 64 bit with a partioned database.
> >
> > When I connect to the database using DB2Visualizer on Windows, that uses db2jcc, it works OK.
> >
> > Connecting from DB2 Control Center takes 4-5 minutes, but it connects. Opening a table can take 4-5 minutes too.
> > Connecting thru a Linux DB2 Client also takes 4-5 minutes, but after that table access seems OK.
> > I compared dbm cfg with a working db2 server but did'nt find any significant differences.
> >
> > Where do I start looking? Tried to Google, but did'nt find any obvious answers.
> > Something with the authentication process?

> That's the first place where I would look. Are you using some LDAP
> server that DB2 is trying to reach out to? I'm far from being an expert
> on thsi but I seem to recall that sometimes the OS tried to reach out to
> various authentication services in a specific order. If one of the
> remote ones is ahead of the one with the required information these
> issues occur.
>
> Cheers
> Serge
>
> --
> Serge Rielau
> DB2 Solutions Development
> IBM Toronto Lab



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-02-2008, 05:04 AM
Frank Swarbrick
 
Posts: n/a
Default Re: connect to db2 9.5 server slow

Do you have a firewall blocking access to port 523? It looks like Control
Center first tries to connect to this port, and only later goes to the port
the instance is listening on. So if port 523 is blocked you have a delay
(though not 4 or 5 minutes, in my experience.)

Based on your comment that you have the same issue with a Linux DB2 Client
other than CC makes me think this is *not* the issue, but I just thought I'd
put it out there.

Frank

n 4/29/2008 at 7:48 AM, in message <VGFRj.6709$R_4.5308@newsb.telia.net>,
Dan van Ginhoven<danfan46@hotmail.com> wrote:
> Hi!
>
> I have installed a new Db2 V9.5 fp1 Linux 64 bit with a partioned
> database.
>
> When I connect to the database using DB2Visualizer on Windows, that
> uses db2jcc, it works OK.
>
> Connecting from DB2 Control Center takes 4-5 minutes, but it connects.
> Opening a table can take 4-5 minutes too.
> Connecting thru a Linux DB2 Client also takes 4-5 minutes, but after that


> table access seems OK.
> I compared dbm cfg with a working db2 server but did'nt find any
> significant differences.
>
> Where do I start looking? Tried to Google, but did'nt find any obvious
> answers.
> Something with the authentication process?
>
> Mvh
> /dg

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-02-2008, 05:04 AM
Mark A
 
Posts: n/a
Default Re: connect to db2 9.5 server slow

"Dan van Ginhoven" <danfan46@hotmail.com> wrote in message
news:VGFRj.6709$R_4.5308@newsb.telia.net...
> Hi!
>
> I have installed a new Db2 V9.5 fp1 Linux 64 bit with a partioned
> database.
>
> When I connect to the database using DB2Visualizer on Windows, that uses
> db2jcc, it works OK.
>
> Connecting from DB2 Control Center takes 4-5 minutes, but it connects.
> Opening a table can take 4-5 minutes too.
> Connecting thru a Linux DB2 Client also takes 4-5 minutes, but after that
> table access seems OK.
> I compared dbm cfg with a working db2 server but did'nt find any
> significant differences.
>
> Where do I start looking? Tried to Google, but did'nt find any obvious
> answers.
> Something with the authentication process?
>
> Mvh
> /dg


Make sure that your databases are catalogued with "authentication server".

You can check it with "db2 list db directory".


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-02-2008, 05:04 AM
Dan van Ginhoven
 
Posts: n/a
Default Re: connect to db2 9.5 server slow

Hi!

I believe port 523 is open ( but when can you trust what the firewall people say).

I know that Authentication = SERVER (db2 get dbm cfg)

I also measured that the delay is 240 seconds (4 minutes) every time .
I searched for "anything" with a timeout = 240/4 but didn't find one.
Anyone with Linux expertise know of anything with 240 seconds timeout?
db2diag.log is quiet. (Greatly improved readability in 9.5!!!!)

/dg


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



All times are GMT. The time now is 05:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145