Specifies connection settings for the back-end process.
Authorization
None
Required Connection
None
Command Syntax
(1)
>>--------SET CLIENT----+-----------------+--------------------->
'-CONNECT--+-1-+--'
'-2-'
>-----+------------------------------+-------------------------->
'-DISCONNECT--+-EXPLICIT----+--'
+-CONDITIONAL-+
'-AUTOMATIC---'
>-----+---------------------------------+----------------------->
'-MAX_NETBIOS_CONNECTIONS--value--'
>-----+--------------------+---+--------------------------+----->
'-SQLRULES--+-DB2-+--' '-SYNCPOINT--+-ONEPHASE-+--'
'-STD-' +-TWOPHASE-+
'-NONE-----'
>-----+---------------------------------+----------------------->
'-CONNECT_NODE--+-node-number--+--'
'-CATALOG_NODE-'
>-----+---------------------------+----------------------------><
'-ATTACH_NODE--node-number--'
Notes:
Command Parameters
For example, if nodes 1, 2, and 3 are defined, the client only needs to be able to access one of these nodes. If only node 1 containing databases has been cataloged, and this parameter is set to 3, then the next attach attempt will result in an attachment at node 3, after an initial attachment at node 1.
Examples
To set specific values:
db2 set client connect 2 disconnect automatic sqlrules std
syncpoint twophase
To change SQLRULES back to DB2, but keep the other settings:
db2 set client sqlrules db2
| Note: | The connection settings revert to default values after TERMINATE is issued. |
Usage Notes
SET CLIENT cannot be issued if one or more connections are active.
If SET CLIENT is successful, the connections in the subsequent units of work will use the connection settings specified. If SET CLIENT is unsuccessful, the connection settings of the back-end process are unchanged.
For more information about distributed unit of work (DUOW), see the Administration Guide.
See Also