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 > Tablespace Size Estimation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-05, 04:13
ksolomon ksolomon is offline
Registered User
 
Join Date: Jun 2004
Posts: 38
Tablespace Size Estimation

Hello All,
I've planned to use the following steps to determine the DMS tablespace size. Pls correct me if I'm wrong else pls give your ack. Thanks

Scenario:
For a single table I've deceided to use a seperate tablespaces for Index & Data. hence
Table Size = Avg Byte count per Row * No. of rows
Avg Byte count per Row is derived using this query after runing the runstats against that table.
SELECT sum(AVGCOLLEN) FROM SYSCAT.COLUMNS where tabname='TestTable'

Hence in my case the mathematics involved is as follows..
Table Size = Avg Byte count per Row * No. of rows
= 262 * 132800000
= 34793600000 bytes
= 32.40406513214 GB

Can you please let me know whether this inference is correct ? Any suggestions highly appreciated.

Thanks,
Vij
Reply With Quote
  #2 (permalink)  
Old 10-26-05, 05:36
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
size

should be
take in account small overhead for varchar/nulls and also check if db is created with utf-8 and if using varchar / graphic.....
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 10-27-05, 04:52
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
check format

check th e formatting of database
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