HP-UX Containers (SRP) A.03.01 Administrator's Guide
105
16.8.5 Oracle template
The oracledb template allows you to configure a container to share a single set of Oracle
executables with other containers. You do not need to use this template if you are installing a
separate instance of the Oracle executables in the container.
Table 16.10 Services for the oracle template
Service Description
cmpt
The cmpt service for the oracledb template configures Security Containment file
system rules to allow the container to access the specified Oracle directories. The srp
command adds entries to the container’s compartment rules file
(/etc/cmpt/container_name.rules) that authorizes access to the (global view)
directories specified in the exec_path and data_path variables. The srp
command also adds an include statement to add the rules from the
/opt/hpsrp/etc/cmpt/oracledb.srp_incl file. As delivered by HP, this file is
empty. You can edit this file to contain compartment rules to be applied when
configuring the cmpt service with the oracledb template.
ipfilter
The ipfilter service for the oracledb template adds rules to allow inbound
requests to the specified ports used by the Oracle database server to pass. You can
also specify additional inbound destination TCP port numbers for IPFilter pass rules.
provision
The provision service executes the script provided to provision (deploy) an
admin, login, and network service in the container.
After applying the cmpt service and optionally the ipfilter service for the
oracledb template, you can deploy an Oracle Database Server in the container. You
may need to make a copy or link from the Oracle product installation directory to the
exec_path configured for the cmpt service. You might also need to set up the Oracle
configuration and schema under the data_path configured for the cmpt service.
The oracledb template provides provision service optionally. You must write your
provision script if you need one for any of your customized operations; such as to
change the permissions or copy some files.
You can also copy or create a startup and shutdown script for the Oracle processes,
and install or link it to files in a /var/hpsrp/container_name/sbin/rcN.d
directory.
Table 16.11 Variables for the oracle template
Service Variable Description
cmpt
exec_path
The root directory for Oracle executables. The cmpt service adds
rules to allow the container read access to this directory. Because
this parameter is configured per container, you can select different
versions of the Oracle Database server product on the system.
Default:
/var/hpsrp/
container_name
/opt/u01/home/oracle
data_path
The root directory for Oracle data. The cmpt service adds rules to
allow the container all access to this directory. Users and
processes in the container can read, write, traverse (nsearch),
and delete (ulink) the contents of these directories. In most cases,
you would set up the Oracle configuration and schema under this
path, and set the value of the ORACLE_HOME environment variable
to this path.
Default:
/var/hpsrp/
container_name
/opt/u01/home/oracle
.