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)


沒有留言:

張貼留言

離線安裝SSMS 22 launched extracted application exiting with result code 0x138b

SSMS 22 安裝器下載頁面 https://learn.microsoft.com/zh-tw/ssms/install/install https://aka.ms/ssms/22/release/vs_SSMS.exe 將安裝檔下載到本機,檔案好大2.5G  https:...