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 > explain help.....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-05, 19:23
db1db2 db1db2 is offline
Registered User
 
Join Date: Nov 2005
Posts: 24
explain help.....

Hi all,

I have an input file with a single sql statement. I want to explain it.
can you please give me the command.

Is it db2expln -d (databasename) - f (inputfilename) -g ???

can i have more than one sql statement in the input file?

my environment is

AIX 5.3, DB2 8.2

Thanks,
DF
Reply With Quote
  #2 (permalink)  
Old 12-05-05, 11:32
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
db2expln -d datbase -t -stmtfile ./y -g -terminator ";" has worked for me; I have the SQL statement, terminated by ";" in file y of current directory; you get other options in Admin Guide: Performance. I find visual explain from Control center to be very useful.
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 12-05-05, 23:06
db1db2 db1db2 is offline
Registered User
 
Join Date: Nov 2005
Posts: 24
Thanks..... It worked for me.
Some how visual explain doesnt show on our control center.
Does it require a das running on the server?

Anyways, thanks a lot for the reply.

Regards,
RP
Reply With Quote
  #4 (permalink)  
Old 12-06-05, 01:02
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Some of the functions in the Control Center require the Administrative Server (DAS) to run on the database server.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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