Solved

Db size for DB2 v7

Posted on 2009-07-09
1
670 Views
Last Modified: 2012-05-07
Hi,

What is the command to find the database size in db2 V7
0
Comment
Question by:jsaravana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
k_murli_krishna earned 500 total points
ID: 24821223
There is no command as such. You maybe able to obtain control center. Else, estimate table and index sizes and add a buffer of 5 MB to this for rest of object definitions. The size of database folder on hard disk is one way to measure.

Size of table and index, you can get from GUI via average row/key size and then multiplying by number of rows for each table/index. Sum total of all this can get you close to actaul database size.
You can also calculate using formulas:
Size of table = (Average row size + 8) * 1.5
Size of index = (Average key size + 8) * 2
Size of temporary tablespace size = (Average total sort size + 8) * 3.2
Sort size implies aggregate functions MAX, MIN, GROUP BY and ORDER BY columns.

You can also estimate taking sum of data type sizes for all columns in a table/index while taking 70 % size for VARCHAR columns.
You can also query data dictionary i.e. SYSIBM and SYSCAT tables/views and count the total number of pages used * page size after connecting to database.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question