Hitachi

Hitachi Advanced Database Setup and Operation Guide


8.11 Changing the host name or IP address of the server machine's OS

This section explains how to change the host name or IP address of the OS of the server machine on which the HADB server is installed.

To change the host name or IP address of the server machine's OS, you must change the settings of both the HADB server and HADB client.

■ Tasks to be performed on the HADB server

The following explains the tasks to be performed on the HADB server to change the host name or IP address of the server machine's OS.

  1. Terminate the HADB server normally.

    Execute the adbstop command to terminate the HADB server normally. For details about the adbstop command, see 10.2.2 Terminating the HADB server.

  2. Change the host name or IP address of the server machine's OS.

    When the HADB server has terminated normally, change the host name or IP address of the OS of the server machine on which the HADB server is installed.

  3. Start the HADB server.

    After changing the host name or IP address of the server machine's OS, execute the adbstart command to start the HADB server. For details about the adbstart command, see 10.2.1 Starting the HADB server.

Note

You can change the host name or IP address of the server machine's OS without terminating the HADB server if all of the following conditions are met:

  • The multi-node function is not used.

  • The audit trail facility is not used.

  • In a cold standby configuration, both of the following two conditions are met:

    • The host name of the LAN to be used as the monitoring path of HA Monitor is not changed.

    • The alias IP address used for communication between the HADB client and the HADB server is not changed.

Note the following if you change the host name or IP address without terminating the HADB server: The HADB clients (application programs) connected to the HADB server become unable to communicate with the HADB server when the host name or IP address is changed.

■ Tasks to be performed on the HADB client

The following explains the tasks to be performed on the HADB client to change the host name or IP address of the server machine's OS.

  1. Terminate the application programs.

    Terminate all application programs that connect to the HADB server.

  2. Change the host name or IP address of the HADB server specified in the client definition.

    After terminating the application programs, change the host name or IP address of the HADB server specified for the adb_clt_rpc_srv_host operand in the client definition.

    For details about the adb_clt_rpc_srv_host operand in the client definition, see Contents of operands in the client definition under Designing Client Definitions in the HADB Application Development Guide.

    • If the JDBC driver is used

      Change the host name or IP address of the HADB server specified with the property that corresponds to the adb_clt_rpc_srv_host operand in the client definition. The JDBC driver can use a system property, user property, or connection URL property. For details, see Setting Up an Environment for the JDBC Driver in the HADB Application Development Guide.

    • If the ODBC driver or a CLI function is used

      Change the host name or IP address of the HADB server specified for the adb_clt_rpc_srv_host operand in the client definition. For details, see Setting Up an Environment for an HADB Client (If the ODBC Driver and CLI Functions Are Used) in the HADB Application Development Guide.

  3. Start the application programs.

    After changing the host name or IP address of the HADB server specified in the client definition, start the application programs that are to be connected to the HADB server.

Important