Unix Technical Forum

Performance problem in db2

This is a discussion on Performance problem in db2 within the DB2 forums, part of the Database Server Software category; --> I am now developing a java program connected to db2 via jdbc, and the db2 server(version 8.2) is installed ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:50 AM
Liang Zhang
 
Posts: n/a
Default Performance problem in db2

I am now developing a java program connected to db2 via jdbc, and the db2
server(version 8.2) is installed in a visual machine running also on my
computer, however, i always found that the java program suspended when
sending a request to drop a stored procedure, I don't know why, and now i am
really bored with this issue, can someone help me? thanks
--

Best Regards

Liang Zhang

Developer
SAP Labs China

T: +86 21 61006699-7775
F: +86 21 65984520
Email liang.zhang@sap.com

SAP LABS CHINA : INNOVATE THE FUTURE


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:50 AM
Liang Zhang
 
Posts: n/a
Default Re: Performance problem in db2

And the dropping sql is very simple: DROP TESTU.TESTPROC, it did work in
some early time, but now it always suspends, i have rebooted the VM again an
again, i cannot imagine errors can occur here......

--

Best Regards

Liang Zhang

Developer
SAP Labs China

T: +86 21 61006699-7775
F: +86 21 65984520
Email liang.zhang@sap.com

SAP LABS CHINA : INNOVATE THE FUTURE
"Liang Zhang" <liang.zhang@sap.com> wrote in message
news:e2k4hf$54k$1@news.sap-ag.de...
>I am now developing a java program connected to db2 via jdbc, and the db2
>server(version 8.2) is installed in a visual machine running also on my
>computer, however, i always found that the java program suspended when
>sending a request to drop a stored procedure, I don't know why, and now i
>am really bored with this issue, can someone help me? thanks
> --
>
> Best Regards
>
> Liang Zhang
>
> Developer
> SAP Labs China
>
> T: +86 21 61006699-7775
> F: +86 21 65984520
> Email liang.zhang@sap.com
>
> SAP LABS CHINA : INNOVATE THE FUTURE
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:51 AM
Kiran
 
Posts: n/a
Default Re: Performance problem in db2

Hi Liang,
The SQL for dropping an Procedure is
DROP PROCEDURE ESTU.TESTPROC

And if you have multiple stored procedure with same names, you may
think of dropping using SPECIFIC name (if you have given specific name
while creating the stored procedure) or giving the full signture of
stored procedure
DROP SPECIFIC PROCEDURE specific_name
or using signature.

DROP PROCEDURE ESTU.TESTPROC(INTEGER)

I have not sure why the machine hangs You can always troubleshoot
JDBC programs by taking a JDBC trace
http://publib.boulder.ibm.com/infoce...d/c0007959.htm

Now when you analyse the trace you will get a very good knowlege of
what exactly is happening between you Java runtime and DB2.

Since your machine is in VM, you can actually verify the SQL in the
server or client db2 command line/ control center and then issue the
same in Java Program.

Regards,
Kiran Nair


Liang Zhang wrote:

> And the dropping sql is very simple: DROP TESTU.TESTPROC, it did work in
> some early time, but now it always suspends, i have rebooted the VM again an
> again, i cannot imagine errors can occur here......
>
> --
>
> Best Regards
>
> Liang Zhang
>
> Developer
> SAP Labs China
>
> T: +86 21 61006699-7775
> F: +86 21 65984520
> Email liang.zhang@sap.com
>
> SAP LABS CHINA : INNOVATE THE FUTURE
> "Liang Zhang" <liang.zhang@sap.com> wrote in message
> news:e2k4hf$54k$1@news.sap-ag.de...
> >I am now developing a java program connected to db2 via jdbc, and the db2
> >server(version 8.2) is installed in a visual machine running also on my
> >computer, however, i always found that the java program suspended when
> >sending a request to drop a stored procedure, I don't know why, and now i
> >am really bored with this issue, can someone help me? thanks
> > --
> >
> > Best Regards
> >
> > Liang Zhang
> >
> > Developer
> > SAP Labs China
> >
> > T: +86 21 61006699-7775
> > F: +86 21 65984520
> > Email liang.zhang@sap.com
> >
> > SAP LABS CHINA : INNOVATE THE FUTURE
> >


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:51 AM
Liang Zhang
 
Posts: n/a
Default Re: Performance problem in db2

Hi Kiran,
Thanks a lot, actually i am a new guy in developing db2 applications, i
will try your suggestions, i hope it works

--

Best Regards

Liang Zhang

Developer
SAP Labs China

T: +86 21 61006699-7775
F: +86 21 65984520
Email liang.zhang@sap.com

