Solved

Db size for DB2 v7

Posted on 2009-07-09
1
679 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

691 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