OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

8.1.6 Changing a shared library

In multiOpenTP1 configuration, a shared library area resides on the memory of each OpenTP1. When the versions of two OpenTP1 systems are the same, one shared library can be shared by them (only for HP-UX). Since two OpenTP1 systems reference one shared library, memory consumption can be reduced.

To share a shared library by multiple OpenTP1 systems, match all the SHLIB_PATH environment variables of the OpenTP1 systems. The following shows the procedure.

Organization of this subsection
(1) Changing /etc/inittab
(2) Changing the environment variables
(3) Changing the definition

(1) Changing /etc/inittab

  1. Stop OpenTP1 to change /etc/inittab. If changing the setting while OpenTP1 is operating, the OpenTP1 system fails.
    Before change
    d1:2:respawn:env SHLIB_PATH=/BeTRAN/lib /BeTRAN/lib
    /servers/prcd /BeTRAN
    d2:2:respawn:env SHLIB_PATH=/BeTRAN1/lib /BeTRAN1/lib
    /servers/prcd /BeTRAN1
    After change (Changed parts are indicated with an underline.)
    d1:2:respawn:env SHLIB_PATH=/BeTRAN/lib /BeTRAN/lib
    /servers/prcd /BeTRAN
    d2:2:respawn:env SHLIB_PATH=/BeTRAN1/lib /BeTRAN1/lib
    /servers/prcd /BeTRAN1
  2. Enter the dcreset command to incorporate the changes in /etc/inittab into the OS.
    Executing dcsetup -d deletes the contents of /etc/inittab. After dcsetup -d is executed, define the contents of /etc/inittab using dcsetup then change etc/inittab again.

(2) Changing the environment variables

Change the environment variables that set the command issuance environment.

Before change
Environment variable OpenTP1 A OpenTP1 B
DCDIR /BeTRAN /BeTRAN1
DCCONFPATH /BeTRAN/conf /BeTRAN1/conf
SHLIB_PATH /BeTRAN/lib /BeTRAN1/lib

After change (Changed parts are indicated with an underline.)
Environment variable OpenTP1 A OpenTP1 B
DCDIR /BeTRAN /BeTRAN1
DCCONFPATH /BeTRAN/conf /BeTRAN1/conf
SHLIB_PATH /BeTRAN/lib /BeTRAN/lib

If the versions of the OpenTP1 systems are different, the operation cannot be assured. If the directory specified by SHLIB_PATH does not contain a library, the OS suppresses activation of the process.

(3) Changing the definition

If SHLIB_PATH is defined in the putenv format in the system definition, define it as in paragraph (2).