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 > Sybase > Viewing Transaction Log of sybase ASE 12.0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-07, 04:54
goraksh goraksh is offline
Registered User
 
Join Date: Jan 2007
Posts: 13
Viewing Transaction Log of sybase ASE 12.0

How can one view the contents of transaction log ? The syslog table only stores the transaction id and no of update operation but not the sql query representing the transaction ?
Reply With Quote
  #2 (permalink)  
Old 05-18-07, 06:33
willy_and_the_ci willy_and_the_ci is offline
Registered User
 
Join Date: Feb 2002
Location: Willy is on vacation
Posts: 1,208
Sybase officially does not supply any utility to view the contents of the log. CA used to sell a Product called Log Analyzer for Sybase. Not sure if they still do?

Whitesands, I believe has something that can do on Sybase.

Otherwise try dbcc logtransfer ('scan', 'normal'), this is how Rep Server scans the log, the output is in LTL (Log Transfer Language). I have never tried this, I would say this will need trace 3604 enabled. Sorry, I'm no where near any Sybase servers, test it first on non-prod and show the output.
Reply With Quote
  #3 (permalink)  
Old 12-12-07, 08:01
digiman digiman is offline
Registered User
 
Join Date: Sep 2005
Posts: 9
Quote:
Originally Posted by goraksh
How can one view the contents of transaction log ? The syslog table only stores the transaction id and no of update operation but not the sql query representing the transaction ?

try the following:

dbcc traceon (3604)
dbcc log

Note: read up on dbcc log as it takes a number of useful parameters also which might be of significance to you.
Reply With Quote
  #4 (permalink)  
Old 12-22-11, 19:45
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by digiman View Post
try the following:

dbcc traceon (3604)
dbcc log

Note: read up on dbcc log as it takes a number of useful parameters also which might be of significance to you.
Excuse me I am a beginner in sybase, where and how to execute this command? I need to read the transaction log file
Reply With Quote
  #5 (permalink)  
Old 12-23-11, 08:46
Martijnvs Martijnvs is offline
Registered User
 
Join Date: Jan 2004
Location: The Hague/Utrecht, NL
Posts: 415
Quote:
Originally Posted by robert_tr View Post
Excuse me I am a beginner in sybase, where and how to execute this command? I need to read the transaction log file
Exactly why do you need to read the transactionlog?
Is it possible you mean the [i]error[/]log? The errorlog is a textfile you can view with any textviewer. It contains certain errors en other useful information.
__________________
I'm not crazy, I'm an aeroplane!
Reply With Quote
  #6 (permalink)  
Old 12-23-11, 09:19
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by Martijnvs View Post
Exactly why do you need to read the transactionlog?
Is it possible you mean the [i]error[/]log? The errorlog is a textfile you can view with any textviewer. It contains certain errors en other useful information.
Thanks,

I want to see some queries that were run, as was done
Reply With Quote
  #7 (permalink)  
Old 12-27-11, 02:38
ZionAssedo ZionAssedo is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
watch this

Translate this page in english, after all, they don't say that everything is watchable but it's quite interesting.

Sybase - Lire les journaux de transactions avec dbcc log
Reply With Quote
  #8 (permalink)  
Old 12-31-11, 22:59
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by ZionAssedo View Post
Translate this page in english, after all, they don't say that everything is watchable but it's quite interesting.

Sybase - Lire les journaux de transactions avec dbcc log
Thank you!!!!
I tried execute the command dbcc log but wasn't successfully. Where I must execute? I tried in iSQL. How to execute this command?
Reply With Quote
  #9 (permalink)  
Old 01-02-12, 03:45
AssedoZion AssedoZion is offline
Registered User
 
Join Date: Dec 2011
Posts: 4
ASEisql not appropriate

ASEIsql (BTW A wonderfull tool ) is not appropriate for this operation,
you should try with isql.
Reply With Quote
  #10 (permalink)  
Old 01-02-12, 03:52
AssedoZion AssedoZion is offline
Registered User
 
Join Date: Dec 2011
Posts: 4
in Isql

Excuse me I did not fully understand your post :
in isql it is like this :
isql -Uxxx -Pyyy (assume xxx/yyy is your user/pass)
dbcc traceon (3604)
go
dbcc log
go


Thats enough to get a result.
Reply With Quote
  #11 (permalink)  
Old 01-02-12, 14:40
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by AssedoZion View Post
Excuse me I did not fully understand your post :
in isql it is like this :
isql -Uxxx -Pyyy (assume xxx/yyy is your user/pass)
dbcc traceon (3604)
go
dbcc log
go


Thats enough to get a result.
Excuse me, I am very beginner in sybase, tried to run the command that tells me "isql -Uxxx -Pyyy" but nothing appears, my OS is windows.

I searched for an executable with the name isql but I found this:

dbisql.exe

Thank you
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