on 2012 Nov 28 2:15 PM
Hi, I have a requirement where I need to read the database log file real time to perform some post processing based on DML and DCL commands, without using any triggers. Is there anyway I can do it. I figured a way to translate the log into readable SQL using dbtran command, but it does not run when ASA server is running, because the log file is locked by the OS. The only way I can extract the sql is when I stop the ASA server. This approach is not acceptable. Is there any other way this can be achieved.
You can run dbtran against the active log; use the first syntax described here: http://dcx.sybase.com/index.html#1201/en/dbadmin/dbtran.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...and you can also use the according DBTools DBTranslateLog() API to do so, in case you prefer to translate the log from within a general programming language such as C/C++.
FWIW, I can't tell how "real-time" this is, e.g. w.r.t. uncommitted transactions...
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.