What are tlog files ?
Tlog files are the files used by weblogic to keep a trace of current transactions.
For example, when an instance is restarted, the tlog files are used to perform the second step of a two-phase commit on a transaction that was in progress.
Sometimes, when a transaction is corrupted, you've got to delete thes files to get rid of the phantom transaction.
There is no need to restart a server to have them recreated.
Where are they located ?
Tlog files are created for every server. You can thus find some in your server directory.
Ex : myDomain / servers / myServer / logs
How to read them ?
These files are not human-readable. But BEA provides a tool to decrypt them.
This tool is very useful to have a trace of running transactions, and know what's going on on your server.
Like every other tool BEA provides, it's part of the package "weblogic".
It can be found :
- on WLS 8.1 and below, in the weblogic.jar
- on WLS 9 and above, in the module com.bea.core.transaction_18.104.22.168.jar
Usage: java weblogic.transaction.internal.TransactionLoggerImpl <server_tlog_path>
<server_tlog_path> - path of server transaction log files
To use it, I would advise to go directly where the tlog files are and type the following command :
\user_projects\sample\myserver > java weblogic.transaction.internal.TransactionLoggerImpl myserver
The result of this command should display something like that :
If available, the information will be displayed like shown below :