Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS

ProcedureHow to Verify That the Configuration for the SAP Web Application Server and SAP J2EE Engine Components Is Correct for the Data Service

Perform the following procedure on each node that can master the resource group for the SAP web application server or SAP J2EE Engine component.

If the SAP web application server or SAP J2EE Engine component is configured as a scalable resource, the resource runs on all these nodes simultaneously. Therefore, you must execute this procedure on all nodes that can simultaneously master the scalable SAP web application server or SAP J2EE Engine component resource.

  1. If you have configured the resource group for the SAP web application server or SAP J2EE Engine component as a failover resource group, enable the logical hostname resource for the resource group.

  2. On the node where the logical hostname resource is enabled, become superuser, then the sapsidadm user with superuser environment.


    # su - root
    # su sapsidadm
    
  3. Set the following environment variables:

    • Set the LD_LIBRARY_PATH variable to /sapmnt/SAPSID/exe.

    • Set the SAPSYSTEMNAME variable to the appropriate SAP system identification.

    • Add the following paths to the PATH variable: /usr/sbin:/usr/bin:/usr/cluster/bin.

    • Set the SAPSYSTEM variable to the system number configured for the specific instance of SAP which should be handled by the resource.

    • Set the HOME environment variable to the home directory of the SAP administration user.

    • Set the LOGNAME variable to root.

  4. Start the database.

    Before running the SAP start script in the next step, you must start the database.

  5. Run the SAP start script for the SAP web application server or SAP J2EE Engine component using the absolute path and the appropriate arguments.

    The following command is an example that runs the SAP start script for the SAP web application server component. You must run the equivalent command for your installation.


    # /usr/sap/SC3/SYS/exe/run/startsap_webas_server r3 D01
    

    The following command is an example that runs the SAP start script for the SAP J2EE Engine component. You must run the equivalent command for your installation.


    # /usr/sap/SC3/SYS/exe/run/startsap_webas_server r3 JC01
    
  6. Change to the home directory of the SAP administration user.

    For SAP web application server component only:

    The dpmon utility writes files to the current directory, and this directory must be writable by the SAP administration user. In Step 3 you set the HOME environment variable to the home directory of the SAP administration user.


    # cd $HOME
    

    For SAP J2EE Enginecomponent only:

    The probe utility writes files to the current directory, and this directory must be writable by the SAP administration user. In Step 3 you set the HOME environment variable to the home directory of the SAP administration user.


    # cd $HOME
    
  7. For SAP web application server component only — after the SAP system starts successfully, run the probe command for the dispatcher of the SAP instance. The following command is an example:


    # /usr/sap/SC3/SYS/exe/run/dpmon -info
    
  8. For SAP J2EE Enginecomponent only — after the SAP J2EE engine starts successfully, verify it by deploying and running some examples. See the SAP Web Application Server Installation Guide for instructions.

  9. Verify that the probe was successful.

    The probe is successful when the return code equals zero.

  10. Run the SAP stop script for the SAP web application server or SAP J2EE engine component to verify that the SAP Web Application Server or SAP J2EE engine can be stopped.

    Verify that the SAP Web Application Server or SAP J2EE engine can be stopped correctly. Run the SAP stop script for the SAP web application server or SAP J2EE engine component with the full path and the appropriate arguments. The following command is an example that runs the SAP stop script. Run the equivalent command for your installation.

    For SAP web application server component only:


    # /usr/sap/SC3/SYS/exe/run/stopsap_webas_server r3 D01
    

    For SAP J2EE Enginecomponent only:


    # /usr/sap/SC3/SYS/exe/run/stopsap_webas_server r3 JC01