To install DB2 Query Patroller using installp or smit, perform the steps listed below. Refer to Manual Installation Commands for detailed syntax and parameter information.
Server
. INSTHOME/sqllib/db2profile
. INSTHOME/sqllib/dqpprofile
Note: | If a C shell is being used, add source /sqllib/db2cshrc and source /sqllib/dqpcshr to the .login file. |
dqpcrt -s -p port_name instance_name
The port_name variable is the port name you used in step 2. instance_name is the name of the DB2 UDB EEE instance. Refer toManual Installation Commands for detailed syntax and parameter information.
Note: | To remove an instance you can run the dqpdrop instance_name command. Refer to the Commands section for detailed syntax and parameter information. You can only run this command on the node where the server is set up. |
dqpsetup -D database_name -g nodegroup_name -n node_number -t tablespace_name -r result_tablespace_name -l tablespace_path
Refer to Manual Installation Commands for detailed syntax and parameter information.
. INSTHOME/sqllib/db2profile
. INSTHOME/sqllib/dqpprofile
Note: | If a C shell is being used add source /sqllib/db2cshrc source /sqllib/dqpcshr to the .login file. |
dqpcrt -a -p port_name instance_name
Refer to Manual Installation Commands for detailed syntax and parameter information.
To manually create the DB2 Query Patroller schema and bind all the application bind files perform the following steps:
db2_qp_schema <schema_input_filename> <database_alias> <user> <password> <querypatroller_tablespace>
db2_qp_schema <schema_input_filename> <database_alias> <querypatroller_tablespace>
db2 bind @db2qp.lst blocking all grant public
db2 bind iwmsx001.bnd isolation ur blocking all grant public insert buf datetime iso
db2 bind @db2qp_sp.lst blocking all
dqpcrt
This command is used to allocate a node on the DB2 UDB EEE system as a DB2 Query Patroller server or agent. The port name to be used with the DB2 Query Patroller instance, and the name of the DB2 UDB EEE instance designated as the DB2 Query Patroller server, are required parameters. Syntax:
>>-dpqcrt----+--s---p--port_name instance_name--+-------------->< +--a---p--port_name instance_name--+ '--h-------------------------------'
Table 6. dqpcrt Command Parameters
Parameter | Description |
---|---|
-s | Used to create a DB2 Query Patroller server on the named DB2 UDB EEE instance. |
-a | Used to create a DB2 Query Patroller agent on the named DB2 UDB EEE instance. |
port_name | Identifies the port name to be used with the DB2 Query Patroller server or agent. |
instance_name | Identifies the name of the DB2 UDB EEE instance that is to designated as a DB2 Query Patroller server instance. |
-h | Displays command usage information. |
This command is used to set the parameters for the DB2 Query Patroller server. The size_DMS parameter and the -o flag are optional. The -o flag can be used to remove schema objects from a previously installed version of this product. Syntax:
>>-dqpsetup----+-| setup parameters |--+----------------------->< '--h--------------------' setup parameters |----d--database_name-----g--nodegroup_group--------------------> >------n--node_number-----t--tablespace_name--------------------> >------r--result_tablespace_name-----l--tablespace_path---------> >-----+---------------+---+-----+---instance_name---------------| '--s--size_DMS--' '--o--'
Table 7. dqpsetup Command Parameters
Parameter | Description |
---|---|
-d database_name | Name of the database to be used with the DB2 Query Patroller server. |
-g nodegroup_name | Name of the nodegroup that contains the tablespace for the DB2 Query Patroller server. |
-n node_number | Node number of a single node where the nodegroup is defined. |
-t tablespace_name | Name of the DB2 Query Patroller tablespace. The default type is an SMS tablespace. |
-r result_tablespace_name | Name of the Result Table Space to be used |
-l tablespace_path | Full path name of the tablespace. |
-s size_DMS | Size of the DMS tablespace. Use the -s flag to specify the size for the DMS tablespace. This parameter is optional and only specified if a DMS tablespace is to be used. The default is an SMS tablespace. |
-o | Overwrites any existing DB2 Query Patroller schema objects. This parameter is optional. |
instance_name | Name of the DB2 UDB EEE instance that is to be designated as a DB2 Query Patroller server. |
-h | Displays command usage information. |
This command is used to find the name of the DB2 UDB EEE instance being used as the DB2 Query Patroller server. It can only be run from the node where the DB2 Query Patroller server was created. Syntax:
>>-dpqlist----+-----+------------------------------------------>< '--h--'
The -h flag displays command usage information.
This command is used to drop an existing DB2 Query Patroller server instance. This command can only be run from the node where the DB2 Query Patroller server was created. Syntax:
>>-dpqdrop----+-instance_name--+------------------------------->< '--h-------------'
The -h flag provides usage information. The instance_name parameter is the name of the DB2 Query Patroller instance that you want to drop.