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 > database size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 03:04
shedb shedb is offline
Registered User
 
Join Date: Dec 2003
Posts: 78
Talking database size

Hello all,
I have a question that may be simple for you, but i don't know how?
Can anybody tell me how i can find the total size of a v7 DB2 database in AIX and in windows?
Is there any command that can perform this easily?
Cos i'm sick of calculating (and not being sure) 'df -k' results in unix and folders in windows.
Thanks a lot,
bys
Reply With Quote
  #2 (permalink)  
Old 03-01-04, 04:07
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
List Tablespace Command

Hi,

Use the list tablespace show detail command.

That will give you the total number of pages. Multiply that by the pagesize for each tablespace add that all and it will give you the size of the db. (Total pages * pagesize)

U can also use it to know the exact amount of data size in the db as well.

Cheers

Nitin.
__________________
HTH

Nitin

Ask the experienced rather than the learned

Last edited by nitingm; 03-01-04 at 04:25.
Reply With Quote
  #3 (permalink)  
Old 03-01-04, 04:23
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Control Center

This question has been asked and answered umpteen times in this forum ..

Please search

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 03-01-04, 04:28
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Post Edited

Hi,

I realized my answer was not up to the mark so i posted a better answer.

Sorry for the incovienence.

Regards

Nitin
__________________
HTH

Nitin

Ask the experienced rather than the learned
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