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 > Displaying the storage allocation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-09, 05:37
fany fany is offline
Registered User
 
Join Date: Jun 2009
Posts: 8
Displaying the storage allocation

hi..
i have a problem with my project..
i don't know how to see the storage allocation of one table if i have been finished to execute one query to that table.....

it'is very important for me to finish my project...
so, i need your help..please help me..

thank you very much...
Reply With Quote
  #2 (permalink)  
Old 07-17-09, 06:32
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
can you give some more info : the question is not very clear
tablesizes can be found in in catalog : nbr of pages * pagesize ...
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 07-17-09, 21:35
fany fany is offline
Registered User
 
Join Date: Jun 2009
Posts: 8
Thank you mr.przytula_guy..i will explain it more clearly.
i have a project that topic is about study performance of multidimensional clustering using DB2 as DBMS. In my project, i want to compare the performance between multidimensional clustering and traditional clustering. I compare them based on elapse time and storage allocation.
For example:
I have two databases, one for MDC and another for traditional clustering. All databases have the same table and same data. Now, i have one query for selection operation to one table that i will be executed in MDC database and traditional clustering database..in this situation, i use the same table for MDC and traditional clustering. After execute that query..i must compare how about the elapse time and how about the storage that allocated to that table, so i can compare their performance..
and now, may i get the storage allocation for each table after executing that query?? or how to know that??
bacause i want to campare the performance between them based on the storage allocation..
thank you very much...
Reply With Quote
  #4 (permalink)  
Old 07-18-09, 08:26
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
If you have each of your test tables in a DMS tablespace by itself, you will see the number of allocated pages in the tablespace snapshots.

You could also use the db2dart tool to obtain the physical layout of each tablespace.
Reply With Quote
  #5 (permalink)  
Old 07-20-09, 22:07
fany fany is offline
Registered User
 
Join Date: Jun 2009
Posts: 8
Thank u mr. n_i..
could you like to explain it more clearly??
i don't understand..
how to get the number of allocated pages in the tablespace snapshots as you said before??
and how to use the db2dart tool to obtain the physical layout of each tablespace??

thank u very much..
Reply With Quote
  #6 (permalink)  
Old 07-21-09, 18:26
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You can use "db2 list tablespaces show detail" or db2pd with -tablespaces
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