HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

64
10.1.3 The provision Service
The provision service executes the script provided to provision (deploy) an admin, login, network
service in the SRP compartment.
10.1.3.1 Input Data
SRP prompts for the following data. You can also specify a variable name and value in the command
line, as described in 13.1 Creating an SRP Compartment or Adding Data to a Compartment
.
provision script
path
The provision script to use.
Variable Name: script_name.
Default: None.
Oracle executable
path
The root directory for Oracle executables..
Variable Name: exec_path.
Default:
/opt/var/hpsrp/compartment_name/opt/u01/home/oracle.
Oracle DB data
path
The root directory for Oracle data.
Variable Name: data_path.
Default: /var/hpsrp/compartment_name/opt/u01/home/oracle.
10.1.3.2 Completing the Configuration
After applying the cmpt service and optionally the ipfilter service for the oracledb template,
you can deploy an Oracle Database Server in the compartment. You might 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.
Also, 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/compartment_name/sbin/rcN.d directory.
10.2 Replacing or Deleting Oracle SRP Data
Use the following command to replace oracledb template data from an SRP compartment:
srp -r[eplace] compartment_name -t oracledb [-s service[,service]...]
The srp -replace command deletes the specified data, then prompts you for replacement data.
For example, the following command deletes all the IPFilter data for the oracledb template, then
prompts you for replacement data:
srp -replace mySRP -t oracledb -s ipfilter
Use the following command to delete oracledb template data from an SRP compartment:
srp -d[elete] compartment_name -t oracledb [-s service[,service]...]