Best Practices for Deploying HP-UX Secure Resource Partitions (SRP) for SAP Whitepaper

14
3. For Oracle installations only:
Rename the oracle-client directory to something unique on the system, e.g.
/oracle/client_<SID>.
The compartment rules have to be adapted for this action. Most important to note is that
while you are modifying the instantclient, full permission must be given to Oracle or else the
task will have to be executed as root user in the INIT compartment.
If Oracle 10g is used, go to the instantclient directory and adapt the logical link of the
instantclient:
cd /oracle/client_<DBSID>/10x_64
rm -r instantclient
ln -s /oracle/client_<DBSID>/10x_64/instantclient_10204 instantclient
The environment of the <sid>adm user has to be adapted to the new directory. The
respective entries can be found in the home directory of the user in the files “.dbenv.sh”,
.dbenv_<host>.sh”,.dbenv.csh” and “.dbenv_<host>.csh”.
J2EE specific
If a J2EE engine is used, the RDBMS driver location has to be adapted.
Go to the configtool directory, which is typically
/usr/sap/<SID>/<INSTANCE><NR>/j2ee/configtool.
With a text editor change the value of the parameter rdbms.driverLocation in the file
configtool.properties to the new client directory, e.g. :
/oracle/client_<DBSID>/10x_64/instantclient/ojdbc14.jar
Start configtool.sh and change the value of the parameter rdbms.driverLocation to the
new value under
cluster-data -> instance _ID<nnn> -> server_ID<nnn> -> managers -> Configuration
Manager
and
cluster-data -> instance _ID<nnn> -> dispatcher_ID<nnn> -> managers -> Configuration
Manager
Go to directory /usr/sap/<SID>/<INSTANCE><NR>/j2ee/cluster/bootstrap and edit
file bootstrap.properties manually. Change the value of parameter rdbms.driverLocation
to the new client directory.
Change to the directory /usr/sap/<SID>/<INSTANCE><NR>/SDM/programs/config
and edit file sdmrepository.sdc. Search for the old jdbc entry and change it to the new
one.
Change to the directory /usr/sap/<SID>/<INSTANCE><NR>/j2ee/deploying and
edit file rdb.properties. Change the value of the parameter rdbms.driverLocation to the
new value
Change to the directory /usr/sap/<SID>/<INSTANCE><NR>/j2ee and edit file
templateconfiguration.properties. Change the value of the parameter
RDBMS_DRIVER_LOCATION to the new value.
In the SAP profile directory edit the Instance profile (e.g.
/sapmnt/<SID>/profile/<INSTANCE_PROFILE>) and change the value of the
parameter j2ee/dbdriver to the new value.
A restart of the J2EE is necessary to make the changes effective. This restart can be
done later when the SRP compartment is restarted.