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 usage

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-06, 04:39
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
db2audit usage

Hi,

Has anyone in forum used DB2AUDIT utility.
I need information about when my db2 objects were last reffered.
Is in any way db2audit is helpful and solve the purpose.
Appreciate any sort of help on this.

Or is there any other way i can find out the requisite info.

I am using db2 v8 fp2 on AIX 5.

Many thanks,
Sinwar
Reply With Quote
  #2 (permalink)  
Old 03-27-06, 05:08
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Can you let u know why you want to know the last referred time of a table ?

This may help to give a reasonable answer

Sorry

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-27-06, 05:57
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
Sathya,
we are updating all stats on a devlopment server and need to know which tables are never being or when for last time were reffered.So that we can omit them and also it will be helpfull in our other process of replications of tables under new instances....

looking forward for your reply..

Thnx,
Sinwar
Reply With Quote
  #4 (permalink)  
Old 03-27-06, 07:46
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
If you are concerned with running RUNSTAT/REORG you can use the LIST HISTORY command for RUNSTAT/REORG. It will tell you when the tables were UPDATED in terms of statistics.
Reply With Quote
  #5 (permalink)  
Old 03-27-06, 08:06
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
Quote:
Originally Posted by JAYANTA_DATTA
If you are concerned with running RUNSTAT/REORG you can use the LIST HISTORY command for RUNSTAT/REORG. It will tell you when the tables were UPDATED in terms of statistics.

Well jayant, i need to know when was the object used for any select,insert etc purpose..which i cannot find in the list history command option.
Do have any idea how to go about it and finding out the requisite info...

I am going thru DB2AUDIT facility ..hope will conclude any substantial solution..

Welcome your advise on this...

Thanks,
Sinwar
Reply With Quote
  #6 (permalink)  
Old 03-27-06, 09:45
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
Db2audit solved the purpose..but unfortunately it will give me the required info after starting the db2audit facility.That means henceforth i can find when was select etc done on my table last time.

Thanks all for giving me direction esp DBA-junior.

Sinwar
Reply With Quote
  #7 (permalink)  
Old 03-27-06, 12:00
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IMHO, you should be using table event monitor ... This will give you a list of all tables that were referenced since the last activation of the database ..

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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