PROUTIL DBANALYS qualifier
- Last Updated: January 16, 2024
- 4 minute read
- OpenEdge
- Version 12.8
- Documentation
PROUTIL DBANALYS qualifier
Displays statistical information about index, record, and free chain blocks.
Syntax
|
Parameters
- db-name
- Specifies the database you are using.
- area area-name
- Specifies that DBANALYS is to be performed on the area-name area only.
- tenant tenant-name
- Returns only information related to objects owned by tenant-name. If tenant-name is not valid, DBANALYS exits with an error. Specifying
tenantis only allowed on databases enabled for multi-tenancy. - group group-name
- Returns only information related to objects owned by group-name. If group-name is not valid, DBANALYS exits with an error. Specifying
groupis only allowed on databases enabled for multi-tenancy. - shared
- Returns only information related to shared objects. Specifying
sharedis only allowed on databases enabled for multi-tenancy. - -scan
- Specifies that DBANALYS performs chain analysis with minimal locking (does not turn on table locks).
- -csoutput
-
Specifies that DBANALYS output the analysis data to text files in addition to the screen. The result is that the following files are created:
- db-name
.ch.txt—For chain analysis output - db-name
.ix.txt—For index analysis output - db-name.
tab.txt—For table analysis output - db-name
.block.txt— For block analysis output - db-name
.lob.txt—For LOB analysis output
If you specify an area and
-csoutput, DBANALYS appends the area number to the file name, for example, block analysis output for thesports2020database in area 20 would be sports2020.block_20.txt.For more information about the contents of the files, see the Database analysis output.
- db-name
- -fieldsep sep-value
- When
-csoutputis specified, sep-value indicates the value to separate the columns of output. A space is used by default. Accepted values for sep-value are:- Any ASCII character between 0x21 and 0x7E
sp—to denote a space (the default)tab—to denote a the TAB character (<\t>or ASCII character 0x09)
- -csfilePrefix pref-name
- When
-csoutputis specified, pref-name indicates a file name prefix. The database name is used by default. All remaining elements of the file name are not customizable. - -verbose
- When
-csoutputis specified, the first row of the output files contains header names for each column of output. - -RO
- Runs the utility in read-only mode. Use read-only mode to connect to databases on read-only media or to diagnose and repair issues on a stopped database before starting it. Read-only mode allows any number of connections at once, up to the maximum number of connections. You may run multiple diagnostic utilities concurrently, while the database broker is down, if they all support read-only connection and you run them in read-only mode. This reduces bottlenecks and expedites disaster recovery on large databases.Note: Use
-ROwith caution because it is designed to work only with a read-only connection. Unexpected errors may result if you specify-ROwhen using a single-user or multi-user connection.
Output format
Both non-partitioned and partitioned tables appear in the summary for shared tables in alphabetical order by name. For partitioned tables, the initial partition will appear first, followed by the remainder of the partitions in alphabetical order by partition name.
Example
The following output is a partial sample of the summary section of PROUTIL DBANALYS:
|
Output format
In a complete report where no optional elements are specified on the command line, shared objects (both partitioned and non-partitioned) appear in alphabetical order by name. Partitions of partitioned tables are ordered as follows: the initial partition, then the remainder of the partitions in alphabetical order by partition name. When partitioned indexes are listed, the indexes appear in alphabetical order. For each partitioned index, the Index of Indexes appears first, followed by the remaining partitions in alphabetical order by partition name.
The chain analysis report appears in internal storage order (as stored in the object block for the area) with a column to identify Partition/Tenant/Group. The format of this column is type:name:id:
- type is P for Partition,T for Tenant, or G for Group
- name is the partition name, tenant name, or group name
- id is the partition-id, tenant-id, or group-id
The column is blank if there is no partition, tenant, or group.
The output line listing the number of blocks on chains associated with the Index of Indexes displays _Partition-Policy-Detail._Partition-Internal-Value in the Object column, and P:FullyQualifiedOwningTableName:TableId in the Partition/Tenant/Group column. Composite partitions display C:partition-name:partition-id.
Note
- You can run this utility using a read-only connection. You may run multiple diagnostic utilities concurrently, while the database broker is down, if they all support read-only connection and you run them in read-only mode. To run it in read-only mode, append
-ROto the utility start command. - The output of PROUTIL DBANALYS is the combination of the three individual analysis utilities (CHANALYS, IDXANALYS, and TABANALYS) combined.
- When DBANALYS performs chain analysis, only the length of the record management (RM) chain is reported. You must run CHANALYS to get a more detailed report including the list of free chain blocks.
- If you specify a specific area for analysis, and the area contains LOB data, but not the corresponding records, a warning message is issued indicating that totals cannot be calculated for the LOBs in the LOB Summary and Database Summary sections of the output.