REMOVE_NRG_LINK procedure
The REMOVE_NRG_LINK procedure removes a link from one or all of the Db2® Mirror Network Redundancy Groups (NRGs). This can only be done if the network redundancy group (NRG) has a state of INACTIVE. If the link is the only remaining link in an NRG, the NRG will also be removed.
Authorization: The privileges held by the authorization ID of the statement must include *IOSYSCFG special authority. For the authority needed to use this procedure, see Authorization.
The schema is QSYS2.
- nrg-name
- A character or graphic string that contains the name of the NRG where the link is to be removed.
- source-address
- A character or graphic string that contains the local IP address for the link to remove. Either
an IPv4 or an IPv6 address can be specified. Can also contain the following special value:
- *ALL
- Remove all links for this NRG.
- decrement-load-balance-link-count
- A character or graphic string that indicate whether to decrement the load balance link count.
- NO
- The load balance link count will remain at its current value.
- YES
- The load balance link count will be decremented by one. This is the default.
This parameter is optional.
- line-description
- A character or graphic string that contains the local system line description associated with this link. This parameter is optional and only applies when source-address is an IPv6 link-local address and is used to identify a unique local interface. It is ignored for all other addresses.
- virtual-lan-id
- An integer value for the local virtual LAN identifier associated with this link. This parameter is optional and only applies when source-address is an IPv6 link-local address and is used to identify a unique local interface. It is ignored for all other addresses.
Example
- Remove a link from all Network Redundancy Groups on the source node. Decrease the load balance
link
count.
CALL QSYS2.REMOVE_NRG_LINK(NRG_NAME => '*MIRROR', SOURCE_ADDRESS => '9.5.94.95', DECREMENT_LOAD_BALANCE_LINK_COUNT => 'YES');