Sun Cluster 3.0 U1 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 logical hostname. Throughout these steps, the replaceable term physicalserver represents a physical server, and the replaceable term logical-hostname represents a logical hostname. The phrase logical hostname denotes the logical hostname where traffic between the database and the application server occurs. See the Sun Cluster 3.0 U1 Concepts for more information on logical hostnames.

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 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_logical-hostname.csh.

  4. Modify all 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 logical hostname.