Hitachi

Hitachi Advanced Database Command Reference


15.3.1 Collecting cost information for a specific table

This example collects cost information for table TABLE01. The absolute path name of the cost-information collection-options file is /home/adbmanager/getcst_file/env01.txt.

To collect cost information:
  1. Create a cost-information collection-options file.

  2. Execute the adbgetcst command.

Using an example, the following subsections explain each of these steps.

Organization of this subsection

(1) Creating a cost-information collection-options file

This example creates a cost-information collection-options file and specifies the number of processing real threads to be used for executing the adbgetcst command.

Specification example of cost-information collection-options file
set adb_getcst_rthd_num = 10

(2) Executing the adbgetcst command

adbgetcst -u ADBUSER01                                ...1
          -p '#HelloHADB_01'                          ...2
          -t TABLE01                                  ...3
          -z /home/adbmanager/getcst_file/env01.txt   ...4
Explanation:
  1. Specifies the authorization identifier of the HADB user who executes the adbgetcst command.

  2. Specifies the password for the authorization identifier that was specified in the -u option.

  3. Specifies the table name of the table for which cost information is to be collected.

  4. Specifies the absolute path name of the cost-information collection-options file created in (1) Creating a cost-information collection-options file.