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 > Testing Automaintenace in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-11, 10:35
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Red face Testing Automaintenace in db2

Hi , Thanks in advance


I enabled all automatic maintenace parameters but how can i check its working on my database or not?
Reply With Quote
  #2 (permalink)  
Old 11-03-11, 10:37
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS? What did you turn on exactly?

Andy
Reply With Quote
  #3 (permalink)  
Old 11-03-11, 10:38
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Testing

db2 V9.7 and os linux 6.1
Reply With Quote
  #4 (permalink)  
Old 11-03-11, 10:39
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
And what exactly did you turn on?

Andy
Reply With Quote
  #5 (permalink)  
Old 11-03-11, 10:42
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Automatic maintenance (AUTO_MAINT) = ON
Automatic database backup (AUTO_DB_BACKUP) = ON
Automatic table maintenance (AUTO_TBL_MAINT) = ON
Automatic runstats (AUTO_RUNSTATS) = ON
Automatic statistics profiling (AUTO_STATS_PROF) = OFF
Automatic profile updates (AUTO_PROF_UPD) = OFF
Automatic reorganization (AUTO_REORG) = OFF


Like that i did
Reply With Quote
  #6 (permalink)  
Old 11-03-11, 10:54
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
To check if backup ran:

LIST HISTORY BACKUP SINCE 20111101 for MyDB

To check runstats:

select tabschema,tabname,stats_time from syscat.tables where stats_time > {last check time}

Now a comment on performing backups with automaint. I think it is a bad idea because you have better control of everything if you do it differently. What happens if automaint determines a backup is not needed for an extended time? This would greatly increase your risk and recovery time from a disaster. Can automaint do the backup exactly as you need?

I have found it is just easier to use cron to schedule a regular backup. That way you know it always gets done.

Andy
Reply With Quote
  #7 (permalink)  
Old 11-03-11, 10:58
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Thank you andy for ur good suggetion but that is our requirement


can u tel me how to check reorg information plsss?
Reply With Quote
  #8 (permalink)  
Old 11-03-11, 10:59
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
check db2diag.log - runstats/backup entry if auto has run
if stats are up-to-date it can take some time/days..
backup history can be found in history file also
as indicated before : it might be possible that backup/runstats is running when system is highly used..
it would be better to schedule this with a script at the time of day/night when low usage on db
__________________
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
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