Skip Headers
Oracle® Fusion Applications Enterprise Deployment Guide for Financials
11g Release 7 (11.1.7)

Part Number E27364-10
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

6 Scaling Out Oracle HTTP Server

The first Oracle HTTP Server was configured during the provisioning process (see Chapter 5). This chapter describes how to scale out Oracle HTTP Server for additional hosts.

This chapter includes the following topics:

6.1 Performing the Scaleout

To scale out Oracle HTTP Server:

  1. Reboot WEBHOST2 to start the scaleout from a clean machine.

    Note:

    WEBHOST2 and WEBHOST1 should be identical machines.

  2. Create the directory ORACLE_BASE/repository/installers with the same user that installed Oracle HTTP Server on WEBHOST1.

  3. Copy or ftp the installers and jdk6 from WEBHOST1 to WEBHOST2:

    WEBHOST1> ORACLE_BASE/repository/installers/webgate
    

    to

    WEBHOST2> ORACLE_BASE/repository/installers
    
    WEBHOST1> ORACLE_BASE/repository/installers/webtier
    

    to

    WEBHOST2> ORACLE_BASE/repository/installers
    
    WEBHOST1> ORACLE_BASE/repository/jdk6
    

    to

    WEBHOST2> ORACLE_BASE/repository/jdk6
    
  4. Run the following command to install Oracle Web Tier on WEBHOST2 (oraInventory should be located in ORACLE_BASE/oraInventory):

    ORACLE_BASE/repository/installers/webtier/Disk1/runInstaller
    

    The Oracle Fusion Middleware 11g Oracle Web Tier Utilities Configuration Welcome screen opens.

    Click Next. The Install Software Updates screen opens.

  5. Select the appropriate options, and then click Next to start the installation.

    The Select Installation Type screen, shown in Figure 6-1, opens.

    Figure 6-1 Select Installation Type Screen

    Described in the surrounding text
  6. Select Install Software - Do Not Configure and click Next.

    The Prerequisite Checks screen, shown in Figure 6-2, opens.

    Figure 6-2 Prerequisite Checks Screen

    Described in the surrounding text

    Click Next. The Specify Installation Location screen, shown in Figure 6-3, opens.

    Figure 6-3 Specify Installation Location Screen

    Described in the surrounding text

    Select the path to Oracle Middleware Home and enter a name for the home directory. For example, /u01/oracle/products/webtier_mwhome/. Click Next.

  7. In the Specify Security Updates screen, shown in Figure 6-4, do the following:

    • Enter an email address

    • Indicate that you wish to receive security updates from My Oracle Support

    • Enter your My Oracle Support password

    Figure 6-4 Specify Security Updates Screen

    Described in the surrounding text

    Click Next. The Installation Summary screen, shown in Figure 6-5, opens.

    Figure 6-5 Installation Summary Screen

    Described in the surrounding text
  8. Click Install. The Installation Progress screen, shown in Figure 6-6, opens.

    Figure 6-6 Installation Progress Screen

    Described in the surrounding text

    Click Next when the installation has finished. The Installation Complete screen, shown in Figure 6-7, opens.

    Figure 6-7 Installation Complete Screen

    Described in the surrounding text

    Click Finish.

  9. View the directory structure that has been created:

    cd ORACLE_BASE/products/webtier_mwhome
    
  10. Install the Oracle Web Tier patches:

    Note:

    If any directory under ORACLE_BASE/repository/installers/webtier/patch exists, perform Steps a and b, listed below. If no directory exists, skip these steps and continue to Step 11.

    1. Add ORACLE_BASE/products/webtier_mwhome/webtier/OPatch to the $PATH environment variable. Then set or change $ORACLE_HOME to ORACLE_BASE/products/webtier_mwhome/webtier/, as shown in the following example:

      export PATH=ORACLE_BASE/products/webtier_mwhome/webtier/OPatch:$PATH
      export ORACLE_HOME=ORACLE_BASE/products/webtier_mwhome/webtier
      

      Note:

      Running the $ which opatch command will give you the path specified above.

    2. To install a patch, first change directory to the folder that corresponds to each existing patch number, and run the following command:

      opatch apply
      
  11. Begin configuring the Oracle Web Tier components:

    cd ORACLE_BASE/products/webtier_mwhome/webtier/bin
    
    run ./config.sh
    

    The Oracle Fusion Middleware 11g Oracle Web Tier Utilities Configuration Welcome screen opens.

    Click Next. The Configure Components screen, shown in Figure 6-8, opens.

    Figure 6-8 Configure Components Screen

    Described in the surrounding text
  12. Select Oracle HTTP Server and Associate Selected Components with WebLogic Domain.

  13. Click Next. The Specify WebLogic Domain screen, shown in Figure 6-9, opens.

    Figure 6-9 Specify WebLogic Domain Screen

    Described in the surrounding text
  14. Enter the following:

    • a domain host name; for example, FINHOST1

    • a domain port number; for example, COMMONDOMAIN ADMIN PORT

    • your CommonDomain Administration Server user name

    • your CommonDomainAdministration Server password

    Note:

    Associate Oracle HTTP Server with the CommonDomain that Provisioning installed in Chapter 5.

  15. Click Next. The Specify Component Details screen, shown in Figure 6-10, opens.

    Figure 6-10 Specify Component Details Screen

    Described in the surrounding text
  16. Do the following:

    • Select the instance home location; for example, /u01/oracle/config/CommonDomain_webtier1

    • Enter the instance name; for example, CommonDomain_webtier1

    • Enter the Oracle HTTP Server component name; for example ohs2

  17. Click Next. The Configure Ports screen, shown in Figure 6-11, opens.

    Figure 6-11 Configure Ports Screen (1)

    Described in the surrounding text

    Note:

    Copy the staticports.ini file from repository/installers/webtier/Disk1/stage/Response to ORACLE_BASE/staticports.ini.

  18. Select Specify Ports using Configuration file and click View/Edit.

    In the text field that displays, shown in Figure 6-12, enter OHS port = 7777.

    Figure 6-12 Configure Ports Screen (2)

    Described in the surrounding text

    Click Save and then click Next.

    The Specify Security Updates screen, shown in Figure 6-13, opens.

    Figure 6-13 Specify Security Updates

    Described in the surrounding text
  19. Do the following:

    • Enter an email address

    • Indicate that you wish to receive security updates from My Oracle Support

    • Enter your My Oracle Support password

  20. Click Next. The Installation Summary screen, shown in Figure 6-14, opens.

    Figure 6-14 Installation Summary Screen

    Described in the surrounding text
  21. Click Configure to install the configuration. The Configuration Progress screen, shown in Figure 6-15, opens.

    Figure 6-15 Configuration Progress Screen

    Described in the surrounding text
  22. Click Next.

    When the installation completes, the Installation Complete screen, shown in Figure 6-16, opens.

    Figure 6-16 Installation Complete Screen

    Described in the surrounding text
  23. Click Finish.

  24. Copy or ftp the FusionVirtualHost files from WEBHOST1 to WEBHOST2:

    WEBHOST1> ORACLE_BASE/config/CommonDomain_webtier/config/OHS/ohs1/moduleconf 
    

    to

    WEBHOST2> ORACLE_BASE/config/CommonDomain_webtier1/config/OHS/ohs2/moduleconf/
    

    Note:

    If you get an error message saying that the FusionSSL.conf file is missing, copy the file from ORACLE_BASE/config/CommonDomain_webtier/config/OHS/ohs1 on WEBHOST1 to the ORACLE_BASE/config/CommonDomain_webtier1/config/OHS/ohs2 folder on WEBHOST2.

  25. After the copy, change all WEBHOST1 entries in the .conf files to WEBHOST2.

  26. Restart the Oracle HTTP Server instance:

    WEBHOST2> cd ORACLE_BASE/config/CommonDomain_webtier1/bin
    WEBHOST2> ./opmnctl stopall
    WEBHOST2> ./opmnctl startall
    
  27. From ORACLE_BASE/repository/installers/webgate/Disk1, start the WebGate installation:

    ./runInstaller
    
  28. When prompted, specify the path to the JDK:

    ORACLE_BASE/repository/jdk6
    
  29. When the Welcome screen opens, click Next. The Prerequisite Checks screen, shown in Figure 6-17, opens.

    Figure 6-17 Prerequisite Checks Screen

    Described in the surrounding text
  30. When the checking process completes, click Next. The Installation Location screen, shown in Figure 6-18, opens.

    Figure 6-18 Installation Location Screen

    Described in the surrounding text
  31. Enter an Oracle Middleware Home location Oracle Home Directory, ORACLE_BASE/products/webtier_mwhome, and click Next. The Installation Summary screen, shown in Figure 6-19, opens.

    Figure 6-19 Installation Summary Screen

    Described in the surrounding text
  32. Click Save if you wish to save the response file. Click Install to start the installation. Following an interim screen, the one shown in Figure 6-20 opens.

    During installation, a progress screen, shown in Figure 6-20, opens.

    Figure 6-20 Installation Progress Screen

    Described in the surrounding text
  33. When the installation finishes, click Next. The Installation Complete screen opens.

  34. Click Save if you wish to save the installation details. Click Finish to complete the WebGate installation.

