Defining dynamic location aliases

You can define dynamic location aliases that enable you to manage subsets of members in a data sharing group, without stopping and restarting DDF or Db2.

Before you begin

Before you can define dynamic location aliases, Db2 must be started.

About this task

You can define as many as 40 dynamic location aliases. These aliases cannot be defined or managed by the DSNJU003 utility, and the DSNJU004 utility does not print any information about these aliases.

When a static and dynamic location alias are defined with the same name, Db2 uses only the dynamic location alias. The statically defined alias with the same name is ignored.

Procedure

To define dynamic location aliases:

  1. Issue the MODIFY DDF command and specify the ALIAS and ADD options.
    For example, you might issue the following command, where ALIAS1 is the alias-name value:
    -MODIFY DDF ALIAS(ALIAS1) ADD
    The ALIAS1 alias is defined as a stopped location alias.
  2. Issue the MODIFY DDF command again to configure the alias. You can specify only one additional option each time that you issue the MODIFY DDF command with the ALIAS option.
    For example, to configure the ALIAS1 location alias with port 9000 and IPv4 address 1.1.1.1, you might issue the following sequence of commands:
    1. To specify 9000 for the port-name value, you might issue the following command:
      -MODIFY DDF ALIAS(ALIAS1) PORT(9000)
    2. To specify 1.1.1.1 for the ip4-address value, you might issue the following command:
      -MODIFY DDF ALIAS(ALIAS1) IPV4(1.1.1.1)
  3. Issue the MODIFY DDF command and specify the ALIAS and START options.
    For example, you might issue the following command to start the ALIAS1 alias:
    -MODIFY DDF ALIAS(ALIAS1) START
    DDF accepts requests to the newly defined location alias whenever DDF is started.

What to do next

You can manage location aliases that are created by the MODIFY DDF command dynamically. That is, you can use the MODIFY DDF command to stop or cancel the alias, modify its configuration, and restart it, all without stopping DDF or Db2. For more information, see Managing dynamic location aliases.