Solved

Capacity Plan Revision

Posted on 2008-10-05
7
431 Views
Last Modified: 2008-11-01
Hi There,
How can i do Capacity Plan Revision for a database

Please provide me step by step information

Thanks
0
Comment
Question by:nav29
  • 3
  • 2
7 Comments
 
LVL 37

Expert Comment

by:momi_sabag
ID: 22648250
which platform do you use?
0
 
LVL 45

Expert Comment

by:Kdo
ID: 22649269
Hi Nav29,

That's really a lot bigger question than you realize.  Kind of like hiring an engineer fresh out of college and telling him to "build me a car".  You'll get 4 wheels, a motor, and brakes, but beyond that it's a function of the mind of someone that has no idea what you really want.

What you've asked for is similar.  There are a lot of variables involved that only the DBA really knows.  Without a good understanding of these variables, a decent estimate is impossible.  (Then again, maybe you just want to know some of the variables?)

The first question is what kind of database is it?  An OLTP typically grows with every transaction as they are recorded in the history file.  An OLTP with 1,000 updates/day won't grow very quickly.  An OLTP with 1,000 updates/second has an incredible need to be properly designed and runs the risk of quickly exceeding the system's mass storage capacity.  At some point, no amount of disk will help as the database will exceed the server's ability to process the transactions quickly enough.

On the other hand, an OLAP is typically a very stable database.  It is a summary of an OLAP the is designed to meet the needs for quick reporting.  A data warehouse is a special kind of OLAP.  Even though they will grow, it is generally at a rate much, much slower than an OLTP.  The challenge here is that an OLAP will often exceed the server's ability to build and/or update the OLAP much more quickly than it will fill the available disk space.


Only after that database type (usage) is known can the next step be taken in Capacity Planning.  And the next step is to understand how the database changes on a daily bases to know what resources are most in demand.


Kent
0
 

Author Comment

by:nav29
ID: 22659033
its Database server        = DB2/6000 8.2.9
whats this means
1) in order to get the size of a table,  you need to do
      (a) runstats on the table
      (b) query NPAGES in syscat.tables  for the table,  the returned number is the number of pages,  you need to times 32 KB to get it in Bytes.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 45

Expert Comment

by:Kdo
ID: 22659118
Hi nav29,

There is a DB2 utility called 'RUNSTATS' that will collect statistics about a table.  You'll need to run it, typically from the DB2 command line.

The RUNSTATS process will update the statistics, including the number of pages in the table.  You suggest that the table is using 32K pages, so if you'll multiply the number of pages by 32K, you'll get the size of the table in bytes.


Kent
0
 

Author Comment

by:nav29
ID: 22659167
Hi Kent,
1) I Know about rustats any easy way i can do runstats for all the tables in one shot ,
as i know how to do for each table from control centre
2) how to query NPAGES in syscat.tables  ?
0
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
ID: 22659219
A standard SQL query.  :)

SELECT tabschema, tabname, npages FROM syscat.tables
WHERE tabschema = myschema AND tabname = mytable;

or to get everything, just:

SELECT * FROM syscat.tables


Kent
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
What's the informix SQL for end of month? 5 546
Comparision of dates in DB2 1 570
DB2 SQL causing overflow error 36 64
AS400 Forms 9 97
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 this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

19 Experts available now in Live!

Get 1:1 Help Now