dbTalk Databases Forums  

Capturing the SELECT statement in our Transaction Log for ASA 9.02

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Capturing the SELECT statement in our Transaction Log for ASA 9.02 in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark
 
Posts: n/a

Default Capturing the SELECT statement in our Transaction Log for ASA 9.02 - 09-24-2009 , 07:07 AM






Hello all...we are using the transaction log to view all our
changes to our database. I was just wondering if there was
anyway to capture the SELECT statement in this log whenever
a user selects from the db? Any info would be greatly
appreciated

Reply With Quote
  #2  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Capturing the SELECT statement in our Transaction Log for ASA9.02 - 09-24-2009 , 08:14 AM






SELECTs are not recorded in the transaction log. "It stores all changes
to the database. Inserts, updates, deletes, commits, rollbacks, and
database schema changes are all logged."

Mark wrote:
Quote:
Hello all...we are using the transaction log to view all our
changes to our database. I was just wondering if there was
anyway to capture the SELECT statement in this log whenever
a user selects from the db? Any info would be greatly
appreciated

Reply With Quote
  #3  
Old   
Volker Barth
 
Posts: n/a

Default Re: Capturing the SELECT statement in our Transaction Log for ASA9.02 - 09-24-2009 , 08:19 AM



Mark,

the translog usually only captures modifications, so simple SELECTs are
not logged.
However, you can use the auditing facility to log SELECTs, too.
For SA 11.0.1, here's the DocumentXchange link:

http://dcx.sybase.com/index.php#http...-security.html


HTH
Volker



Mark wrote:
Quote:
Hello all...we are using the transaction log to view all our
changes to our database. I was just wondering if there was
anyway to capture the SELECT statement in this log whenever
a user selects from the db? Any info would be greatly
appreciated

Reply With Quote
  #4  
Old   
Mark
 
Posts: n/a

Default Re: Capturing the SELECT statement in our Transaction Log for ASA 9.02 - 09-24-2009 , 08:38 AM



Thanks guys for the info...

Quote:
Mark,

the translog usually only captures modifications, so
simple SELECTs are not logged.
However, you can use the auditing facility to log SELECTs,
too. For SA 11.0.1, here's the DocumentXchange link:


http://dcx.sybase.com/index.php#http...-security.html


HTH
Volker



Mark wrote:
Hello all...we are using the transaction log to view all
our changes to our database. I was just wondering if
there was anyway to capture the SELECT statement in this
log whenever a user selects from the db? Any info would
be greatly appreciated

Reply With Quote
  #5  
Old   
Glenn Paulley [Sybase iAnywhere]
 
Posts: n/a

Default Re: Capturing the SELECT statement in our Transaction Log for ASA9.02 - 09-24-2009 , 09:47 AM



Auditing is expensive, in that it adds huge amounts of data to the
transaction log. Moreover, auditing will require additional processing
to extract the queries from the log into a more useful format.

A better choice would be to use database tracing, the customized method
for profiling an application available in Sybase Central.

Glenn

Mark wrote:
Quote:
Thanks guys for the info...

Mark,

the translog usually only captures modifications, so
simple SELECTs are not logged.
However, you can use the auditing facility to log SELECTs,
too. For SA 11.0.1, here's the DocumentXchange link:


http://dcx.sybase.com/index.php#http...-security.html

HTH
Volker



Mark wrote:
Hello all...we are using the transaction log to view all
our changes to our database. I was just wondering if
there was anyway to capture the SELECT statement in this
log whenever a user selects from the db? Any info would
be greatly appreciated
--
Glenn Paulley
Director, Engineering (Query Processing)
Sybase iAnywhere

Blog: http://iablog.sybase.com/paulley

EBF's and Patches: http://downloads.sybase.com
choose SQL Anywhere Studio >> change 'time frame' to all

To Submit Bug Reports: http://case-express.sybase.com

SQL Anywhere Studio Supported Platforms and Support Status
http://my.sybase.com/detail?id=1002288

Whitepapers, TechDocs, and bug fixes are all available through the
Sybase iAnywhere pages at
http://www.sybase.com/products/datab...chnicalsupport

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.