Nonstop Database, HiRDB Version 9 Command Reference

[Contents][Index][Back][Next]

16.7 Examples

This section presents examples of using the optimizing information collection utility.

In the examples, the authorization identifier used to connect to HiRDB is USERID, the table owner's authorization identifier is AUTHID, and the password is PASSWD.

Organization of this section
(1) Collecting optimization information
(2) Collecting optimization information and then saving the processing results in a file
(3) Deleting optimization information from the data dictionary
(4) Registering optimization information in the optimization information parameter file
(5) Saving optimization information in an optimization information parameter file

(1) Collecting optimization information

This example collects optimization information for table T1:

pdgetcst -u USERID -a AUTHID -p PASSWD -t T1

(2) Collecting optimization information and then saving the processing results in a file

This example collects optimization information for table T2 and saves the processing result in a file (/tmp/LOG):

pdgetcst -u USERID -a AUTHID -p PASSWD -t T2 -l /tmp/LOG

(3) Deleting optimization information from the data dictionary

This example deletes optimization information for table T3 from the data dictionary table:

pdgetcst -u USERID -a AUTHID -p PASSWD -t T3 -d

(4) Registering optimization information in the optimization information parameter file

This example registers the contents of the optimization information parameter file (/tmp/prmfile). The example registers optimization information for table T4 only:

pdgetcst -u USERID -a AUTHID -p PASSWD -t T4 -s /tmp/prmfile

(5) Saving optimization information in an optimization information parameter file

This example saves optimization information for table T5 in an optimization information parameter file (/tmp/prmfile):

pdgetcst -u USERID -a AUTHID -p PASSWD -t T5 -e /tmp/prmfile