6.2 Performing WebGate Post-Installation Steps

After installing WebGate, do the following:

  1. Append environment variable LD_LIBRARY_PATH with the Web Tier library path ORACLE_BASE/products/webtier_mwhome/webtier/lib:

    WEBHOST2> export LD_LIBRARY_PATH=ORACLE_BASE/products/webtier_mwhome/
    webtier/lib:$LD_LIBRARY_PATH
    
  2. Run the following commands:

    # Usage: deployWebGateInstance.sh -w <WebGate_instancedir> -oh WebGate_Oracle_Home
    
    $  cd ORACLE_BASE/products/webtier_mwhome/webgate/webgate/ohs/tools/
    deployWebGate
    
    $ ./deployWebGateInstance.sh -w ORACLE_BASE/config/CommonDomain_webtier1/
    config/OHS/ohs2 -oh ORACLE_BASE/products/webtier_mwhome/webgate
    
    $  cd ORACLE_BASE/products/webtier_mwhome/webgate/webgate/ohs/tools/setup/
    InstallTools
    
    $ ./EditHttpConf -w ORACLE_BASE/config/CommonDomain_webtier1/config/OHS/ 
    ohs2 -oh ORACLE_BASE/products/webtier_mwhome/webgate -o webgate.conf
    
  3. Do the following on WEBHOST1:

    1. From ORACLE_BASE/config/CommonDomain_webtier/config/OHS/ohs1/webgate/config, copy the following to ORACLE_BASE/config/CommonDomain_webtier1/config/OHS/ohs2/webgate/config on WEBHOST2:

      "ObAccessClient.xml","cwallet.sso","password.xml" 
      
    2. From ORACLE_BASE/config/CommonDomain_webtier/config/OHS/ohs1/webgate/config/simple, copy the following to ORACLE_BASE/config/CommonDomain_webtier1/config/OHS/ohs2/webgate/config/simple on WEBHOST2:

      "aaa_key.pem","aaa_cert.pem"
      

