This is just a follow up Question to my previous one, which was to find a way to trace INSERTS, DELETES and UPDATES on an on an informix dynamic server on linux system.
The following was suggested to me from Shriyan(which worked great - Thanks very much)
*****************************************************
You can turn on auditing in one of the following:
1) onaudit -l 1
2) ADTMODE 1 #Auditing mode (configuration para)
Specify the directory for audit dump files:
1) onaudit -p /usr1/dbaudit
2) ADTPATH /usr1/dbaudit (configuration para)
Trace the manipulations (INSERT,UPDATE,DELETE) of the user jonathan.
onaudit -a -u jonathan -e +INRW,UPRW,DLRW
TIP: If the user list is huge, produce the input instructions in a form of a file. Each line of the instruction file should be in the form:
targetmask templatemask events
For example:
jonathan - +INRW,UPRW,DLRW
hari _sec2 +ALTB,DLRW -CRTR
To analyze the Audit File:
onshowaudit -u jonathan
****************************************************
From this the following output was produced......
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:UPRW:authority:118:6291523:257:6291523:257
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:62721
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:62977
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:63489
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:63745
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:UPRW:authority:409:6291835:62721:6291835:62721
From this I have the following questions:
i) Can I also trace any Selects that are performed on the database? If so what is the syntax?
ii) What does this output mean? I have a very good idea as to the content and what it represents, but I'd like to be sure. Does it relate back to tables and/or columns in the database, and if ti doesn't ,is obtaining this information possible?
iii) After the first dump of this I could only trace Updates. For some reason I could not trace Inserts. Is there a reason for this, or am I doing something wrong?
iv) How do I reset/start new log files? (Using -n parameter, does not seem to work)
v) Is there a document or file that has a listing of ALL of the onaudit parameters (not by just typing onaudit.
An urgent response to this would be greatly appreciated.
The following was suggested to me from Shriyan(which worked great - Thanks very much)
*****************************************************
You can turn on auditing in one of the following:
1) onaudit -l 1
2) ADTMODE 1 #Auditing mode (configuration para)
Specify the directory for audit dump files:
1) onaudit -p /usr1/dbaudit
2) ADTPATH /usr1/dbaudit (configuration para)
Trace the manipulations (INSERT,UPDATE,DELETE) of the user jonathan.
onaudit -a -u jonathan -e +INRW,UPRW,DLRW
TIP: If the user list is huge, produce the input instructions in a form of a file. Each line of the instruction file should be in the form:
targetmask templatemask events
For example:
jonathan - +INRW,UPRW,DLRW
hari _sec2 +ALTB,DLRW -CRTR
To analyze the Audit File:
onshowaudit -u jonathan
****************************************************
From this the following output was produced......
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:UPRW:authority:118:6291523:257:6291523:257
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:62721
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:62977
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:63489
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:INRW:authority:409:6291835:63745
ONLN:2002-11-14 13:19:37.000:TRAINING01-DG:448:authtest:auth:0:UPRW:authority:409:6291835:62721:6291835:62721
From this I have the following questions:
i) Can I also trace any Selects that are performed on the database? If so what is the syntax?
ii) What does this output mean? I have a very good idea as to the content and what it represents, but I'd like to be sure. Does it relate back to tables and/or columns in the database, and if ti doesn't ,is obtaining this information possible?
iii) After the first dump of this I could only trace Updates. For some reason I could not trace Inserts. Is there a reason for this, or am I doing something wrong?
iv) How do I reset/start new log files? (Using -n parameter, does not seem to work)
v) Is there a document or file that has a listing of ALL of the onaudit parameters (not by just typing onaudit.
An urgent response to this would be greatly appreciated.