473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Automatic table maintenance

Hi,

It's no problem to define the automatic maintenance using the wizard
but I want to use commands to automate automation. I captured the SQL
statements when activating the maintenance but that didn't help.

I couldn't find anything about it in the docs so if anybody could
help with this it would be great.

Kind regards, Gert
Nov 12 '05 #1
6 5446
Hi Gert,

I'm looking for the same stuff, anyone knows how to enable automatic
maintenance *without* using the wizard but using the commands ?

//bjarke
Nov 12 '05 #2
Hi,

It's in the docs, try searching for "autonomic_switches". The
parameters are at the very end of "db2 get db cfg".

Automatic maintenance (AUTO_MAINT) = OFF
9 Automatic database backup (AUTO_DB_BACKUP) = OFF
9 Automatic table maintenance (AUTO_TBL_MAINT) = OFF
9 Automatic runstats (AUTO_RUNSTATS) = OFF
9 Automatic statistics profiling (AUTO_STATS_PROF) = OFF
9 Automatic profile updates (AUTO_PROF_UPD) = OFF
9 Automatic reorganization (AUTO_REORG) = OFF

Notice that they form a hierarchy, in order for a parameter to work,
all parents in the hierarchy must be enabled too. For example to enable
Automatic runstats, try:

db2 update db cfg using AUTO_MAINT ON AUTO_TBL_MAINT ON AUTO_RUNSTATS
ON

Ivan

Nov 12 '05 #3
In article <11*********************@o13g2000cwo.googlegroups. com>,
Ivan Popivanov (po*****@gmx.net) says...
Hi,

It's in the docs, try searching for "autonomic_switches". The
parameters are at the very end of "db2 get db cfg".


This is just a small part of it. Using the wizard it's also possible
to configure on- and off-times. It's also possible to specify a
filter on the tables when defining runstats and/or reorg. I didn't
find anything about this in the docs. I guess it's stored in the
systools.policy table which is updated/read by stored procedures but
it looks like it isn't documented..
Nov 12 '05 #4
"Gert van der Kooij" <ge**@invalid.nl> a écrit dans le message de
news:MP************************@news.xs4all.nl...
In article <11*********************@o13g2000cwo.googlegroups. com>,
Ivan Popivanov (po*****@gmx.net) says...
Hi,

It's in the docs, try searching for "autonomic_switches". The
parameters are at the very end of "db2 get db cfg".


This is just a small part of it. Using the wizard it's also possible
to configure on- and off-times. It's also possible to specify a
filter on the tables when defining runstats and/or reorg. I didn't
find anything about this in the docs. I guess it's stored in the
systools.policy table which is updated/read by stored procedures but
it looks like it isn't documented..


Would it be possible to have a "Show Command" button in the summary panel,
as the one that exists for the configure logging wizard ?

Thanks,

Jean-Marc
Nov 12 '05 #5
In article <42***********************@news.wanadoo.fr>, Jean-Marc
Blaise (no****@nobody.com) says...
"Gert van der Kooij" <ge**@invalid.nl> a écrit dans le message de
news:MP************************@news.xs4all.nl...
In article <11*********************@o13g2000cwo.googlegroups. com>,
Ivan Popivanov (po*****@gmx.net) says...
Hi,

It's in the docs, try searching for "autonomic_switches". The
parameters are at the very end of "db2 get db cfg".


This is just a small part of it. Using the wizard it's also possible
to configure on- and off-times. It's also possible to specify a
filter on the tables when defining runstats and/or reorg. I didn't
find anything about this in the docs. I guess it's stored in the
systools.policy table which is updated/read by stored procedures but
it looks like it isn't documented..


Would it be possible to have a "Show Command" button in the summary panel,
as the one that exists for the configure logging wizard ?

Thanks,

Jean-Marc


Yes, that would be great but my guess is that it's to complicated
which could make impossible to run the commands from the commandline.
But I hope I'm wrong :)
Nov 12 '05 #6
"Gert van der Kooij" <ge**@invalid.nl> a écrit dans le message de
news:MP************************@news.xs4all.nl...
In article <42***********************@news.wanadoo.fr>, Jean-Marc
Blaise (no****@nobody.com) says...
"Gert van der Kooij" <ge**@invalid.nl> a écrit dans le message de
news:MP************************@news.xs4all.nl...
In article <11*********************@o13g2000cwo.googlegroups. com>,
Ivan Popivanov (po*****@gmx.net) says...
Hi,

It's in the docs, try searching for "autonomic_switches". The
parameters are at the very end of "db2 get db cfg".


This is just a small part of it. Using the wizard it's also possible
to configure on- and off-times. It's also possible to specify a
filter on the tables when defining runstats and/or reorg. I didn't
find anything about this in the docs. I guess it's stored in the
systools.policy table which is updated/read by stored procedures but
it looks like it isn't documented..


Would it be possible to have a "Show Command" button in the summary panel,
as the one that exists for the configure logging wizard ?

Thanks,

Jean-Marc


Yes, that would be great but my guess is that it's to complicated
which could make impossible to run the commands from the commandline.
But I hope I'm wrong :)

Hi Gert,

Well, the update db cfg should not be too complicated :) Maybe the problem
to update the policy could be done with a stored procedure. Basically, if
these HMON_ATM_INFO, HMON_COLLECTION and POLICY tables could be explained,
that would be a great step.

I'm wondering for example to do AUTO_REORG, and keep stats with my scripts
.... how can I track tables that have been reorganized ? in the LIST HISTORY
REORG ? in HMON_ATM_INFO ?

Regards,

Jean-Marc

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gilda | last post by:
Does anyone know what entity (utility?) checks if statistics collections are required, if the Automatic RUNSTATS is enabled, in version 8.2? How often are these checks done? Thanks.
4
by: db2group88 | last post by:
Hello, we are using db2 udb v8.2 on windows. if we need to run a reorg and runstats monthly, i think the best way to do them is via the tool "Configure Automatic Maintainance". I find out that...
2
by: ladino | last post by:
Hi: I'm testing DB2's new automated maintenance feature and, so far it seems to accomplish what it is instructed to do, but we (DBA's) have no control on when the evaluation cycle is going to...
0
by: paul | last post by:
Hi, is there a way to configure automatic maintenance from command line ? I want to access the option shown in control center like offline periods, notify backups ... thx
1
by: Chris Weston | last post by:
Hi. I have automatic statistic update turned on for all my databases. Is this an overhead I can do without? Could I update them overnight when the database is hardly in use? Thanks --...
1
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP11. I have followed the docs at http://tinyurl.com/qckrn and enabled automatic statistics collection. It has been 2 days since I updated my DB cfg and...
2
by: Jurgen Haan | last post by:
Hi hi... does anyone know how I can alter the maintenance window for automatic maintenance from the CLP? -R-
0
by: swarna_nama | last post by:
i need to configure the db2 database for automatic backup and need to maintain atleast 2 backup images of the database in db2 . I have updated the configuration parameters auto_maint and...
0
by: RG | last post by:
I have a stored procedure which is called by db2 "call ....." statement from ksh script. When running from AIX DB2 v. 9.1.3 environment, after a while the stored procedure starts to hang and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.