RE: RE: Performance static vs dinamic sql

RE: RE: Performance static vs dinamic sql

 

  

Don't remember how to create Executation plan for a package (i.e. when a sql
is in Stored Procedure)?

I created executation plan for dynamic SQL, it looks very good - all Index
scan.



-----Original Message-----
From: paul [mailto:db2udbdba-ezmlmshield-x72512374.[Email address protected]
Sent: Monday, December 11, 2006 11:57 AM
To: LazyDBA Discussion
Subject: Fwd: RE: Performance static vs dinamic sql

Sankar,

Please generate an explain for both and that should give you a hint.

PL

> To: "LazyDBA Discussion" <[Email address protected]
> From: "Kale Abhishek \(IT\) " <db2udbdba-ezmlmshield-x9002453.[Email
address protected]
> Date: Mon, 11 Dec 2006 11:32:51 -0500
> Subject: RE: Performance static vs dinamic sql
>
> Hi Sankar,
>
> Whats the order of execution of this SQL's. When I say this I mean which
> one do you execute first?
>
> Regards,
> Abhishek.
>
> -----Original Message-----
> From: Padhi Sankar
> [mailto:db2udbdba-ezmlmshield-x53008227.[Email address protected]
> Sent: Monday, December 11, 2006 10:01 PM
> To: LazyDBA Discussion
> Subject: Performance static vs dinamic sql
>
> Any thoughts why stored procedure taking longer than dynamic SQL:
>
> I'm running a SQL in a stored procedure its is taking 15 min. and the
> same SQL as dynamic statement takes 2 min.
>
>
> I dropped and recreated Stored procedure - nohelp.
>
>
> Environment: db2 8.1 Fixpak9 AIX 5.3.
>
>
>
> ---------------------------------------------------------------------
> TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a
> dba job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com
> To unsubscribe: http://www.lazydba.com/unsubscribe.html
> --------------------------------------------------------
>
> NOTICE: If received in error, please destroy and notify sender. Sender
does not intend to waive confidentiality or privilege. Use of this email is
prohibited when received in error.
>
>
> ---------------------------------------------------------------------
> TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
> To post a dba job: http://jobs.lazydba.com
> To Subscribe : http://www.LazyDBA.com
> To unsubscribe: http://www.lazydba.com/unsubscribe.html
>



---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html

DB2 & UDB email list listserv db2-l LazyDBA home page