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 > explain with out "dbaccess"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-03, 11:01
kimir kimir is offline
Registered User
 
Join Date: Feb 2003
Location: Poland Warsaw
Posts: 1
explain with out "dbaccess"

Hello.
Can I do "explain" with out dbaccess?

Is any shell commands or OS settings for this?
Reply With Quote
  #2 (permalink)  
Old 02-07-03, 12:49
eherber eherber is offline
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
You can embedd the dbaccess-call in
a shell script like this:

dbaccess stores7 <<EOF
set explain on;
select * from state;
EOF


With IDS 9.30 you can also avoid the execution
of the query, only getting the explain output:

dbaccess stores7 <<EOF
set explain on avoid_execute;
select * from state;
EOF

But you have to transfer your SQL statement to the databaseserver
somehow. This could be done via dbaccess or for example
thru an esql/c program.

If you want to trace a specific client, you might consider
setting the SQLIDEBUG variable and using
'sqliprint' from the CSDK to analyze the binary output
file.

HTH.

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
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