IBM Books

Command Reference

db2set - DB2 Profile Registry Command

Displays, sets, or removes DB2 profile variables. An external environment registry command that supports local and remote administration, via the DB2 Administration Server, of DB2's environment variables stored in the DB2 profile registry.

Authorization

sysadm

Required Connection

None

Command Syntax

>>-db2set----+-------------------+------------------------------>
             '-variable=--value--'
 
>-----+-------------------------------------+---+-------+------->
      +--g----------------------------------+   '--all--'
      '-+---------------------------------+-'
        '--i--instance--+--------------+--'
                        '-node-number--'
 
>-----+--------+---+---------------------------------+---------->
      '--null--'   '--r--instance--+--------------+--'
                                   '-node-number--'
 
>-----+-------------------------------------------------+------->
      '--n--DAS node--+------------------------------+--'
                      '--u--user--+---------------+--'
                                  '--p--password--'
 
>-----+-----+---+-----+---+----+-------------------------------><
      +--l--+   '--v--'   +--h-+
      '--lr-'             '--?-'
 

Command Parameters

variable= value
Sets a specified variable to a specified value. To delete a variable, do not specify a value for the specified variable. Changes to settings take effect after the instance has been restarted.

-g
Accesses the global profile variables.

-i
Specifies the instance profile to use instead of the current, or default.

node-number
Specifies a number listed in the db2nodes.cfg file.

-all
Displays all occurrences of the local environment variables as defined in:

-null
Sets the value of the variable at the specified registry level to NULL. This avoids having to look up the value in the next registry level, as defined by the search order.

-r instance
Resets the profile registry for the given instance.

-n DAS node
Specifies the remote DB2 administration server node name.

-u user
Specifies the user ID to use for the administration server attachment.

-p password
Specifies the password to use for the administration server attachment.

-l
Lists all instance profiles.

-lr
Lists all supported registry variables.

-v
Specifies verbose mode.

-h/-?
Displays help information. When this option is specified, all other options are ignored, and only the help information is displayed.

Examples

Usage Notes

If no variable name is specified, the values of all defined variables are displayed. If a variable name is specified, only the value of that variable is displayed. To display all the defined values of a variable, specify variable -all. To display all the defined variables in all registries, specify -all.

To modify the value of a variable, specify variable=, followed by its new value. To set the value of a variable to NULL, specify variable -null.
Note:Changes to settings take effect after the instance has been restarted.

To delete a variable, specify variable=, followed by no value.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]