dbTalk Databases Forums  

Switching on debug mode of sql sp

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Switching on debug mode of sql sp in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
4.spam@mail.ru
 
Posts: n/a

Default Switching on debug mode of sql sp - 10-05-2007 , 07:50 AM






Hello, all.

db2 v9.

Can I switch on debug_mode flag of sql stored procedure created
initially without keeping debug info without dropping / recreating it?
I see the SYSPROC.PSMD_SET_DEBUGINFO in the system catalog, but this
procedure is undocumented.
What it is the procedure?
May be it can help me?

Sincerely,
Mark Barinstein.


Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: Switching on debug mode of sql sp - 10-05-2007 , 08:17 AM






4.spam (AT) mail (DOT) ru wrote:
Quote:
Hello, all.

db2 v9.

Can I switch on debug_mode flag of sql stored procedure created
initially without keeping debug info without dropping / recreating it?
I see the SYSPROC.PSMD_SET_DEBUGINFO in the system catalog, but this
procedure is undocumented.
What it is the procedure?
May be it can help me?

Sincerely,
Mark Barinstein.

Mark,

You need to drop and recreate. Similarly to compiling e.g. C code in
debug mode an SQL Procedure will be instrumented with a lot of extra
code (which will make it slower).

As noted in the other post plans are to make DROP/CREATE less invasive
rather than providing point solutions.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab


Reply With Quote
  #3  
Old   
4.spam@mail.ru
 
Posts: n/a

Default Re: Switching on debug mode of sql sp - 10-05-2007 , 08:41 AM



On Oct 5, 5:17 pm, Serge Rielau <srie... (AT) ca (DOT) ibm.com> wrote:
Quote:
4.s... (AT) mail (DOT) ru wrote:
Hello, all.

db2 v9.

Can I switch on debug_mode flag of sql stored procedure created
initially without keeping debug info without dropping / recreating it?
I see the SYSPROC.PSMD_SET_DEBUGINFO in the system catalog, but this
procedure is undocumented.
What it is the procedure?
May be it can help me?

Sincerely,
Mark Barinstein.

Mark,

You need to drop and recreate. Similarly to compiling e.g. C code in
debug mode an SQL Procedure will be instrumented with a lot of extra
code (which will make it slower).

As noted in the other post plans are to make DROP/CREATE less invasive
rather than providing point solutions.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Thanks, Serge.



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.