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 Database Size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-04, 11:07
jayan jayan is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
DB2 Database Size

How Do I find out the size of DB2 Database on Z/OS or OS390
Reply With Quote
  #2 (permalink)  
Old 02-27-04, 11:15
disaster disaster is offline
Registered User
 
Join Date: Feb 2004
Posts: 24
Re: DB2 Database Size

i think databases in db2 on z/os or os390 can't have a size it's 'only' a logical room for tablespaces which can have a huge size (version 7 -> 16tb and i think more). ok u can say the size of a database is to sum up the allocated space of all tablespaces within a database !

hope this help !

regards

marc gaines

Quote:
Originally posted by jayan
How Do I find out the size of DB2 Database on Z/OS or OS390
Reply With Quote
  #3 (permalink)  
Old 02-27-04, 11:17
jayan jayan is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
DB2 Database Size

How do we handle the space occupied by Index's?
Reply With Quote
  #4 (permalink)  
Old 02-27-04, 11:18
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Databases on z/OS and 390 are completely different than on other DB2 platforms. A database on z/OS is just an administrative grouping of tables within one sub-system. Table names must be unique across all databases in a sub-system.

If you want the size of the data in the whole DB2 subsystem, you could do the following:

1. Make sure runstats is run on all tables and indexes (including the catalog). Calculate the size of the tables and indexes based on the number of rows * row length plus overhead.

2. If you use stogroups, run the stospace utility.

3. Look at the size of the underlying VSAM datasets which you should be able identify by a naming convention used for DB2 objects.
__________________
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 02-27-04, 12:00
jayan jayan is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
DB2 Database Size

Dont you think finding out all Tablespaces in a Database and then finding out their size would be a appropriate method of determining the size rather than doing row count * row length. Bcoz determing overheads is difficult. when u consider tablespace size it would also account for the page free space and other overheads?
Reply With Quote
  #6 (permalink)  
Old 02-27-04, 12:08
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
That depends on "why" you want to know the size (what you intend to do with the information). Also, you may have some tablespaces with a lot of empty pages if they haven't been reorged lately. But if you want to know the actual space currently allocated, look at the VSAM datasets or the stospace utility (if you use stogroups).
__________________
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
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