Hitachi

Hitachi Advanced Database Command Reference


13.10.3 Checking the usage of a specific table (output of summary information for a table)

This example outputs summary information for a specific table (ADBUSER01.TABLE01) and checks the following:

adbdbstatus command that is executed

adbdbstatus -c table              ...1
            -n ADBUSER01.TABLE01  ...2
            -S K                  ...3
            --shared-lock         ...4
Explanation:
  1. Specifies table as the range of summary information collection.

  2. Specifies the name of the table (ADBUSER01.TABLE01) for which summary information is to be collected.

  3. Specifies kilobytes as the units for displaying usage amounts.

  4. Specifies the --shared-lock option so that information can be output even while another SQL statement or command is updating the database.

    Note that if the --shared-lock option is specified, the usage of deletion-pending chunks in a system table (base table) cannot be output.

When the adbdbstatus command is executed, summary information for table ADBUSER01.TABLE01 is output.

The following shows how to check the output results.

Organization of this subsection

(1) Checking the usage amount (in kilobytes) of a table

[Figure]

To check the usage amount (in kilobytes) of table ADBUSER01.TABLE01:

  1. Check the schema name and table identifier of the table.

    Verify that the schema name (ADBUSER01) of the table is output in the column headed Schema_name (column 5 in the output results) and the table identifier (TABLE01) is output in the column headed Table_identifier (column 6 in the output results).

  2. Check the usage amount (in kilobytes) of the table.

    Obtain the value of the KB_Used_pages column (col. 21 in the output results).