If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2audit configure error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-11, 02:42
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Red face db2audit configure error

hi ,

I need to configure db2audit in my test envi.
I first increased the aud_buf_siz to 40. then stop and start the instance .

When trying to configure using
db2audit configure scope checking, objmaint, validate status failure
errortype normal


I get Operation failed error.

if i use scope as "all" or any 1 parameter "checking" then it is successful.

I am using db2 9.7 fp4 linux 5.5

suggest me how to corret this. thanks !
Reply With Quote
  #2 (permalink)  
Old 12-02-11, 02:58
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
looking at syntax diagram : should it not be ..
scope xx status yy, xx2 status yy2
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 12-02-11, 03:02
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You should see
Quote:
AUD0002N Syntax error.
at the top of the error output

Try
Code:
db2audit configure scope checking status failure,objmaint status failure, validate status failure  errortype  normal
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 12-02-11, 04:57
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
thanks it worked.
Reply With Quote
  #5 (permalink)  
Old 12-02-11, 05:19
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Hi even after the stating of db2audit, db2audit.log was not created on $INST/sqllib/security/

where to check or any way to change the path of log file.
Reply With Quote
  #6 (permalink)  
Old 12-02-11, 05:37
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Have you had an event that generates audit record.
In 9.7 audit records are saved under
sqllib/security/auditdata
and has a more descriptive name
db2audit.db.SAMPLE.log.0

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 12-02-11, 05:40
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
thanks sathya,

i could see 2 logs created for instance and database. But when i try to view it says it as a binary. so unless i extract it i wont be able to see ?

(sorry it was a silly question)
Reply With Quote
  #8 (permalink)  
Old 12-02-11, 05:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2audit command , extract option.
I am sure you know where to find the details of the command. ;-)
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #9 (permalink)  
Old 12-06-11, 01:50
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Thanks sathya...
Reply With Quote
  #10 (permalink)  
Old 12-12-11, 23:50
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
One more doubt,

After archiving and extracting i wanted to load the file to a table.

when i try to give the command

[db2inst1@WESSDITM auditdata]$ db2 load from objmaint.del of DEL insert into db2inst1.OBJDEL01
SQL3304N The table does not exist.


On what basis should i create a table, And what are the columns it should have. Any demo tables available in the db2 system tables.

kindly help me.
Reply With Quote
  #11 (permalink)  
Old 12-13-11, 02:12
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
the doc has been available since ages. why don't users ever find them
if you don't create the tables- they will not be created by the holly spirit
all is over here
Creating tables to hold the DB2 audit data - IBM DB2 9.7 for Linux, UNIX, and Windows
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #12 (permalink)  
Old 12-13-11, 02:22
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
hey thanks doc was helpful.

trying for the first time.. from now one i will look for doc and then come to forum if required...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On