?
Solved

Db size for DB2 v7

Posted on 2009-07-09
1
Medium Priority
?
682 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 2000 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

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

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

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 (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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

770 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