ALTER NETWORK ADDRESS

Changes the configuration of an existing network address.

Syntax

ALTER NETWORK ADDRESS address_name { 
    RENAME TO new_name |
    SET TO 'ip_addr' [PORT port_number]|
    [ENABLE | DISABLE]
    }

Parameters

address_name The name of an existing network address to change.
RENAME TO new_name Renames the network address to new_name. This name change does not effect the network address's membership in load balance groups.
SET TO 'ip_addr' Changes the IP address assigned to the network address.
PORT port_number Sets the port number for the network address. You must supply a network address when altering the port number.
[ENABLE | DISABLE] Enables or disables the network address.

Example

This example renames the network address test_addr to alt_node1, then changes its IP address to 192.168.1.200 with port number 4000:

=> ALTER NETWORK ADDRESS test_addr RENAME TO alt_node1;
ALTER NETWORK ADDRESS
=> ALTER NETWORK ADDRESS alt_node1 SET TO '192.168.1.200' PORT 4000;
ALTER NETWORK ADDRESS

See Also