SAP LABS CHINA : INNOVATE THE FUTURE
"Kiran" <kiranhariharan@gmail.com> wrote in message
news:1145939365.099200.153640@t31g2000cwb.googlegr oups.com...
> Hi Liang,
> The SQL for dropping an Procedure is
> DROP PROCEDURE ESTU.TESTPROC
>
> And if you have multiple stored procedure with same names, you may
> think of dropping using SPECIFIC name (if you have given specific name
> while creating the stored procedure) or giving the full signture of
> stored procedure
> DROP SPECIFIC PROCEDURE specific_name
> or using signature.
>
> DROP PROCEDURE ESTU.TESTPROC(INTEGER)
>
> I have not sure why the machine hangs You can always troubleshoot
> JDBC programs by taking a JDBC trace
> http://publib.boulder.ibm.com/infoce...d/c0007959.htm
>
> Now when you analyse the trace you will get a very good knowlege of
> what exactly is happening between you Java runtime and DB2.
>
> Since your machine is in VM, you can actually verify the SQL in the
> server or client db2 command line/ control center and then issue the
> same in Java Program.
>
> Regards,
> Kiran Nair
>
>
> Liang Zhang wrote:
>
>> And the dropping sql is very simple: DROP TESTU.TESTPROC, it did work in
>> some early time, but now it always suspends, i have rebooted the VM again
>> an
>> again, i cannot imagine errors can occur here......
>>
>> --
>>
>> Best Regards
>>
>> Liang Zhang
>>
>> Developer
>> SAP Labs China
>>
>> T: +86 21 61006699-7775
>> F: +86 21 65984520
>> Email liang.zhang@sap.com
>>
>> SAP LABS CHINA : INNOVATE THE FUTURE
>> "Liang Zhang" <liang.zhang@sap.com> wrote in message
>> news:e2k4hf$54k$1@news.sap-ag.de...
>> >I am now developing a java program connected to db2 via jdbc, and the
>> >db2
>> >server(version 8.2) is installed in a visual machine running also on my
>> >computer, however, i always found that the java program suspended when
>> >sending a request to drop a stored procedure, I don't know why, and now
>> >i
>> >am really bored with this issue, can someone help me? thanks
>> > --
>> >
>> > Best Regards
>> >
>> > Liang Zhang
>> >
>> > Developer
>> > SAP Labs China
>> >
>> > T: +86 21 61006699-7775
>> > F: +86 21 65984520
>> > Email liang.zhang@sap.com
>> >
>> > SAP LABS CHINA : INNOVATE THE FUTURE
>> >

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:51 AM
Knut Stolze
 
Posts: n/a
Default Re: Performance problem in db2

Kiran wrote:

> Hi Liang,
> The SQL for dropping an Procedure is
> DROP PROCEDURE ESTU.TESTPROC
>
> And if you have multiple stored procedure with same names, you may
> think of dropping using SPECIFIC name (if you have given specific name
> while creating the stored procedure)


If you haven't assigned explicit specific names, then DB2 will generate them
for you. You can look them up in the catalog
(SYSCAT.ROUTINES.SPECIFICNAME).

>> And the dropping sql is very simple: DROP TESTU.TESTPROC, it did work in
>> some early time, but now it always suspends, i have rebooted the VM again
>> an again, i cannot imagine errors can occur here......


What does "suspend" mean? Does it just hang? If so, it sounds very much
like a locking issue.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 07:59 AM
Liang Zhang
 
Posts: n/a
Default Re: Performance problem in db2

Yeah, it just hangs, and my program is waiting for the response from db2,
but it never returns the response. and when i use sql script like "DROP
PROCEDURE ESTU.TESTPROC
", it works well, it seems a specific name problem, i must use the specific
name to drop the stored procedure when the procedure is created with a
specific name, i am not very clear about this.

--

Best Regards

Liang Zhang

Developer
SAP Labs China

T: +86 21 61006699-7775
F: +86 21 65984520
Email liang.zhang@sap.com

SAP LABS CHINA : INNOVATE THE FUTURE
"Knut Stolze" <stolze@de.ibm.com> wrote in message
news:e2kqtf$gb0$2@lc03.rz.uni-jena.de...
> Kiran wrote:
>
>> Hi Liang,
>> The SQL for dropping an Procedure is
>> DROP PROCEDURE ESTU.TESTPROC
>>
>> And if you have multiple stored procedure with same names, you may
>> think of dropping using SPECIFIC name (if you have given specific name
>> while creating the stored procedure)

>
> If you haven't assigned explicit specific names, then DB2 will generate
> them
> for you. You can look them up in the catalog
> (SYSCAT.ROUTINES.SPECIFICNAME).
>
>>> And the dropping sql is very simple: DROP TESTU.TESTPROC, it did work in
>>> some early time, but now it always suspends, i have rebooted the VM
>>> again
>>> an again, i cannot imagine errors can occur here......

>
> What does "suspend" mean? Does it just hang? If so, it sounds very much
> like a locking issue.
>
> --
> Knut Stolze
> DB2 Information Integration Development
> IBM Germany



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 07:59 AM
Knut Stolze
 
Posts: n/a
Default Re: Performance problem in db2

Liang Zhang wrote:

> Yeah, it just hangs, and my program is waiting for the response from db2,


Which other connections to the database exist? And what are they doing
(what kind of database operations)?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
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 05:59 AM.


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