1.5.2 Preparations on JP1/Software Distribution Workstation
(1) Specifying the registration file for JP1/Software Distribution Workstation
This section discusses the InstallTiming parameter that is specified in the registration file when registering HiRDB as a resource in JP1/Software Distribution Workstation.
OS type | Value of InstallTiming parameter |
---|
HP-UX or Solaris | Specify BOOT in the InstallTiming parameter. Example: InstallTiming BOOT |
To automate the HiRDB setup procedure, specify a HiRDB setup automation shell during the program product installation postprocessing for the registration file (APafterGeneration). For details about the HiRDB setup automation shell, see subsection (2).
(2) Creating a HiRDB setup automation shell
To automate the HiRDB setup procedure, create a shell as the program product installation postprocessing. Specify the pdsetup command in this shell to set up HiRDB. This automates HiRDB setup after online distribution.
The following shows coding examples of the HiRDB setup automation shell:
(a) HP-UX HiRDB/Single Server
- Example 1
- This sample shell uses the installation directory as the HiRDB directory:
/bin/chown USR1 /opt/HiRDB_S 1
/bin/chgrp GRP1 /opt/HiRDB_S 1
/bin/echo 'y' | /opt/HiRDB_S/bin/pdsetup -d /opt/HiRDB_S
/opt/HiRDB_S/bin/pdsetup -c sjis /opt/HiRDB_S 2 |
- Explanation:
- If you use the installation directory as the HiRDB directory, redefine the directory's owner and group as the HiRDB administrator and HiRDB group. Replace the underlined parts with the actual HiRDB administrator's user ID and group ID.
- Replace the underlined part with the actual character encoding you want to use.
- Example 2
- This sample shell does not use the installation directory as the HiRDB directory:
DIR=/usr/HiRDB1 1
/bin/echo 'y' | /opt/HiRDB_S/bin/pdsetup -d $DIR
/opt/HiRDB_S/bin/pdsetup -c sjis $DIR 2
DIR=/usr/HiRDB2 3
/bin/echo 'y' | /opt/HiRDB_S/bin/pdsetup -d $DIR 3
/opt/HiRDB_S/bin/pdsetup -c sjis $DIR 3 |
- Explanation:
- Specify the name of the HiRDB directory.
- Replace the underlined part with the actual character encoding you want to use.
- Repeat as many times as there are HiRDBs being distributed online.
(b) HP-UX HiRDB/Parallel Server
- Example 1
- This sample shell uses the installation directory as the HiRDB directory:
/bin/chown USR1 /opt/HiRDB_P 1
/bin/chgrp GRP1 /opt/HiRDB_P 1
/bin/echo 'y' | /opt/HiRDB_P/bin/pdsetup -d /opt/HiRDB_P
/opt/HiRDB_P/bin/pdsetup -c sjis /opt/HiRDB_P 2 |
- Explanation:
- If you use the installation directory as the HiRDB directory, redefine the directory's owner and group as the HiRDB administrator and HiRDB group. Replace the underlined parts with the actual HiRDB administrator's user ID and group ID.
- Replace the underlined part with the actual character encoding you want to use.
- Example 2
- This sample shell does not use the installation directory as the HiRDB directory:
DIR=/usr/HiRDB1 1
/bin/echo 'y' | /opt/HiRDB_P/bin/pdsetup -d $DIR
/opt/HiRDB_P/bin/pdsetup -c sjis $DIR 2
DIR=/usr/HiRDB2 3
/bin/echo 'y' | /opt/HiRDB_P/bin/pdsetup -d $DIR 3
/opt/HiRDB_P/bin/pdsetup -c sjis $DIR 3 |
- Explanation:
- Specify the name of the HiRDB directory.
- Replace the underlined part with the actual character encoding you want to use.
- Repeat as many times as there are HiRDBs being distributed online.
(c) Solaris HiRDB/Single Server
- Example 1
- This sample shell uses the installation directory as the HiRDB directory:
/bin/chown USR1 /opt/HiRDB_S 1
/bin/chgrp GRP1 /opt/HiRDB_S 1
/bin/echo 'y' | /opt/HiRDB_S/bin/pdsetup -d /opt/HiRDB_S
/opt/HiRDB_S/bin/pdsetup -c ujis /opt/HiRDB_S 2 |
- Explanation:
- If you use the installation directory as the HiRDB directory, redefine the directory's owner and group as the HiRDB administrator and HiRDB group. Replace the underlined parts with the actual HiRDB administrator's user ID and group ID.
- Replace the underlined part with the actual character encoding you want to use.
- Example 2
- This sample shell does not use the installation directory as the HiRDB directory:
DIR=/usr/HiRDB1 1
/bin/echo 'y' | /opt/HiRDB_S/bin/pdsetup -d $DIR
/opt/HiRDB_S/bin/pdsetup -c ujis $DIR 2
DIR=/usr/HiRDB2 3
/bin/echo 'y' | /opt/HiRDB_S/bin/pdsetup -d $DIR 3
/opt/HiRDB_S/bin/pdsetup -c ujis $DIR 3 |
- Explanation:
- Specify the name of the HiRDB directory.
- Replace the underlined part with the actual character encoding you want to use.
- Repeat as many times as there are HiRDBs being distributed online.
(d) Solaris HiRDB/Parallel Server
- Example 1
- This sample shell uses the installation directory as the HiRDB directory:
/bin/chown USR1 /opt/HiRDB_P 1
/bin/chgrp GRP1 /opt/HiRDB_P 1
/bin/echo 'y' | /opt/HiRDB_P/bin/pdsetup -d /opt/HiRDB_P
/opt/HiRDB_P/bin/pdsetup -c ujis /opt/HiRDB_P 2 |
- Explanation:
- If you use the installation directory as the HiRDB directory, redefine the directory's owner and group as the HiRDB administrator and HiRDB group. Replace the underlined parts with the actual HiRDB administrator's user ID and group ID.
- Replace the underlined part with the actual character encoding you want to use.
- Example 2
- This sample shell does not use the installation directory as the HiRDB directory:
DIR=/usr/HiRDB1 1
/bin/echo 'y' | /opt/HiRDB_P/bin/pdsetup -d $DIR
/opt/HiRDB_P/bin/pdsetup -c ujis $DIR 2
DIR=/usr/HiRDB2 3
/bin/echo 'y' | /opt/HiRDB_P/bin/pdsetup -d $DIR 3
/opt/HiRDB_P/bin/pdsetup -c ujis $DIR 3 |
- Explanation:
- Specify the name of the HiRDB directory.
- Replace the underlined part with the actual character encoding you want to use.
- Repeat as many times as there are HiRDBs being distributed online.