3.2.8 Editing HA Monitor Kit Commands

Normally there is no need to edit HA Monitor Kit commands, but if necessary you can edit the listener control utility commands and the commands used in SQL*Plus.

Reference note
For example, if SYS audit logging is enabled in the Oracle settings and you connect to Oracle as the SYS user, audit logs will be output for each monitored instance, generating a proliferation of log files. To avoid this, consider editing the HA Monitor Kit commands to change the connecting Oracle user when monitoring an Oracle instance. For details, see Changing the connecting Oracle user when monitoring an Oracle instance in (2) Editing examples.

If you edit HA Monitor Kit commands, carefully follow the steps listed below, taking note of the command structure and editing examples that are shown.

HA Monitor Kit command structure

The HA Monitor Kit command structure is as follows:

Organization of this subsection
(1) Editing procedure
(2) Editing examples

(1) Editing procedure

The figure below shows the procedure for editing HA Monitor Kit commands. Perform step 3 only if necessary.

Figure 3-10 Procedure for editing HA Monitor Kit commands

[Figure]

  1. Using the cp -p command, copy the files that you need to edit from the command file directory to the edited command file directory.
    Command file directory
    /opt/hitachi/HAmonOra/bin
    Edited command file directory
    /opt/hitachi/HAmonOra/bin_ex
  2. Edit the files in the edited command file directory.
    In this example, the file haorainsbgn is edited.
    For details, see (2) Editing examples.
  3. Perform this step only after upgrading from HA Monitor Kit 01-00. Reconfigure the server start, termination, and monitoring commands using the post-upgrade HA Monitor Kit sample files for those commands.
    For details, see 3.2.7(1) Setting up the server start, termination, and monitoring commands.
    Note
    If you upgrade from HA Monitor Kit 01-01 or later after editing a command, the new version of the file will not be installed in the command file edit directory (/opt/hitachi/HAmonOra/bin_ex). Therefore, you might have to repeat the editing procedure on the new version of the file in the command file directory (/opt/hitachi/HAmonOra/bin). For details about the files that require editing, see Usage Notes in the Release Notes.

(2) Editing examples

The following are examples of how to edit HA Monitor Kit commands when you want to connect to Oracle as a particular Oracle user: