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

-g
Access the global profile variables.
-i
Specifies the instance profile to use instead of the current or default. The node number is a number listed in the db2nodes.cfg file.
-all
Display all occurrences of the local environment variables as defined in:
-null
Set 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
Reset the profile registry for the given instance. The node number is a number listed in the db2nodes.cfg file.
-n
Specifies the remote DB2 administration server node name.
-u
Specifies the user ID to use for the administration server attachment.
-p
Specifies the password to use for the administration server attachment.
-l
List all instance profiles.
-lr
List all supported registry variables.
-v
Verbose mode.
-h/-?
Display 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 ]