Unix Technical Forum

sql tracing and logging

This is a discussion on sql tracing and logging within the Informix forums, part of the Database Server Software category; --> The software I use came bundled with Informix and I would like to know how to trace which tables ...


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, 10:28 AM
mc4u
 
Posts: n/a
Default sql tracing and logging

The software I use came bundled with Informix and I would like to know
how to trace which tables the data is stored in from any given screen
in the application. For example, our support group informed me that
they ran a trace on the screen in question and they referenced only one
table. However, there are columns in this particular screen of the
application which do not belong to the table. Any suggestions on how to
trace or informix logging would be helpful.
Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:28 AM
Jonathan Leffler
 
Posts: n/a
Default Re: sql tracing and logging

mc4u wrote:
> The software I use came bundled with Informix and I would like to know
> how to trace which tables the data is stored in from any given screen
> in the application. For example, our support group informed me that
> they ran a trace on the screen in question and they referenced only one
> table. However, there are columns in this particular screen of the
> application which do not belong to the table. Any suggestions on how to
> trace or informix logging would be helpful.


Which version of IDS? Indeed, is the DBMS you're using IDS, or is it
XPS or OnLine or SE? What language is the application written in?
Platform?

Options to consider include:
* Dynamic SET EXPLAIN - requires IDS 9.40 or later.
* SQLIDEBUG - ideally requires sqliprint, which you may or may not have.
* I-Spy - requires an extra product and some configuration.
* Audit - ON-Audit, ON-ShowAudit; least informative, but would tell
you which tables are in use.
* DB-Schema - would show you the database structure. Add row counts
(UPDATE STATISTICS) and you'd be able to track some activity.

There are probably other options too - network snooping is tantamount to
using SQLIDEBUG without sqliprint, but would probably have less impact
on the system, but only works for network connections.

--
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 11:02 AM.


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