6.3 Installing WebGate Patches

If the ORACLE_BASE/repository/installers/webgate location has a patch directory, perform the steps in this section.

Note:

Ensure that you install all the patches that are located in ORACLE_BASE/repository/installers/webgate/patch/.

To install WebGate patches, do the following:

  1. Change directory to ORACLE_BASE/repository/installers/webgate/patch/.

  2. If any directory under patch exists, perform Steps a and b, listed below. If no directory exists, skip these steps and continue to Section 6.4, "Wiring Oracle HTTP Server with Load Balancer."

    1. Add ORACLE_BASE/products/webtier_mwhome/webgate/OPatch to the $PATH environment variable. Then set or change $ORACLE_HOME to ORACLE_BASE/products/webtier_mwhome/webgate/, as shown in the following example:

      export PATH=ORACLE_BASE/products/webtier_mwhome/webgate/OPatch:$PATH
      export ORACLE_HOME=ORACLE_BASE/products/webtier_mwhome/webgate
      

      Note:

      Running the $ which opatch command will give you the path specified above.

    2. To install a patch, first change directory to the folder that corresponds to each existing patch number, and run the following command:

      opatch apply
      

      After you install the patches, restart the web server. Oracle HTTP Server scaleout is complete, and WEBHOST1 and WEBHOST2 should behave identically.

6.4 Wiring Oracle HTTP Server with Load Balancer

Configure your load balancer to route all HTTP requests to the hosts running Oracle HTTP Server, that is, WEBHOST1 and WEBHOST2.

To prevent repeat authorization from occurring, enable sticky session (insert cookie) on the load balancer when Oracle HTTP Server is the front end to Oracle WebLogic Server.

You also must set Monitors for HTTP.

6.5 Validating Oracle HTTP Server on WEBHOST2

To validate after the installation is complete:

  1. Check that it is possible to access the Oracle HTTP Server home page using the following URLs:

    • http://webhost1.mycompany.com:10601

    • http://webhost2.mycompany.com:7777

  2. Stop WEBHOST1:

    WEBHOST1> cd ORACLE_BASE/config/CommonDomain_webtier/bin
    
    WEBHOST1> ./opmnctl stopall
    
  3. Access the following URLs to ensure that the Administration console is visible:

    • http://fininternal.mycompany.com:7777/console

    • http://hcminternal.mycompany.com:7777/console

    • http://scminternal.mycompany.com:7777/console

    • http://commoninternal.mycompany.com:7777/console

    • http://biinternal.mycompany.com:7777/console

    • http://prjinternal.mycompany.com:7777/console

    • http://prcinternal.mycompany.com:7777/console

  4. Access the following URLs to ensure that the Oracle Fusion Applications login screen is visible:

    • https://finexternal.mycompany.com/ledger/faces/LedgerWorkArea

    • https://finexternal.mycompany.com/payables/faces/PaymentLandingPage

    • https://prcexternal.mycompany.com/procurement/faces/PrcPoPurchasingWorkarea

    • https://prjexternal.mycompany.com/projectsFinancials/faces/PRJProjectWorkarea

    • https://commonexternal.mycompany.com/homePage/faces/AtkHomePageWelcome

    • https://biexternal.mycompany.com/analytics

  5. Run the following commands:

    WEBHOST1> cd ORACLE_BASE/config/CommonDomain_webtier/bin
     
    WEBHOST1> ./opmnctl startall