This chapter describes how to create a domain using the Configuration Wizard, Oracle WebLogic Server Administration Console, Oracle Enterprise Manager, and Oracle WSM Policy Manager. You can extend the domain to add SOA components and, optionally, Oracle Business Activity Monitoring.
Important:
Oracle strongly recommends that you read the release notes for any additional installation and deployment considerations prior to starting the setup process.This chapter contains the following sections:
Section 4.4, "Running the Configuration Wizard on SOAHOST1 to Create a Domain"
Section 4.6, "Creating boot.properties for the Administration Server on SOAHOST1"
Section 4.7, "Starting the Administration Server on SOAHOST1"
Section 4.9, "Applying the Java Required Files (JRF) Template to the WSM-PM_Cluster"
Section 4.12, "Starting and Validating the WLS_WSM1 Managed Server"
Section 4.13, "Propagating the Domain Configuration to SOAHOST2 Using the unpack Utility"
Section 4.14, "Disabling Host Name Verification for the WLS_WSM2 Managed Server"
Section 4.16, "Starting and Validating the WLS_WSM2 Managed Server"
Section 4.17, "Configuring the Java Object Cache for Oracle WSM"
Section 4.19, "Registering Oracle HTTP Server With WebLogic Server"
Section 4.21, "Validating Access Through Oracle HTTP Server"
Section 4.22, "Manually Failing Over the Administration Server to SOAHOST2"
Section 4.23, "Validating Access to SOAHOST2 Through Oracle HTTP Server"
Section 4.24, "Failing the Administration Server Back to SOAHOST1"
As described in Section 2.3, "Shared Storage and Recommended Directory Structure," you install Oracle Fusion Middleware in at least two storage locations for redundancy.
You must install the following components of Oracle Fusion Middleware:
Oracle WebLogic Server (see Section 4.1.1, "Installing Oracle WebLogic Server")
Oracle SOA Suite (see Section 4.1.2, "Installing Oracle Fusion Middleware for SOA")
Perform these steps to install Oracle WebLogic Server on SOAHOST1 and SOAHOST2.
Start the Oracle WebLogic Server installer.
In the Welcome screen, click Next.
In the Choose Middleware Home Directory screen, do the following:
Select Create a New Middleware Home.
For Middleware Home Directory, enter MW_HOME.
Note:
ORACLE_BASE is the base directory under which Oracle products are installed. The recommended value is/u01/app/oracle
. See Section 2.3, "Shared Storage and Recommended Directory Structure" for more information.Click Next.
In the Register for Security Updates screen, enter your contact information so that you can be notified of security updates, and click Next.
In the Choose Install Type screen, select Custom, and click Next.
In the Choose Products and Components screen, click Next.
In the JDK Selection screen, select only Oracle JRockit 1.6.0_14 SDK, and click Next.
In the Choose Product Installation Directories screen, accept the directory WL_HOME, and click Next.
In the Installation Summary screen, click Next.
In the Installation Complete screen, unselect Run QuickStart, and click Done.
Perform these steps to install Oracle Fusion Middleware for SOA on SOAHOST1 and SOAHOST2.
On Linux platforms, if the /etc/oraInst.loc
file exists, check that its contents are correct. Specifically, check that the inventory directory is correct and that you have write permissions for that directory.
If the /etc/oraInst.loc
file does not exist, you can skip this step.
Start the installer for Oracle Fusion Middleware for SOA.
SOAHOST1> runInstaller
When the installer prompts you for a JRE/JDK location, enter the Oracle SDK location created in the Oracle WebLogic Server installation, for example, MW_HOME/jrockit_160_14_R27.6.4-18.
In the Specify Inventory Directory screen, do the following:
Enter HOME/oraInventory
, where HOME
is the home directory of the user performing the installation (this is the recommended location).
Enter the OS group for the user performing the installation.
Click Next.
Follow the instructions on screen to execute /createCentralInventory.sh
as root. Click OK.
In the Welcome screen, click Next.
In the Prerequisite Check screen, verify that the checks complete successfully, and click Next.
Specify the installation location. Select the previously installed Middleware Home from the drop-down list. For the Oracle Home directory, enter the directory name (soa).
Click Next.
In the Installation Summary screen, click Install.
In the Installation Complete screen, click Finish.
The Fusion Middleware Home should be backed up now (make sure that you stop the server first):
SOAHOST1> tar -cvpf fmwhomeback.tar MW_HOME
This creates a backup of the installation files for both Oracle WebLogic Server and Oracle Fusion Middleware for SOA.
Please note that this step is required for failover of the Administration Server, regardless of whether or not SOA is installed.
You are associating the Administration Server with a virtual hostname (SOAHOST1VHN1). This Virtual Host Name must be mapped to the appropriate VIP (VIP1) either by a DNS Server or by a custom /etc/host
entry. Check that SOAHOST1VHN1 is available per your name resolution system, (DNS server, /etc/hosts), in the required nodes in your SOA topology. The VIP (VIP1) that is associated to this Virtual Host Name (SOAHOST1VHN11) must be enabled in SOAHOST1.
To enable the virtual IP on Linux, run the ifconfig
command as root:
/sbin/ifconfig <interface:index> <IPAddress> netmask <netmask> /sbin/arping -q -U -c 3 -I <interface< <IPAddress>
For example:
/sbin/ifconfig ethX:Y 100.200.140.206 netmask 255.255.255.0
Enable your network to register the new location of the virtual IP, for example:
/sbin/arping -q -U -c 3 -I ethX 100.200.140.206
Validate that the address is available by pinging it from another node, for example:
/bin/ping 100.200.140.206
In this example 'ethX' is the ethernet interface (eth0 or eth1) and Y is the index (0, 1, 2, etc.).
Run the Configuration Wizard from the SOAhome directory to create a domain containing the Administration Server and Oracle Web Services Manager. Later, you will extend the domain to contain SOA components.
Ensure that the database where you installed the repository is running. For RAC databases, it is recommended that all instances are running, so that the validation check later on becomes more reliable.
Change directory to the location of the Configuration Wizard. This is within the SOA home directory.
SOAHOST1> cd ORACLE_HOME/common/bin
Start the Oracle Fusion Middleware Configuration Wizard:
SOAHOST1> ./config.sh
In the Welcome screen, select Create a New WebLogic Domain, and click Next.
The Select Domain Source screen is displayed (Figure 4-1).
In the Select Domain Source screen, do the following:
Select Generate a domain configured automatically to support the following products.
Select the following products:
Basic WebLogic Server Domain - 10.3.1.0 [wlserver_10.3] (this should be selected automatically)
Oracle Enterprise Manager - 11.1.1.0 [oracle_common]
Oracle WSM Policy Manager 11.1.1.0 [oracle_common]
Oracle JRF - 11.1.1.0 [oracle_common] (this should be selected automatically)
If you accidentally deselect some of the targets, make sure that the following selections are made in this screen:
Oracle Enterprise Manager
Oracle WSM Policy Manager
Oracle JRF
Click Next.
In the Specify Domain Name and Location screen, enter the domain name (soaedg_domain).
Make sure that the domain directory matches the directory and shared storage mount point recommended in Chapter 2, "Database and Environment Preconfiguration": enter ORACLE_BASE/admin/<domain_name>/aserver/
for the domain directory and ORACLE_BASE/admin/<domain_name>/apps
for the application directory. This directory should be in shared storage.
Click Next.
In the Configure Administrator Username and Password screen, enter the username and password to be used for the domain's administrator.
Click Next.
In the Configure Server Start Mode and JDK screen, do the following:
For WebLogic Domain Startup Mode, select Production Mode.
For JDK Selection, select Oracle JRockit 1.6.0_14 SDK.
Click Next.
In the Configure JDBC Components Schema screen, do the following:
Select the OWSM MDS schema.
Select Configure selected component schemas as RAC multi data source schemas in the next panel.
Click Next.
The Configure RAC Multi Data Sources Component Schema screen is displayed (Figure 4-2).
In this screen, do the following:
Enter values for the following fields, specifying the connect information for the RAC database that was seeded with RCU.
Driver: Select Oracle driver (Thin) for RAC Service-Instance connections, Versions:10, 11.
Service Name: Enter the service name of the database, for example, soaedg.mycompany.com
.
Username: Enter the complete user name (including the prefix) for the schemas.
Password: Enter the password to use to access the schemas.
Enter the host name, instance name, and port.
Click Add.
Repeat this for each RAC instance.
Click Next.
In the Test JDBC Data Sources screen, the connections should be tested automatically. The Status column displays the results. Ensure that all connections were successful. If not, click Previous to return to the previous screen and correct your entries.
Click Next when all the connections are successful.
In the Select Advanced Configuration screen, select the following:
Administration Server
Managed Servers, Clusters and Machines
Deployment and Services
Click Next.
In the Configure the Administration Server screen, enter the following values:
Name: AdminServer
Listen Address: enter SOAHOST1VHN1.
Listen Port: 7001
SSL listen port: N/A
SSL enabled: unchecked
Click Next.
In the Configure Managed Servers screen, click Add to add the following managed servers:
Name | Listen Address | Listen Port | SSL Listen Port | SSL Enabled |
---|---|---|---|---|
WLS_WSM1 |
SOAHOST1 |
7010 |
n/a |
No |
WLS_WSM2 |
SOAHOST2 |
7010 |
n/a |
No |
Click Next.
In the Configure Clusters screen, Click Add to add the following clusters:
Name | Cluster Messaging Mode | Multicast Address | Multicast Port | Cluster Address |
---|---|---|---|---|
WSM-PM_Cluster |
unicast |
n/a |
n/a |
Leave it empty. |
Click Next.
In the Assign Servers to Clusters screen, assign servers to clusters as follows:
WSM-PM_Cluster:
WLS_WSM1
WLS_WSM2
Click Next.
In the Configure Machines screen, do the following:
Click the Unix Machine tab and then click Add to add the following machines:
Leave all other fields to their default values.
Click Next.
In the Assign Servers to Machines screen, assign servers to machines as follows:
SOAHOST1:
AdminServer
WLS_WSM1
SOAHOST2:
WLS_WSM2
Click Next.
In the Target Deployments to Clusters or Servers screen, make sure that the wsm-pm application and the oracle.wsm.seedpolicies library is targeted to the WSM-PM_Cluster only. Make sure that all other deployments are targeted to the AdminServer. Click Next.
In the Target Services to Clusters or Servers screen, select the following:
On the left, select WSM-PM_Cluster. On the right, select JDBC System Resource (this automatically selects all the wsm datasources (mds-owsm)).
On the left, select Admin Server. On the right, select JDBC System Resource (this automatically selects all the wsm datasources (mds-owsm)).
All JDBC system resources should be targeted to both the Admin Server and WSM-PM_Cluster.
On the left, select WSM-PM_Cluster. On the right, select JOC-Shutdown, JOC-Startup, and OWSM Startup Class.
On the left, select Admin Server. On the right, deselect JOC-Shutdown and JOC-Startup. Make sure these services are not targeted to the Admin Server.
JOC-Shutdown, JOC-Startup, and OWSM Startup Class should be targeted only to the WSM-PM_Cluster.
Make sure that all the remaining services are targeted to the Admin Server.
In the Configuration Summary screen, click Create.
In the Create Domain screen, click Done.
Use the pack
and unpack
commands to separate the domain directory used by the Administration Server from the domain directory used by the managed server in SOAHOST1as recommended in Chapter 2, "Database and Environment Preconfiguration."
Run the pack command on SOAHOST1 to create a template pack as follows:
SOAHOST1> cd ORACLE_COMMON_HOME/common/bin SOAHOST1> ./pack.sh -managed=true -domain=ORACLE_BASE/admin/<domain_name>/aserver/<domain_name> -template=soadomaintemplate.jar -template_name=soa_domain_template
Run the unpack command on SOAHOST1 to unpack the template in the managed server domain directory as follows:
SOAHOST1> cd ORACLE_COMMON_HOME/common/bin SOAHOST1> ./unpack.sh -domain=ORACLE_BASE/admin/<domain_name>/mserver/<domain_name> -template=soadomaintemplate.jar
Create a boot.properties
file for the Administration Server on SOAHOST1. The boot.properties
file enables the Administration Server to start without prompting you for the administrator username and password.
For the Administration Server:
Create the following directory structure:
mkdir ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/servers mkdir ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/servers/AdminServer mkdir ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/servers/AdminServer/security
In a text editor, create a file called boot.properties
in the last directory created in the previous step, and enter the following lines in the file:
username=<adminuser> password=<password>
Note:
When you start the Administration Server, the username and password entries in the file get encrypted. You start the Administration Server in Section 4.7, "Starting the Administration Server on SOAHOST1."For security reasons, you want to minimize the time the entries in the file are left unencrypted: after you edit the file, you should start the server as soon as possible so that the entries get encrypted.
Start the Administration Server:
SOAHOST1> cd ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/bin SOAHOST1> ./startWebLogic.sh
Perform these steps to ensure that the Administration Server is properly configured:
In a browser, go to http://SOAHOST1VHN1:7001/console
.
Log in as the administrator.
Verify that the WLS_WSM1 and WLS_WSM2 managed servers are listed.
Verify that the WSM-PM_Cluster cluster is listed.
Check that you can access Oracle Enterprise Manager at http://SOAHOST1VHN1:7001/em
.
Log in to EM Console with the username and password you specified in Section 4.6, "Creating boot.properties for the Administration Server on SOAHOST1."
After the domain is created with the Configuration Wizard, you must target a number of resources not included in the WebLogic server installation to the WSM-PM Cluster.
To target these resources:
Log in to Oracle Enterprise Manager Fusion Middleware Control with the username and password you specified in Section 4.6, "Creating boot.properties for the Administration Server on SOAHOST1."
On the navigation tree on the left, expand Farm_<domain_name>, WebLogic Domain, and then <domain_name>, and select WSM_PM_Cluster.
Click Apply JRF Template on the right.
Wait for the confirmation message to appear on the screen.
This message should confirm that the JRF Template has been successfully applied to the WSM-PM_Cluster cluster.
This step is required if you have not set up the appropriate certificates to authenticate the different nodes with the Administration Server (see Chapter 7, "Setting Up Node Manager"). If you have not configured the server certificates, you will receive errors when managing the different WebLogic Servers. To avoid these errors, disable host name verification while setting up and validating the topology, and enable it again once the EDG topology configuration is complete as described in Chapter 7, "Setting Up Node Manager."
Perform these steps to disable host name verification:
Log in to Oracle WebLogic Server Administration Console.
Click Lock and Edit.
Expand the Environment node in the Domain Structure window.
Click Servers. The Summary of Servers page appears.
Select AdminServer(admin) in the Names column of the table. The Settings page for AdminServer(admin) appear.
Click the SSL tab.
Click Advanced.
Set Hostname Verification to None.
Click Save.
Repeat steps 4 to 8 for the WLS_WSM1 server.
Save and activate the changes.
The change requires restart of the Administration Server to be effective. To do this, complete these steps:
In the Summary of Servers screen, select the Control tab.
Select AdminServer(admin) in the table and then click Shutdown.
Start the Administration Server again from the command line as follows:
SOAHOST1> cd ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/bin SOAHOST1> ./startWebLogic.sh
Perform these steps to start Node Manager on SOAHOST1:
Run the setNMProps.sh script, which is located in the ORACLE_COMMON_HOME/common/bin directory, to set the StartScriptEnabled
property to 'true' before starting Node Manager:
SOAHOST1> cd ORACLE_COMMON_HOME/common/bin SOAHOST1> ./setNMProps.sh
Note:
You must use theStartScriptEnabled
property to avoid class loading failures and other problems. See also Section 10.6.5, "Incomplete Policy Migration After Failed Restart of SOA Server."Start Node Manager:
SOAHOST1> cd WL_HOME/server/bin SOAHOST1> ./startNodeManager.sh
Perform these steps to start the WLS_WSM1 managed server and check that it is configured correctly:
Start the WLS_WSM1 managed server using the Oracle WebLogic Server Administration Console as follows:
Expand the Environment node in the Domain Structure window.
Choose Servers. The Summary of Servers page appears.
Click the Control tab.
Select WLS_WSM1 and then click Start.
Verify that the server status is reported as "Running" in the Admin Console. If the server is shown as "Starting" or "Resuming," wait for the server status to change to "Started." If another status is reported (such as "Admin" or "Failed"), check the server output log files for errors. See Section 10.6, "Troubleshooting" for possible causes.
Access http://SOAHOST1:7010/wsm-pm
.
Click Validate Policy Manager. A list of policies and assertion templates available in the data store appear.
Note:
The configuration is incorrect if no policies or assertion templates appear.Perform these steps to propagate the domain configuration:
Run the following command on SOAHOST1 to copy the template file created previously.
SOAHOST1> cd ORACLE_COMMON_HOME/common/bin
SOAHOST1> scp soadomaintemplate.jar oracle@SOAHOST2:/ORACLE_HOME/common/bin
Run the unpack
command on SOAHOST2 to unpack the propagated template.
Note:
Rununpack
from the ORACLE_COMMON_HOME/common/bin
directory, not from the WL_HOME/common/bin
directory.SOAHOST2> cd ORACLE_COMMON_HOME/common/bin SOAHOST2> ./unpack.sh -domain=ORACLE_BASE/admin/<domain_name>/mserver/<domain_name> -template=soadomaintemplate.jar
Note:
TheORACLE_BASE/admin/<domain_name>/mserver
directory must exist before running unpack
.This step is required if you have not set up the appropriate certificates to authenticate the different nodes with the Administration Server (see Chapter 7, "Setting Up Node Manager"). If you have not configured the server certificates, you will receive errors when managing the different WebLogic Servers. To avoid these errors, disable host name verification while setting up and validating the topology, and enable it again once the EDG topology configuration is complete as described in Chapter 7, "Setting Up Node Manager."
Perform these steps to disable host name verification:
Log in to Oracle WebLogic Server Administration Console.
Click Lock and Edit.
Expand the Environment node in the Domain Structure window.
Click Servers. The Summary of Servers page appears.
Select WLS_WSM2 in the Names column of the table. The Settings page for AdminServer(admin) appear.
Click the SSL tab.
Click Advanced.
Set Hostname Verification to None.
Save and activate the changes.
Perform these steps to start Node Manager on SOAHOST2:
Run the setNMProps.sh script, which is located in the ORACLE_COMMON_HOME/common/bin directory, to set the StartScriptEnabled
property to 'true' before starting Node Manager:
SOAHOST2> cd ORACLE_COMMON_HOME/common/bin SOAHOST2> ./setNMProps.sh
Note:
You must use theStartScriptEnabled
property to avoid class loading failures and other problems. See also Section 10.6.5, "Incomplete Policy Migration After Failed Restart of SOA Server."Start Node Manager:
SOAHOST2> cd WL_HOME/server/bin SOAHOST2> ./startNodeManager.sh
Perform these steps to start the WLS_WSM2 managed server and check that it is configured correctly:
Start the WLS_WSM2 managed server using the Administration Console.
Verify that the server status is reported as "Running" in the Admin Console. If the server is shown as "Starting" or "Resuming," wait for the server status to change to "Started." If another status is reported (such as "Admin" or "Failed"), check the server output log files for errors. See Section 10.6, "Troubleshooting" for possible causes.
Access http://SOAHOST2:7010/wsm-pm
.
Click validate policy manager.
The Java Object Cache (JOC) should be configured among all the servers running Oracle WSM. This local cache is provided to increase the performance of Oracle WSM.
The Java Object Cache can be configured using the MW_HOME/oracle_common/bin/configure-joc.py
script. This is a Python script which can be used to configure JOC in the managed servers. The script runs in WLST online mode and expects the Administration Server to be up and running.
When configuring JOC ports for Oracle products, Oracle recommends using ports in the 9988 to 9998 range.
Note:
After configuring the Java Object Cache using the wlst commands or configure-joc.py script, all affected managed servers should be restarted for the configurations to take effect.Connect to the Administration Server using the command-line Oracle WebLogic Scripting Tool (WLST), for example:
MW_HOME/soa/common/bin/wlst.sh
$ connect()
Enter the Oracle WebLogic Administration user name and password when prompted.
After connecting to the Administration Server using wlst
, start the script using the execfile
command, for example:
wls:/mydomain/serverConfig>execfile('MW_HOME/oracle_common/bin/configure-joc.py')
Configure JOC for all the managed servers for a given cluster.
Enter 'y' when the script prompts whether you want to specify a cluster name, and also specify the cluster name and discover port, when prompted. This discovers all the managed servers for the given cluster and configure the JOC. The discover port is common for the entire JOC configuration across the cluster. For example:
Do you want to specify a cluster name (y/n) <y> Enter Cluster Name : WSM_Cluster Enter Discover Port : 9991
Here is a walkthrough for using configure-joc.py
for HA environments:
execfile('MW_HOME/oracle_common/bin/configure-joc.py') . Enter Hostnames (eg host1,host2) : SOAHOST1, SOAHOST2 . Do you want to specify a cluster name (y/n) <y>y . Enter Cluster Name : WSM_Cluster . Enter Discover Port : 9991 . Enter Distribute Mode (true|false) <true> : true . Do you want to exclude any server(s) from JOC configuration (y/n) <n> n
The script can also be used to perform the following JOC configurations:
Configure JOC for all specified managed servers.
Enter 'n' when the script prompts whether you want to specify a cluster name, and also specify the managed server and discover port, when prompted. For example:
Do you want to specify a cluster name (y/n) <y>n Enter Managed Server and Discover Port (eg WLS_WSM1:9998, WLS_WSM1:9998) : WLS_WSMM1:9991,WLS_WSM2:9991
Exclude JOC configuration for some managed servers.
The script allows you to specify the list of managed servers for which the JOC configuration "DistributeMode" will be set to 'false'. Enter 'y' when the script prompts whether you want to exclude any servers from JOC configuration, and enter the managed server names to be excluded, when prompted. For example:
Do you want to exclude any server(s) from JOC configuration (y/n) <n>y Exclude Managed Server List (eg Server1,Server2) : WLS_WSM1,WLS_WSM3
Disable the distribution mode for all managed servers.
The script allows you to disable the distribution to all the managed servers for a specified cluster. Specify 'false' when the script prompts for the distribution mode. By default, the distribution mode is set to 'true'.
Verify JOC configuration using the CacheWatcher utility. See Oracle Fusion Middleware High Availability Guide.
You can configure the Java Object Cache (JOC) using the HA Power Tools tab in the Oracle WebLogic Administration Console as described in the Oracle Fusion Middleware High Availability Guide.
To enable Oracle HTTP Server to route to the Administration Server and the WSM-PM_Cluster, which contain the WLS_WSM-PMn managed servers, you must set the WebLogicCluster
parameter to the list of nodes in the cluster:
On WEBHOST1 and WEBHOST2, add the following lines to the ORACLE_BASE/admin/<instance_name>/config/OHS/<component_name>/mod_wl_ohs.conf file:
# WSM-PM <Location /wsm-pm> SetHandler weblogic-handler WebLogicCluster SOAHOST1:7010,SOAHOST2:7010 </Location> # Admin Server and EM <Location /console> SetHandler weblogic-handler WebLogicHost SOAHOST1VHN1 WeblogicPort 7001 </Location> <Location /consolehelp> SetHandler weblogic-handler WebLogicHost SOAHOST1VHN1 WeblogicPort 7001 </Location> <Location /em> SetHandler weblogic-handler WebLogicHost SOAHOST1VHN1 WeblogicPort 7001 </Location>
Make sure the httpd.conf file located in the same directory as the mod_wl_ohs file contains the following lines:
NameVirtualHost *:7777 <VirtualHost *:7777> ServerName https://soa.mycompany.com:443 ServerAdmin you@your.address RewriteEngine On RewriteOptions inherit </VirtualHost> NameVirtualHost *:7777 <VirtualHost *:7777> ServerName admin.mycompany.com:80 ServerAdmin you@your.address RewriteEngine On RewriteOptions inherit </VirtualHost>
Note:
Values such assoa.mycompany.com:443
, 7777
, admin.mycompany:80
, and you@youraddress
that are noted in this document serve as examples only. Enter values based on the actual environment.Restart Oracle HTTP Server on both WEBHOST1 and WEBHOST2.
WEBHOST1> ORACLE_BASE/admin/<instance_name>/bin/opmnctl restartproc ias-component=ohs1 WEBHOST2> ORACLE_BASE/admin/<instance_name>/bin/opmnctl restartproc ias-component=ohs2
The servers specified in the WebLogicCluster
parameter are only important at startup time for the plug-in. The list needs to provide at least one running cluster member for the plug-in to discover other members of the cluster. Note that the listed cluster member must be running when Oracle HTTP Server is started. Oracle WebLogic Server and the plug-in work together to update the server list automatically with new, failed, and recovered cluster members.
Some example scenarios:
Example 1: If you have a two-node cluster and then add a third member, you do not need to update the configuration to add the third member. The third member will be discovered on the fly at runtime.
Example 2: You have a three-node cluster but only two nodes are listed in the configuration. However, if both listed nodes are down when you start Oracle HTTP Server, then the plug-in would fail to route to the cluster. You must ensure that at least one of the listed nodes is running when you start Oracle HTTP Server.
If you list all members of the cluster, then you guarantee you can route to the cluster, assuming at least one member is running when Oracle HTTP Server is started.
For more information on configuring the WebLogic Server plug-in, see the Oracle Fusion Middleware Using Web Server Plug-Ins With Oracle WebLogic Server guide.
Oracle HTTP Server must forward requests to WebLogic Server. To do this, you must register Oracle HTTP Server with WebLogic Server using the following command:
WEBHOST1> cd ORACLE_BASE/admin/<instance_name>/bin WEBHOST1> ./opmnctl registerinstance -adminHost SOAHOST1VHN1 -adminPort 7001 -adminUsername weblogic
You must also run this command from WEBHOST2 for OHS2.
When you access the Oracle WebLogic Server Administration Console using an LRB, changing the Administration Server's frontend URL is required so that the user's browser is redirected to the appropriate LRB address. To change the Administration Server's frontend URL, complete these steps:
Log in to Oracle WebLogic Server Administration Console.
Click Lock and Edit.
Expand the Environment node in the Domain Structure window.
Click Servers to open the Summary of Servers page.
Select Admin Server in the Names column of the table. The Settings page for AdminServer(admin) appear.
Click the Protocols tab.
Click the HTTP tab.
Set the Front End Hist field to soa.mycompany.com
(your LBR address).
Save and activate the changes.
Oracle also recommends disabling tracking on configuration changes in the Oracle WebLogic Server Administration Console so that the console does not trigger the reload of configuration pages when activation of changes occurs. To disable the reload, log in to the Oracle WebLogic Server Administration Console, click the preferences link in the banner, and then the shared preferences tab. Deselect the follow configuration changes checkbox.
Verify that the server status is reported as "Running" in the Admin Console. If the server is shown as "Starting" or "Resuming," wait for the server status to change to "Started." If another status is reported (such as "Admin" or "Failed"), check the server output log files for errors. See Section 10.6, "Troubleshooting" for possible causes.
Validate WSM_Cluster through both Oracle HTTP Server using the following URLs:
http://Webtier_node1:7777/wsm-pm
http://Webtier_node2:7777/wsm-pm
http://Webtier_node1:7777/console
http://Webtier_node2:7777/console
http://Webtier_node1:7777/em
http://Webtier_node2:7777/em
https://soa.mycompany.com/wsm-pm
http://admin.mycompany.com/console
http://admin.mycompany.com/em
For information on configuring system access through the load balancer, see Section 2.2.2, "Load Balancers."
Note:
After the registering Oracle HTTP Server as described in Section 4.19, "Registering Oracle HTTP Server With WebLogic Server," the Oracle HTTP Server should appear as a manageable target in the Oracle Enterprise Manager Console. To verify this, log into the Enterprise Manager Console. The WebTier item in the navigation tree should show that Oracle HTTP Server has been registered.In case a node fails, you can fail over the Administration Server to another node. This section describes how to fail over the Administration Server from SOAHOST1 to SOAHOST2.
Assumptions:
The Administration Server is configured to listen on SOAHOST1VHN1, and not on ANY address. See step 14 in Section 4.4, "Running the Configuration Wizard on SOAHOST1 to Create a Domain".
These procedures assume that the two nodes use two individual domain directories, and that the directories reside in local storage or in shared storage in different volumes.
The Administration Server is failed over from SOAHOST1 to SOAHOST2, and the two nodes have these IPs:
SOAHOST1: 100.200.140.165
SOAHOST2: 100.200.140.205
VIPHOST1: 100.200.140.206. This is the VIP where the Administration Server is running, assigned to ethX:Y, available in SOAHOST1 and SOAHOST2.
The domain directory where the Administration Server is running in SOAHOST1 is on a shared storage and is mounted also from SOAHOST2.
The following procedure shows how to fail over the Administration Server to a different node (SOAHOST2), but the Administration Server will still use the same WebLogic Server machine (which is a logical machine, not a physical machine).
Stop the Administration Server.
Migrate IP to the second node.
Run the following command as root on SOAHOST1 (where X:Y is the current interface used by SOAHOST1VHN1):
SOAHOST1> /sbin/ifconfig ethX:Y down
Run the following command on SOAHOST2:
SOAHOST2> /sbin/ifconfig <interface:index> <IP_Address> netmask <netmask>
For example:
/sbin/ifconfig eth0:1 10.0.0.1 netmask 255.255.255.0
Note:
Ensure that the netmask and interface to be used to match the available network configuration in SOAHOST2.Update routing tables through arping
, for example:
SOAHOST2> /sbin/arping -b -A -c 3 -I eth0 10.0.0.1
Start the Administration Server on SOAHOST2.
SOAHOST2> cd ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/bin SOAHOST2> ./startWebLogic.sh
Test that you can access the Administration Server on SOAHOST2 as follows:
Ensure that you can access the Oracle WebLogic Server Administration Console at http://SOAHOST1VHN1:7001/console
.
Check that you can access and verify the status of components in the Oracle Enterprise Manager at http://SOAHOST1VHN1:7001/em
.
Note:
The Administration Server does not use Node Manager for failing over. After a manual failover, the machine name that appears in the Current Machine field in the Administration Console for the server is SOAHOST1, and not the failover machine, SOAHOST2. Since Node Manager does not monitor the Administration Server, the machine name that appears in the Current Machine field, is not relevant and you can ignored it.Perform the same steps as in Section 4.21, "Validating Access Through Oracle HTTP Server". This is to check that you can access the Administration Server when it is running on SOAHOST2.
This step checks that you can fail back the Administration Server, that is, stop it on SOAHOST2 and run it on SOAHOST1. To do this, migrate SOAHOST1VHN1 back to SOAHOST1 node as follows:
Run the following command on SOAHOST2.
SOAHOST2> /sbin/ifconfig ethZ:N down
Run the following command on SOAHOST1:
SOAHOST1> /sbin/ifconfig ethX:Y 100.200.140.206 netmask 255.255.255.0
Note:
Ensure that the netmask and interface to be used match the available network configuration in SOAHOST1Update routing tables through arping. Run the following command from SOAHOST1.
SOAHOST1> /sbin/arping -b -A -c 3 -I ethZ 100.200.140.206
Start the Administration Server again on SOAHOST1.
SOAHOST1> cd ORACLE_BASE/admin/<domain_name>/aserver/<domain_name>/bin SOAHOST1> ./startWebLogic.sh
Test that you can access the Oracle WebLogic Server Administration Console at http://SOAHOST1VHN1:7001/console
.
Check that you can access and verify the status of components in the Oracle Enterprise Manager at http://SOAHOST1VHN1:7001/em
.