Reorg tables
Reorg tables
Hello People!!
How to know when I need to reorganize tables?
A systems analyst told me that the system performance is poor. And asked me to reorganize tables. How to know which tables should be reorganized without knowing what programs are with the poor performance??
Thanks a lot!!
How to know when I need to reorganize tables?
A systems analyst told me that the system performance is poor. And asked me to reorganize tables. How to know which tables should be reorganized without knowing what programs are with the poor performance??
Thanks a lot!!
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Reorg tables
DB2 Tables REORG and performance tuning of programs involved are two different things. Said that, if you're talking about DB2 on z/OS - read about DB2 RUNSTATS Utility.
According to the above link:
According to the above link:
This is another link on RUNSTATS, which gives more explanation about it.Run RUNSTATS to help evaluate the design of the database and determine when the REORG utility should be run for specific table spaces or indexes.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
-
- Registered Member
- Posts: 34
- Joined: Sun Aug 11, 2013 4:48 pm
- Location: Pune
Re: Reorg tables
Maidy,
To add here, you not only re-organize tables but also re-organize indexes! As time goes by, insertions and deletions can cause tables, indexes to be dis-organized. In brief, REORG's put table data on the pages in order(clustering sequence). Free-space is reset. DB2 maintains real-time statistics about tables/indexes in SYSTABLESPACESTATS and SYSINDEXSPACESTATS. Explore these.
Thanks,
Quasar C.
To add here, you not only re-organize tables but also re-organize indexes! As time goes by, insertions and deletions can cause tables, indexes to be dis-organized. In brief, REORG's put table data on the pages in order(clustering sequence). Free-space is reset. DB2 maintains real-time statistics about tables/indexes in SYSTABLESPACESTATS and SYSINDEXSPACESTATS. Explore these.
Thanks,
Quasar C.
Re: Reorg tables
Hello Quasar. Thanks for your consideration!
The REORG TABLESPACE command reorganizes all data and all indexes tied to it.
Txs!
Maidy
The REORG TABLESPACE command reorganizes all data and all indexes tied to it.
Txs!
Maidy
-
- Registered Member
- Posts: 34
- Joined: Sun Aug 11, 2013 4:48 pm
- Location: Pune
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute