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 > REORGCHK generates blank values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-06, 12:27
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
REORGCHK generates blank values

Hi Everybody!

I am working on DB2 UDB v8.2 FP 7 on Windows 2003 Standard Edition.

I am doing a REORGCHK with current statistics on all my tables using (REORGCHK current statistics on table all) but the output it is generating is all blank. No values are recorded against any of the table.

DO I need to do a RUNSTATS before I do REORGCHK with current statistics? I don't want to run REORGCHK with update statistics since its a prod environment and there are tons of tables in this database.

Thanks
Anks
Reply With Quote
  #2 (permalink)  
Old 06-21-06, 23:04
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow ?

You cannot do a serious check for need of reorganisation without
current statistics !!
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #3 (permalink)  
Old 06-22-06, 03:27
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
You could use the 'shrlevel change' option of runstats in V7 so that other users of the table can read from and write to the table while statistics are calculated.

Example:
runstats on table db2inst1.emp with distribution and detailed indexes all shrlevel change

You can generate a script for all tables in the database in this fashion...

However, as you are on v8 you can use the 'allow write access' option ...

select 'runstats on table db2inst1.'||tabname||' with distribution and detailed indexes all allow write access;' from syscat.tables where tabschema = 'DB2INST1';

HTH.

Last edited by ggnanaraj; 06-23-06 at 00:07.
Reply With Quote
  #4 (permalink)  
Old 06-22-06, 09:55
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Thanks to both of you.

anks
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