2012年5月10日 星期四

informix onlog

想要查看某段時間內某使用者的DB記錄. 借助onlog的查看,可略知一二.

首先先查看informix 下的onlog.log檔,找出相對應時間內的log number有哪些
然後執行以下指令

onlog -l -n 470552 -u myuser | more

-n log number
-u 指定使用者
-l  顯示完整log訊息



更多參數說明如下
Usage:  onlog [-l] [-q] [-b] [-d <tape device>] [-n <log unique identifier>]
              [-u <user name>] [-t <TBLspace number>] [-x <transaction number>]

        -l   Display maximum information about each log record
        -q   Do not display program header
        -b   Display information about logged BLOB pages (-d option only)
        -d   Read from tape device
        -n   Display the specified log(s)
        -u   Display the specified user(s)
        -t   Display the specified TBLspace(s)
        -x   Display the specified transaction(s)


沒有留言:

張貼留言

pdf.js 無法顯示部份字

有個檔案在pdf viewer套件中無法顯示內容,但下載檔案後使用工具又可以正常顯示。 本來以為是套件版本太舊的原因,於是去下載pdf viewer套件 https://github.com/mozilla/pdf.js 更新後還是一樣。 覺得應是字型缺漏的問題,於是用PDF-X...