Log in to the WebLogic Console using the URL In the Domain Structure menu, select Environment, and then Servers. Click AdminServer admin In the Change Center, click Lock Edit. Set the listen address to the DNS name referring to the network card you wish

Configuring High Availability for Oracle Portal, Forms, Reports, and Discoverer 14-37 ■ User Name : cn=orcladmin ■ Password : Password for Oracle Internet Directory’s orcladmin account

12. In the Summary screen, click Install to begin the creation process.

14.6.4.4 Validation

Validate the initial installation by performing the following tests:

14.6.4.5 Generic Configuration

The following steps are required regardless of the product being configured:

14.6.4.5.1 Set Admin Server Listen Address In servers where multiple network cards

exist, it is important to bind the Administration Server to the network card that you wish to use. To do this:

1. Log in to the WebLogic Console using the URL

http:apphost1.mycompany.com:7001console

2. In the Domain Structure menu, select Environment, and then Servers.

3. Click AdminServer admin

4. In the Change Center, click Lock Edit.

5. Set the listen address to the DNS name referring to the network card you wish to

use. This is generally the public server name.

6. Click Save.

7. Click Activate Changes from the change center.

8. Stop the Administration Server using the stopWebLogic.sh script, located in the

DOMAIN_HOMEbin directory. Start the Administration Server using the startWebLogic.sh script, also located in DOMAIN_HOMEbin directory.

14.6.4.5.2 Configure Virtual Hosts For the site to function properly with the load

balancer, you must add two virtual hosts. You can configure the virtual hosts using Oracle Enterprise Manager Fusion Middleware Control, or you can edit the file ORACLE_INSTANCEconfigOHSohs1httpd.conf or create a file called virtual_ hosts.conf in the directory ORACLE_INSTANCEconfigOHSohs1moduleconf. To add two virtual hosts to the virtual_hosts.conf file, in a text editor, add the following entries to the file: NameVirtualHost :7778 VirtualHost :7778 ServerName http:mysite.mycompany.com:80 Test URL Result Portal http:apphost1.mycompany.com:7777portalplsportal Portal Home page opens Forms http:apphost1.mycompany.com:7777formsfrmservlet Forms Servlet Home page opens Reports http:apphost1.mycompany.com:7777reportsrwservletsh owjobs Job Queue opens Discoverer http:apphost1.mycompany.com:7777discovererviewer Discoverer Viewer Home page opens 14-38 Oracle Fusion Middleware High Availability Guide RewriteEngine On RewriteOptions inherit UseCanonicalName On VirtualHost VirtualHost :7778 ServerName apphost1.mycompany.com:7777 RewriteEngine On RewriteOptions inherit UseCanonicalName On VirtualHost Restart the Web Tier using these commands: opmnctl stopall opmnctl startall

14.6.4.5.3 Create boot.properties File Create a boot.properties file for the

Administration Server on APPHOST1. The boot.properties file enables the Administration Server to start without prompting you for the administrator username and password. In a text editor, create a file called boot.properties in the directory DOM_ HOMEserversAdminServersecurity, and enter the following lines in the file: username=adminuser password=password Restarting the Administration Server encrypts the values in this file, for that reason it is recommended that the Administration Server is restarted on each node that can host it. Stop the Administration Server using the script stopWebLogic.sh, which is located in DOMAIN_HOMEbin, or by using the script startWebLogic, also located in DOMAIN_HOMEbin.

14.6.4.5.4 Configure sqlnet.ora Create a file called sqlnet.ora in the directory

ORACLE_INSTANCEconfig and add the following entry to the file: TCP.CONNECT_TIMEOUT=10 This ensures that database connections time out after a reasonable time.

14.6.4.5.5 Configure Web Cache Web Cache is optional for Oracle Forms, Reports and

Discoverer, but mandatory for Oracle Portal. If the environment being configured does not use Web Cache, ignore the following Web Cache configuration steps: Note: Where: 7778 is the Oracle HTTP Server Listening Port 80 is the Load Balancer Listening Port 7777 is the Web Cache Listening Port. Name of the server on which the Oracle HTTP server resides: apphost1 Use ServerName HTTP if your site works only in the http protocol. Configuring High Availability for Oracle Portal, Forms, Reports, and Discoverer 14-39 Log Into Enterprise Manager Console Log into the Oracle Fusion Middleware Enterprise Manager Console using the following URL: http:apphost1.mycompany.com:7001em The default User Name and Password are the same as the WebLogic domain username and password entered during the installation. Create Site 1. In the Navigator window, expand the Web Tier tree. 2. Click on the component wc1.

3. From the list at the top of the page, select Administration - Sites.

4. Select Create Site.

5. Enter the following information to add a site.

6. Do not change any other defaults.

7. Select Submit.

8. Select OK to save each entry.

Create Site-to-Server Mapping 1. On the same page, select Create in the Site-to-Server Mapping section. 2. Enter the following information to add the site: Field Value Host Name mysite.mycompany.com Port Specify the port number on the load balancer where requests are received, for example, 80 for HTTP requests and 443 for HTTPS request. If using a load balancer, this is the listening port on the load balancer. Default site Yes Site Wide Compression Yes Site Alias - Host Name mysite.mycompany.com Site Alias - Port 7777 Site Alias - Host Name mysite.mycompany.com Site Alias - Port 80 1 1 Required when the load balancer can send requests to port 80 as well as port 443. Field Value Host Pattern mysite.mycompany.com Port Pattern 80 Selected Origin Servers apphost1.mycompany.com:7778 14-40 Oracle Fusion Middleware High Availability Guide

3. Click OK to store the site.

4. Ensure that the site mysite.mycompany.com:44380 appears first in the list of site-to-server mappings.

5. Click Apply to save the changes.