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 > [DB2 7.2] Getting size table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-07, 06:10
kyrsa kyrsa is offline
Registered User
 
Join Date: May 2006
Posts: 9
[DB2 7.2] Getting size table

Hello,

I found how to get sizes, with the control center, but something is strange :
There is 2 tablespaces : <MyTableSpace> and userspace1 (I know this is not good)
From the first one, I can get all the sizes, but on the second, all the sizes and numbers of rows are null, even tables are not empty (some are countaining thousands of lines).
How can I do to get all the missing datas ? (without changes anything, if it's possible)

Kyrsa
Reply With Quote
  #2 (permalink)  
Old 01-18-07, 08:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Do RUNSTATS on the tables. This is what the Control Center uses to determine the sizes.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-18-07, 08:15
kyrsa kyrsa is offline
Registered User
 
Join Date: May 2006
Posts: 9
Thx for your reply.
The command is only "runstats" ? without any options ?
And is it "dangerous" ? because I don't want to break something on this serveur.
Reply With Quote
  #4 (permalink)  
Old 01-18-07, 08:26
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
No, the command is not just RUNSTATS. Look in the "Command Reference for how to run it. There are various options that you can use. It depends on your particular situation. You can use the Control Center to do RUNSTATS. Just highlight the tables you want done (you can do more than one at a time), right click, choose runstats, and select the options you want from the wizard.

Andy
Reply With Quote
  #5 (permalink)  
Old 01-18-07, 08:28
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
dont worry
Runstats wont break ur system
use control center to do runstats with default settings

Rahul Singh
Reply With Quote
  #6 (permalink)  
Old 01-18-07, 08:48
kyrsa kyrsa is offline
Registered User
 
Join Date: May 2006
Posts: 9
okay it's working !
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