Re: explain for a dynamic sql

Re: explain for a dynamic sql

 

  

May I suggest to use the graphic command center and let him do the job by
hitting on the explain tab .
cheers , Friday is tomorrow
amr

Bonne reception , Best regards, Mit freundlichen Grüssen , ????? ,
Udv?zlettel , ÃáÓ?ã Úáíßã





"rao" <db2udbdba-ezmlmshield-x1955441.[Email address protected]
30-08-07 15:33

To
"LazyDBA Discussion" <[Email address protected]
cc

Subject
explain for a dynamic sql






db2 version 8.2.3
I am enclosing a sample query

C:\>db2 explain snapshot for
SELECT C.DISCLOSURE_ APPROVAL_ STATUS_CD, C.PLACEMENT_AGREEMENT_DT,
C.ADOPTIVE_ PLACEMENT_ STATUS_CD, C.ADOPTION_ ID,C.CASE_ ID,
C.CLIENT_ID,C.ADOPTION_PLAN_ BEGIN_DT FROM TB_ADOPTION C
WHERE C.CLIENT_ID = :ai_client_id;

DB21034E The command was processed as an SQL statement because it
was not a valid Command Line Processor command. During SQL processing it
returned:SQL0104N An unexpected token "." was found
following "ASE_ID,C.CLIENT_ ID,C".
Expected tokens may include: "JOIN <joined_table> ". SQLSTATE=42601

any suggestions on further approach, I wrote an utility to extract
the sql code from the powerbuilder source code.I need to analyze the
sql code to identify performance chokeups, most of the chokeups are
as a result of improper indexes and excessive sort times. I need a
way to analyze dynamic sql statements,once I do so I can identify the
resultant object screen on the application.



---------------------------------------------------------------------
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