Unix Technical Forum

How to trace ODBC connection?

This is a discussion on How to trace ODBC connection? within the Informix forums, part of the Database Server Software category; --> Hi all, Most of our applicatoins were developed in Windows/Web platform and they are accessing my database via ODBC ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 08:02 PM
miyaki
 
Posts: n/a
Default How to trace ODBC connection?


Hi all,

Most of our applicatoins were developed in Windows/Web
platform and they are accessing my database via ODBC
type of connection. I found that it's very difficult
to trace the problem caused by the ODBC connection,
especially from the Web based application. From the
output of onstat -u, i can only see the tty and login
id. However, the tty and login id is the same for all
the connections from a particular Web application. For
instance, i have over 100 concurrent users using a web
application that connected to my database via a Web
server. During that time, a LONG Transaction occured
which is caused by one of the 100 concurrent users. In
this case, I'm not able to catch the the real user
that causing the problem as the output of onstat -u is
showing the same login id and tty. I believe some of
you guys also experience this type of situation
before. Hence, apppreciate that if you could share
with me how you handle this type of problem.

BTW, here's some info pertaining to my database
server.

OS = Solaris 2.7 (x86 platform)
IDS = 7.31UC2

Thanks,
Miyaki

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 08:03 PM
Emmon Simbo
 
Posts: n/a
Default Re: How to trace ODBC connection?

Hi

Firstly, what type of ODBC connection are you using here. If using the
OpenLink ODBC driver for Informix, which is an alternative here to
your problem, there are two ways of tracing ODBC calls, either via the
Driver Manager trace option which is available via the ODBC
Administrator or tracing what the actual Driver is trying to
accomplish, which is done by the OpenLink Client Configurator utility.
You can then see what is been sent to the Database via ODBC.

HTH
Regard
Emmon Simbo
Technical Services Manager (UK)
http://www.openlinksw.com

miyaki <lcib@yahoo.com> wrote in message news:<bv245a$f5m$1@terabinaries.xmission.com>...
> Hi all,
>
> Most of our applicatoins were developed in Windows/Web
> platform and they are accessing my database via ODBC
> type of connection. I found that it's very difficult
> to trace the problem caused by the ODBC connection,
> especially from the Web based application. From the
> output of onstat -u, i can only see the tty and login
> id. However, the tty and login id is the same for all
> the connections from a particular Web application. For
> instance, i have over 100 concurrent users using a web
> application that connected to my database via a Web
> server. During that time, a LONG Transaction occured
> which is caused by one of the 100 concurrent users. In
> this case, I'm not able to catch the the real user
> that causing the problem as the output of onstat -u is
> showing the same login id and tty. I believe some of
> you guys also experience this type of situation
> before. Hence, apppreciate that if you could share
> with me how you handle this type of problem.
>
> BTW, here's some info pertaining to my database
> server.
>
> OS = Solaris 2.7 (x86 platform)
> IDS = 7.31UC2
>
> Thanks,
> Miyaki
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> sending to informix-list

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 08:03 PM
Netrista Khatam
 
Posts: n/a
Default Re: How to trace ODBC connection?

miyaki <lcib@yahoo.com> wrote in message news:<bv245a$f5m$1@terabinaries.xmission.com>...
> Hi all,
>
> Most of our applicatoins were developed in Windows/Web
> platform and they are accessing my database via ODBC
> type of connection. I found that it's very difficult
> to trace the problem caused by the ODBC connection,
> especially from the Web based application. From the
> output of onstat -u, i can only see the tty and login
> id. However, the tty and login id is the same for all
> the connections from a particular Web application. For
> instance, i have over 100 concurrent users using a web
> application that connected to my database via a Web
> server. During that time, a LONG Transaction occured
> which is caused by one of the 100 concurrent users. In
> this case, I'm not able to catch the the real user
> that causing the problem as the output of onstat -u is
> showing the same login id and tty. I believe some of
> you guys also experience this type of situation
> before. Hence, apppreciate that if you could share
> with me how you handle this type of problem.
>
> BTW, here's some info pertaining to my database
> server.
>
> OS = Solaris 2.7 (x86 platform)
> IDS = 7.31UC2
>
> Thanks,
> Miyaki
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> sending to informix-list



Hello Miyaki,

Theoretically, you should be able to trace the ODBC calls by
activating tracing with the driver manager. For instance, these
instructions would help you on Windows:


A. Open your ODBC Data Sources utility.
B. Enable tracing on the tracing tab.
C. Recreate the error condition.
D. Disable tracing on the tracing tab.
E. Locate the file indicated in the log file path on the tracing tab.

That said, this could seriously impact performance. It is likely that
you would also generate a file running into the thousands of pages.

At this point, are you altogether certain that the problem stems from
specific ODBC API calls or SQL statements? Could it be a kernel tuning
revealed by heavy load or some other situation for which a trace would
not be needed? In general, what is the error message or defining
symptoms of the problem? What appears in the Informix error log?

Netrista Khatam
Technical Services Manager
OpenLink Software
http://www.openlinksw.com
Product Weblogs:
Virtuoso: http://www.openlinksw.com/weblogs/virtuoso
UDA: http://www.openlinksw.com/weblogs/uda
Universal Data Access & Virtual Database Technology
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 08:04 PM
Andy Kent
 
Posts: n/a
Default Re: How to trace ODBC connection?

Perhaps onstat -g sql or onstat -g ses may help. At least that will
show you the SQL statement that preceded the long transaction
rollback.

Andy


miyaki <lcib@yahoo.com> wrote in message news:<bv245a$f5m$1@terabinaries.xmission.com>...
> Hi all,
>
> Most of our applicatoins were developed in Windows/Web
> platform and they are accessing my database via ODBC
> type of connection. I found that it's very difficult
> to trace the problem caused by the ODBC connection,
> especially from the Web based application. From the
> output of onstat -u, i can only see the tty and login
> id. However, the tty and login id is the same for all
> the connections from a particular Web application. For
> instance, i have over 100 concurrent users using a web
> application that connected to my database via a Web
> server. During that time, a LONG Transaction occured
> which is caused by one of the 100 concurrent users. In
> this case, I'm not able to catch the the real user
> that causing the problem as the output of onstat -u is
> showing the same login id and tty. I believe some of
> you guys also experience this type of situation
> before. Hence, apppreciate that if you could share
> with me how you handle this type of problem.
>
> BTW, here's some info pertaining to my database
> server.
>
> OS = Solaris 2.7 (x86 platform)
> IDS = 7.31UC2
>
> Thanks,
> Miyaki
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> sending to informix-list

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 06:21 AM.


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