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 > reorg and runstats

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-07, 08:52
soundharya_s soundharya_s is offline
Registered User
 
Join Date: May 2002
Posts: 30
reorg and runstats

When performing an offline or online reorg, we schedule runstats to run after completion of the reorg step.

This doesn't work as expected for inplace reorg.

How to identify the completion of asynchronous inplace reorg and do runstats?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-19-07, 10:44
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS?

Andy
Reply With Quote
  #3 (permalink)  
Old 11-19-07, 17:49
soundharya_s soundharya_s is offline
Registered User
 
Join Date: May 2002
Posts: 30
DB2 8.2.x. Database servers are at different fixpak levels in 8.2

OS - AIX and Linux

Thanks in advance.

Quote:
Originally Posted by ARWinner
What DB2 version and OS?

Andy
Reply With Quote
  #4 (permalink)  
Old 11-19-07, 19:48
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can run the list utilities command and wait until there is no output. The online reorg by definition is asynchronous.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 11-20-07, 02:51
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Isn't there an option of REORG to do the RUNSTATS as (last) part of the REORG?
I know this is possible on z/OS.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #6 (permalink)  
Old 11-20-07, 03:36
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Unfortunately, this is not (yet) possible in DB2 LUW.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 11-20-07, 08:17
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You can also run the following query in a loop until reorg_status = 4.

select snapshot_timestamp,reorg_current_counter,reorg_max _counter,reorg_status from table (snapshot_tbreorg(cast(? as varchar(255)),-1)) as x where table_schema = ? and table_name = ? and reorg_start >= ?

Andy
Reply With Quote
  #8 (permalink)  
Old 11-20-07, 11:15
nivasreddy007 nivasreddy007 is offline
Registered User
 
Join Date: Jun 2007
Posts: 66
db2pd -reorg -db databasename

This command can be used to track the completion of a reorg
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