Unix Technical Forum

How can i write a log query sequence?

This is a discussion on How can i write a log query sequence? within the Informix forums, part of the Database Server Software category; --> Hi at all! I need to write in a text file all the query that Informix applied in a ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 11:39 AM
Pablo
 
Posts: n/a
Default How can i write a log query sequence?

Hi at all!
I need to write in a text file all the query that Informix applied in
a database.
I can do that?...and how?

Tnx at all!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 11:40 AM
Jonathan Leffler
 
Posts: n/a
Default Re: How can i write a log query sequence?

Pablo wrote:
> I need to write in a text file all the query that Informix applied in
> a database. I can do that?...and how?


There aren't any simple ways to do that.

You could consider using I-Spy to do the monitoring - it would work.

ON-Audit does not help. ON-Log does not help.

Nominally, you could use SQLIDEBUG and sqlprint; it would include lots
of data too, which would inflate the volume of logging.

Nominally, you could force SET EXPLAIN ON for all sessions - not easy
and very verbose.

If your system doesn't work too hard, you could consider using onstat,
but it would not reliably pick up short-duration statements.

Is this something you want to do for a short time, or a permanent
logging for auditing purposes?

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com