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 > Why does my maintenance jobs not run?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-12, 07:14
colicoid colicoid is offline
Registered User
 
Join Date: Jan 2012
Posts: 4
Why does my maintenance jobs not run?

Hi folks.
I'm a newbee at DB2 as well as databases. I was tasked with setting up dump jobs of a couple of databases running inside the same DB2 instance on one of our servers.

Looks simple enough. I Enter control center, connect to a db and configure automatic maintenance. Everything looks ok and it says that the db is on partial maintenance. But it doesn't run...

* I'm logged into Windows as db2admin.
* I doing a full backup-only offline job. (db is on circular logging)
* I can schedule a backup (after generating the tools catalog) but I want a maintenance job.

What could be wrong? Please help...
Reply With Quote
  #2 (permalink)  
Old 01-26-12, 07:29
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
automatic maintenance is not a job - it is a process that checks if auto maint is needed
check db cfg and see if automaint-auto table maint-auto... is active
this will be done in maint-window..
see for details
Automatic maintenance
__________________
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 01-26-12, 09:52
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I'd create my own scripts instead of debugging why auto maintenance doesn't run.
Reply With Quote
  #4 (permalink)  
Old 02-09-12, 05:29
colicoid colicoid is offline
Registered User
 
Join Date: Jan 2012
Posts: 4
Splendid!
Thanks a lot...

Just one little snag remains.
It spits out database backup files that are not compressed. How can I get it to output the backups compressed? I didn't see this option in the maintenance setup wizard.
Reply With Quote
  #5 (permalink)  
Old 02-09-12, 05:29
colicoid colicoid is offline
Registered User
 
Join Date: Jan 2012
Posts: 4
Quote:
Originally Posted by db2girl View Post
I'd create my own scripts instead of debugging why auto maintenance doesn't run.
A little nudge in the right direction please...
Reply With Quote
  #6 (permalink)  
Old 02-09-12, 05:45
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
the question would be : who wants backup to be executed by a tool you don't control

the best would be to create a script with all options you need/want and schedule this script
whenever wanted...
__________________
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
  #7 (permalink)  
Old 02-09-12, 05:48
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
have a look at
Sample automated maintenance policy specification XML for AUTOMAINT_SET_POLICY or AUTOMAINT_SET_POLICYFILE
and
DB2AutoBackupPolicySample.xml

demonstrates specifying how the database manager should perform automatic backup.
__________________
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
  #8 (permalink)  
Old 02-14-12, 07:45
colicoid colicoid is offline
Registered User
 
Join Date: Jan 2012
Posts: 4
It turns out now that some DB's don't get backed up after all.
They go from a green diamond symbol (normal) in health center to a hollow diamond symbol (not monitored).

Here is my workflow:
* In health center I first enable backup/reorg/runstat for each database.
* I then setup automatic offline maintenance on each DB - shortly thereafter the green diamon appears.

I exit control/health centers and open them back up again and some of the DB's have reverted back to the hollow diamond symbol.

Why doesn't my changes stick?!
Reply With Quote
  #9 (permalink)  
Old 02-14-12, 12:06
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Check db2diag.log and <instname>.nfy

You may find information there

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