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 > Debugging Stored Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-06, 01:38
nikhilbhavsar nikhilbhavsar is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
Question Debugging Stored Procedure

Hi Frnds ,
I want to Debug a stored procedure .
I am using db2 8.0.
I started the distrubuted debugger on port 4553

I get following exception :

VL000039 - Debug started.
VL000039 - Exception occurred while debugging:
[IBM][CLI Driver][DB2] SQL0440N No authorized routine named "DB2DEBUG.CREATE_SESSION" of type "" having compatible arguments was found. SQLSTATE=42884

Friends , please help me ..
Reply With Quote
  #2 (permalink)  
Old 02-03-06, 03:06
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
debug

have you followed the procedure from infocenter - prepare for debug -
create debug tables - populate debug tables .. ??
classpath correctly set ?
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 02-07-06, 08:00
nikhilbhavsar nikhilbhavsar is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
Quote:
Originally Posted by przytula
have you followed the procedure from infocenter - prepare for debug -
create debug tables - populate debug tables .. ??

I using Db2 version 8.0
I compiled the Stored procedure for Debug mode using DB2 Developement center.
Then when clicked on Debug option , i get the mentioned error.


classpath correctly set ?
How to check this ???
Reply With Quote
  #4 (permalink)  
Old 02-08-06, 02:55
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
debug

__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #5 (permalink)  
Old 03-01-07, 05:11
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
How about SQL stored procedure debugging?

What is the procedure to follow for SQL SP?

Thanks in advance.
Reply With Quote
  #6 (permalink)  
Old 03-01-07, 05:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
For SQL Procedures, you have to 'Build for Debug' when creating the stored procs from Development Centre or Developer Workbench. (AFAIK, you cannot do this on command line)

Then 'Run for Debug' and step through the code. Developer workbench has more options for debug than its predecessor.

Open the tool you are using and explore the tool bar .. You should be able to figure out quiet easily ..

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 03-05-07, 01:08
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
I have downloaded 'Developer Workbench' to debug a SP. However, I'm not able to effectively debug...

What I'm looking for with respect to debugging is...
1. Trace the SP step by step, for the values with which it is called
2. See where it fails and get the corresponding SQL code

Is this possible? If so, can I have the steps to be followed.

BTW, I've already followed the tutorial provided with DWB and also the document on 'DB2 Developer Workbench, Part 2: Developer Workbench and stored procedures' to pursue debugging effectively, but to no avail.

The platform is Windows, DB2 UDB V9 and DB2 Developer Workbench.

Thanks in advance.
Reply With Quote
  #8 (permalink)  
Old 03-05-07, 02:39
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
This is possible with dwb
will make some screenshots
but in the object explorer right click and select debug....
will come back
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
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