PROUTIL DBANALYS qualifier
- Last Updated: August 23, 2021
- 3 minute read
- OpenEdge
- Version 12.2
- Documentation
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
- Specifies that DBANALYS is to be filtered to only provide information
related to objects that are 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
- Specifies that DBANALYS is to be filtered to only provide information
related to objects that are 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
- Specifies that DBANALYS is to be filtered to only provide 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
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.
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 as follows: type:name:id where type is P for Partition, T for Tenant, or G for Group; name is the partition name, tenant name, or group name; and 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
- 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 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.