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 > Informix > Informix - explain plan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-11, 04:27
donose.mihai donose.mihai is offline
Registered User
 
Join Date: Apr 2011
Posts: 19
Informix - explain plan

Informix has a way to generate the explain plan, but the result is saved to a file on server. Is any way to get the explain plan back as Result Set over a jdbc connection ?

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-10-11, 15:12
T.Baron T.Baron is offline
Registered User
 
Join Date: Oct 2011
Posts: 1
Hi,

I'm not sure about directing the output to a result set, however you you specify the output file location and name using SET EXPLAIN FILE TO, eg:
Code:
SET EXPLAIN FILE TO '/tmp/expl/sqexpl.out'
But you will obviously need to have write permissions into the target directory or the file will not be written and an error will be returned
Reply With Quote
  #3 (permalink)  
Old 10-10-11, 19:43
douglawry douglawry is offline
Registered User
 
Join Date: Feb 2011
Location: London
Posts: 6
This is possible, but you have to be on IDS 11.70: see the EXPLAIN_SQL function, which IBM Data Studio and AGS Server Studio use to return an XML query plan into a BLOB before displaying it visually.

Regards,
Doug Lawry
www.oninitgroup.com
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