---
title: The all-important (to ProTop) database analysis
description: Having a recent database analysis stored in your PROTOPDIR/dbanalys directory is central to informing ProTop about the state of your database. Got one?
---

[Skip to content](https://help.wss.com/the-all-important-database-analysis#main-content)

English

Show submenu for translations

[Questions? Comments?](https://help.wss.com/kb-tickets/new?hsLang=en)

![ProTop-helpnb.png\]](https://help.wss.com/hs-fs/hubfs/ProTop-helpnb.png?height=39&name=ProTop-helpnb.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Questions? Comments?](https://help.wss.com/kb-tickets/new)
- [Download ProTop](https://protop.com/download)

[Download ProTop](https://protop.com/download)

 Ask me anything. Go ahead.

- There are no suggestions because the search field is empty.

1. [ProTop Knowledge Base](https://help.wss.com/?hsLang=en)
2. [DBA](https://help.wss.com/dba?hsLang=en)

# The all-important (to ProTop) database analysis

## Having a recent database analysis stored in your PROTOPDIR/dbanalys directory is central to informing ProTop about the state of your database. Got one?

Regularly generating a database analysis and storing a copy in your ProTop installation informs the following ProTop features:

- (^r) dbanalys review & reports
- (t) Table Activity
- (i) Index Activity
- (l) LOB Activity
- (H) Health Check
- (^d) dump & load scripts
- (^u) SQL update stats script

You can generate a database analysis for ProTop in a number of ways:

1. Start ProTop RT and use the "!" command key to generate the report in the proper location.  This option will warn you that it can be a very intensive process and is best run during the off hours.
2. From the operating system, you can simply cd to \[PROTOPDIR\]/bin and run:  
   
   ```
   bin/dbanalys.sh <dbpath/dbname> <friendlyName>
   ```
   
    This shell will remain in use until the report ends.  Or ...
3. To automate it using your preferred scheduler, add
   
   ```
   [PROTOPDIR]/bin/dbanalys.sh <dbpath/dbname> <friendlyName> 
   ```
   
    to your scheduler.
4. To use ProTop's scheduler, you will find an example command line in etc/schedule.cfg.
   
   NOTE: If you do not already have a localized version, copy etc/schedule.cfg to etc/schedule.\[\*\].cfg. e.g. etc/schedule.yourCustId.cfg or etc/schedule.yourServerName.cfg. Edit your localized file and not the original etc/schedule.cfg file, which is overwritten at each update of ProTop.
   
   Edit your localized schedule.cfg and find that line that contains dbanalys.sh. In a recent version of ProTop, it will look like this:
   
   ```
   #+++# 0 1 * * 0 foreachdb.sh dbanalys.sh > ${PTTMP}/foreachdb_dbanal.err 2>&1 &
   ```
   
    If you have one or more databases to generate the report for, and running them at 1 AM on Sunday works for you, remove the comment from the beginning of that line. Check back after Sunday; you should see files in your dbanalys directory that end with ".dba".
   
   WARNING:  The ProTop scheduler is single-threaded.  Be sure to put any run of the dbanalys into the background by adding & to the end of the scheduler line.

### Does your database analysis take too long?

If your database analysis takes too long due to the size of your database and or the size of the time window in which you have to complete the analysis, consider multi-threading it.

See $PROTOP/util/gentab.p.  It generates a sample script to run tabanalys on each storage area in parallel.

- [Getting Started](https://help.wss.com/getting-started?hsLang=en)
- [ProTop Real-Time (RT) Monitoring](https://help.wss.com/protop-real-time-rt-monitoring?hsLang=en#main-content)

    - [Panel Details](https://help.wss.com/protop-real-time-rt-monitoring?hsLang=en#panel-details)
- [ProTop Portal Alerts Dashboard](https://help.wss.com/protop-portal-alerts-dashboard?hsLang=en#main-content)

    - [Default Alerts](https://help.wss.com/protop-portal-alerts-dashboard?hsLang=en#default-alerts)
- [ProTop Portal Trends Dashboard](https://help.wss.com/protop-portal-trends-dashboard?hsLang=en)
- [Advanced Alerting Configuration](https://help.wss.com/advanced-alerting-configuration?hsLang=en)
- [Alertable Metrics](https://help.wss.com/alertable-metrics?hsLang=en)
- [Web Portal Administration](https://help.wss.com/web-portal-administration?hsLang=en)
- [Release Notes](https://help.wss.com/release-notes?hsLang=en#main-content)

    - [Dashboards](https://help.wss.com/release-notes?hsLang=en#dashboards)
    - [Web Portal](https://help.wss.com/release-notes?hsLang=en#web-portal)
- [Troubleshooting](https://help.wss.com/troubleshooting?hsLang=en)
- [devOps](https://help.wss.com/devops?hsLang=en)
- [DBA](https://help.wss.com/dba?hsLang=en)
- [WSS Internal](https://help.wss.com/wss-internal?hsLang=en)
- [WSS](https://help.wss.com/wss?hsLang=en)
- [Health Check](https://help.wss.com/health-check?hsLang=en)
- [Reports](https://help.wss.com/reports?hsLang=en)

[![OpenEdge Experts - White Star Software](https://help.wss.com/hs-fs/hubfs/logoWSS_H-2.png?width=600&height=225&name=logoWSS_H-2.png "OpenEdge Experts - White Star Software")](https://www.wss.com?hsLang=en)

ProTop Knowledge Base

Copyright © 2026, White Star Software Inc.