Sun Cluster 3.0 12/01 Data Services Installation and Configuration Guide

How to Enable SAP to Run in the Cluster

During SAP installation, the SAP software creates files and shell scripts on the server on which you installed the SAP central instance. These files and scripts use physical server names. To run the SAP software with Sun Cluster software, replace references to a physical server with references to a network resource (logical hostname or shared address). Throughout these steps, the replaceable term physicalserver represents a physical server, and the replaceable term logical-hostname represents a network resource.

Perform the following steps to enable SAP to run in the cluster.


Note -

Make backup copies of the files that you will modify in the following steps.


  1. Log in to the node on which you installed the SAP software.

  2. Shut down the SAP central instance and the database.


    Note -

    In addition to the central instance and database, shut down any application servers that are running.


  3. Modify all of the file names that include a physical server name in the following directories.

    • The sapsidadm home directory - Become the sapsidadm user before you edit these files.

    • The orasapsid home directory - Become the orasapsid user before you edit these files.

    • SAP profile directory - Become the sapsidadm user before you edit these files.

    For example, rename the .sapenv_physicalserver.csh file as .sapenv.csh.

  4. Modify all of the file contents-except log file contents-that reference a physical server name in the following directories.

    • The sapsidadm home directory - Become the sapsidadm user before you edit these files.

    • The orasapsid home directory - Become the orasapsid user before you edit these files.

    • SAP profile directory - Become the sapsidadm user before you edit these files.

    For example, change any physicalserver reference in the startup and shutdown scripts to a logical hostname reference.

  5. As user sapsidadm, add an entry such as the following example for the parameter SAPLOCALHOST.


    SAPLOCALHOST=logical-hostname
    

    Add this entry to the SAPSID_Service-StringSystem-Number_logical-hostname profile file under the /sapmnt/SAPSID/profile directory.

    This entry enables the external application server to locate the central instance by using the network resource (logical hostname or shared address).