Solved

Db size for DB2 v7

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

What is the command to find the database size in db2 V7
0
Comment
Question by:jsaravana
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now