Oracle® Fusion Middleware Enterprise Deployment Guide for Oracle Enterprise Content Management Suite 11g Release 1 (11.1.1) E15483-02 |
|
![]() Previous |
![]() Next |
This chapter describes how to create a domain using the Oracle Fusion Middleware Configuration Wizard, Oracle WebLogic Server Administration Console, and Oracle Enterprise Manager. You can extend the domain to add Fusion Middleware (FMW) components: SOA, Oracle Universal Content Management (UCM) and, optionally, Oracle Imaging and Process Management (I/PM). This will be addressed in later chapters in this document.
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 5.2, "Running the Configuration Wizard on SOAHOST1 to Create a Domain"
Section 5.3, "Creating boot.properties for the Administration Server on SOAHOST1"
Section 5.5, "Starting the Administration Server on SOAHOST1"
Section 5.7, "Disabling Host Name Verification for the Administration Server"
Section 5.8, "Configuring Oracle HTTP Server for the Administration Server"
Section 5.9, "Registering Oracle HTTP Server with WebLogic Server"
Section 5.10, "Setting the Frontend URL for the Administration Console"
Section 5.11, "Validating Access Through Oracle HTTP Server"
Section 5.12, "Manually Failing Over the Administration Server to SOAHOST2"
This step is required for failover of the Administration Server, regardless of whether or not other Fusion Middleware components are installed later. You will associate the Administration Server with a virtual IP (ADMINVHN). Make sure that ADMINVHN is enabled on SOAHOST1.
To enable the virtual IP on Linux, run the ifconfig
command as root:
/sbin/ifconfig interface:index IP_address netmask netmask /sbin/arping -q -U -c 3 -I interface IP_address
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
Note: In these examples, 'ethX' is the ethernet interface (eth0 or eth1) and Y is the index (0, 1, 2, etc.). |
Run the Oracle Fusion Middleware Configuration Wizard from the Oracle Common home directory to create a domain containing the Administration Server. You will extend the domain to contain other components later.
Change the directory to the location of the Oracle Fusion Middleware Configuration Wizard (created in Chapter 3, "Installing the Software"):
SOAHOST1> cd ORACLE_COMMON_HOME/common/bin
Start the Configuration Wizard:
SOAHOST1> ./config.sh
In the Welcome screen, select Create a new WebLogic Domain, and click Next.
The Select Domain Source screen opens. In this screen, do the following (as shown in Figure 5-1):
Select Generate a domain configured automatically to support the following products.
Select the following products:
Basic WebLogic Server Domain - 10.3.4.0 [wlserver_10.3] (this should be selected automatically)
Oracle Enterprise 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 JRF
Click Next.
In the Specify Domain Name and Location screen, enter the domain name (domain_name).
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/aserver/applications for the application directory. This directory should be in shared storage.
Click Next.
In the Configure Administrator User Name 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 JROCKIT SDK1.6.0_<version>.
Click Next.
In the Select Optional Configuration screen, select the following:
Administration Server
Managed Servers, Clusters and Machines
Click Next.
In the Configure the Administration Server screen, enter the following values:
Name: AdminServer
Listen address: enter ADMINVHN.
Listen port: 7001
SSL listen port: N/A
SSL enabled: leave this check box unselected.
Click Next.
In the Configure Managed Servers screen, click Next.
In the Configure Clusters screen, click Next.
In the Configure Machines screen, click the Unix Machine tab and then click Add to add the following machine:
Leave all other fields to their default values. Please note that the machine name does not need to be a valid host name or listen address; it is just a unique identifier of a Node Manager location.
Click Next.
In the Assign Servers to Machines screen, assign servers to machines as follows:
ADMINHOST:
AdminServer
Click Next.
In the Configuration Summary screen, click Create.
In the Create Domain screen, click Done.
Create a boot.properties file for the Administration Server on SOAHOST1. This file enables the Administration Server to start without prompting you for the administrator username and password.
Create the following directory structure:
mkdir -p ORACLE_BASE/admin/domain_name/aserver/domain_name/servers/AdminServer/security
In a text editor, create a file called boot.properties in the directory created in the previous step, and enter the following lines in the file:
username=Admin_Username 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 5.5, "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. |
Save the file and close the editor.
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 12.8.3, "Incomplete Policy Migration After Failed Restart of SOA Server." |
Start Node Manager:
SOAHOST1> cd WL_HOME/server/bin
SOAHOST1> export JAVA_OPTIONS=-DDomainRegistrationEnabled=true
SOAHOST1> ./startNodeManager.sh
Note: It is important that the-DDomainRegistrationEnabled= true parameter is set whenever a Node Manager is started which must manage the Administration Server. If there is no Administration Server on the machine and the machine is not an Administration Server failover node, then Node Manager can be started using
SOAHOST1> ./startNodeManager.sh (without the |
The administration server will be started and stopped using Node Manager. However, the first start of the administration server with Node Manager requires changing the default username and password that the Oracle Fusion Middleware Configuration Wizard set for Node Manager. You must therefore use the start script for the administration server for the first start. Follow these steps to start the Administration Server using Node Manager (steps 1 through 4 are required for the first start; all subsequent starts require only step 4):
Start the Administration Server using the start script in the domain directory:
SOAHOST1> cd ORACLE_BASE/admin/domain_name/aserver/domain_name/bin SOAHOST1> ./startWebLogic.sh
Use the Administration Console to update the Node Manager credentials:
Open a Web browser and go to http://ADMINVHN:7001/console.
Log in as the administrator.
Click on domain_name, then Security, then General, and then expand the Advanced options at the bottom.
Click Lock & Edit.
Enter a new username for Node Manager or make a note of the existing one and update the Node Manager password.
Save and activate the changes.
Stop the administration server process (either using Ctrl+C in the shell where it was started or by the standard process identification and kill commands in the operating system).
Start the Oracle WebLogic Scripting Tool (WLST) and connect to Node Manager with nmconnect
and the credentials set above, and start the administration server using nmstart
:
SOAHOST1> cd ORACLE_COMMON_HOME/common/bin
SOAHOST1> ./wlst.sh
Once in the WLST shell, execute the following command (make sure Node Manager is up and running):
wls:/offline>nmConnect(Admin_User,'Admin_Pasword, SOAHOST1,'5556','domain_name','/u01/app/oracle/admin/domain_name/aserver/domain_name') wls:/nm/domain_name> nmStart('AdminServer')
Note: SOAHOST1 is the address of the node where the domain was created, not the listen address of the administration server. Also, the username and password are only used to authenticate connections between Node Manager and clients. They are independent from the server admin ID and password, and are stored in the ORACLE_BASE/admin/domain_name/aserver/domain_name/config/nodemanager/nm_password.properties file. |
Perform these steps to ensure that the administration server is properly configured:
Open a Web browser and go to http://ADMINVHN :7001/console.
Log in as the administrator.
Check that you can access Oracle Enterprise Manager at http://ADMINVHN :7001/em.
Log in to Enterprise Manager Console with the username and password you specified in Section 5.3, "Creating boot.properties for the Administration Server on SOAHOST1."
This step is required if you have not set up the appropriate certificates to authenticate the different nodes with the Administration Server (see Chapter 9, "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 9, "Setting Up Node Manager."
Perform these steps to disable host name verification:
Log in to Oracle WebLogic Server Administration Console.
Click Lock & Edit.
Expand the Environment node in the Domain Structure window.
Click Servers. The Summary of Servers page opens.
Select AdminServer(admin) in the Names column of the table. The settings page for the server opens.
Open the SSL tab.
Expand the Advanced section of the page.
Set host name verification to 'None'.
Click Save.
Save and activate the changes.
The change will not take effect until the Administration Server is restarted (Node Manager must be up and running):
In the Summary of Servers screen, select the Control tab.
Select AdminServer(admin) in the table and then click Force shutdown.
Start the Administration Server again as described in Section 5.5, "Starting the Administration Server on SOAHOST1."
To enable Oracle HTTP Server to route to the Administration Server, you must set the corresponding mount points in your HTTP server configuration:
For each of the web servers on WEBHOST1 and WEBHOST2, create a file called admin.conf in the directory ORACLE_INSTANCE/config/OHS/component/moduleconf, and add the following lines to this file:
NameVirtualHost *:80 <VirtualHost *:80> ServerName admin.mycompany.com:80 ServerAdmin you@your.address RewriteEngine On RewriteOptions inherit # Admin Server and EM <Location /console> SetHandler weblogic-handler WebLogicHost ADMINVHN WeblogicPort 7001 WLProxySSL ON WLProxySSLPassThrough ON </Location> <Location /consolehelp> SetHandler weblogic-handler WebLogicHost ADMINVHN WeblogicPort 7001 WLProxySSL ON WLProxySSLPassThrough ON </Location> <Location /em> SetHandler weblogic-handler WebLogicHost ADMINVHN WeblogicPort 7001 WLProxySSL ON WLProxySSLPassThrough ON </Location> </VirtualHost>
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
Important Security Consideration
For security purposes, and since the load balancer terminates SSL request (Oracle HTTP Server routes the requests as non-SSL to WebLogic Server), once SSL is configured for the load balancer, turn on the WebLogic plug-in enabled flag2 for the domain. Make sure you do this only if SSL is configured for the load balancer. To perform this procedure, follow these steps:
Log on to the Administration Console.
Click on the domain name in the navigation tree on the left.
Open the Web Applications tab.
Click Lock & Edit.
Select the WebLogic Plugin Enabled check box.
Save and activate the changes.
Restart the administration server (even though the WLS console may not specifically prompt for that).
For Oracle Enterprise Manager Fusion Middleware Console to be able to manage and monitor Oracle HTTP Server instances, they must be registered with the domain. To do this, you must register Oracle HTTP Server with Oracle WebLogic Server using the following command:
WEBHOST1> cd ORACLE_BASE/admin/instance_name/bin WEBHOST1> ./opmnctl registerinstance -adminHost ADMINVHN -adminPort 7001 -adminUsername weblogic
You must also run this command from WEBHOST2 for OHS2.
Note: After registering Oracle HTTP Server, it should appear as a manageable target in the Oracle Enterprise Manager Console. To verify this, log in to the Enterprise Manager Console. The WebTier item in the navigation tree should show that Oracle HTTP Server has been registered. |
The Oracle WebLogic Server Administration Console application tracks changes made to ports, channels and security using the console. When changes made through the console are activated, the console validates its current listen address, port and protocol. If the listen address, port and protocol are still valid, the console redirects the HTTP request replacing the host and port information with the Administration Server's listen address and port. When the Administration Console is accessed using a load balancing router (LBR), it is required to change the Administration Server's frontend URL so that the user's web browser is redirected to the appropriate LBR address. To do this, complete these steps:
Log in to Oracle WebLogic Server Administration Console.
Click Lock & Edit.
Expand the Environment node in the Domain Structure window.
Click Servers. The Summary of Servers page opens.
Select Admin Server in the Names column of the table. The settings page for AdminServer(admin) opens.
Click the Protocols tab.
Click the HTTP tab.
Set the Front End Host field to admin.mycompany.com
(your LBR address).
Save and activate the changes.
To eliminate redirections it is recommended that you disable the Administration Console's "Follow changes" feature. To do this, log on to the Administration Console and click Preferences and then Shared Preferences. Clear the 'Follow Configuration Changes' check box and click Save.
Verify that the server status is reported as "Running" in the Administration 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 12.8, "Troubleshooting" for possible causes.
Validate Administration Console and Enterprise Manager through both Oracle HTTP Server instances using the following URLs:
http://WEBHOST1:7777/console
http://WEBHOST2:7777/console
http://WEBHOST1:7777/em
http://WEBHOST2:7777/em
Note: After setting the frontend URL to the LBR address, the access to the console through the WEBHOSTn addresses will be redirected by the console to the frontend URL, thus validating the correct configuration of both Oracle HTTP Server and the LBR device. |
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."
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:
Section 5.12.2, "Validating Access to SOAHOST2 Through Oracle HTTP Server"
Section 5.12.3, "Failing the Administration Server Back to SOAHOST1"
Please note the following assumptions:
The Administration Server is configured to listen on ADMINVHN, and not on ANY address. See step 12 in Section 5.2, "Running the Configuration Wizard on SOAHOST1 to Create a Domain".
The Administration Server is failed over from SOAHOST1 to SOAHOST2, and the two nodes have these IP addresses:
SOAHOST1: 100.200.140.165
SOAHOST2: 100.200.140.205
ADMINVHN: 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.
Note: Node Manager in SOAHOST2 will not control the domain domain_name at this point, sinceunpack/nmEnroll has not been run yet on SOAHOST2. However, for the purpose of AdminServer failover and control of the administration server itself, Node Manager will be fully functional. Later failovers (after unpack has been run in SOAHOST2) will correctly have Node Manager controlling the domain. |
Oracle WebLogic Server and Oracle FMW components have been installed in SOAHOST2 as described in Chapter 3, "Installing the Software" (that is, the same paths for ORACLE_HOME and MW_HOME that exist on SOAHOST1 are also available on SOAHOST2).
Procedure
The following procedure shows how to fail over the Administration Server to a different node (SOAHOST2):
Stop the Administration Server if it is running.
Migrate the IP address to the second node:
Run the following command as root on SOAHOST1 (where X:Y is the current interface used by ADMINVHN):
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 100.200.140.206 netmask 255.255.255.0
Note: Make sure that the netmask and interface to be used match the available network configuration in SOAHOST2. |
Update the routing tables using arping
, for example:
SOAHOST2> /sbin/arping -b -A -c 3 -I eth0 100.200.140.206
Start Node Manager in SOAHOST2 as described in Section 5.4, "Starting Node Manager on SOAHOST1."
Start the Administration Server on SOAHOST2 as described in Section 5.5, "Starting the Administration Server on SOAHOST1."
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://ADMINVHN :7001/console.
Check that you can access and verify the status of components in the Oracle Enterprise Manager at http://ADMINVHN :7001/em.
Perform the same steps as in Section 5.11, "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 again. To do this, migrate ADMINVHN back to the SOAHOST1 node as follows:
Make sure the Administration Server is not running.
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: Make sure that the netmask and interface to be used match the available network configuration in SOAHOST1. |
Update the routing tables using 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 as described in Section 5.5, "Starting the Administration Server on SOAHOST1."
Test that you can access the Oracle WebLogic Server Administration Console at http://ADMINVHN:7001/console.
Check that you can access and verify the status of components in the Oracle Enterprise Manager at http://ADMINVHN:7001/em.
After you have verified that the extended domain is working, back up the installation. This is a quick backup for the express purpose of immediate restore in case of problems in the further steps. The backup destination is the local disk. This backup can be discarded once the enterprise deployment setup is complete. At that point, the regular deployment-specific backup and recovery process can be initiated. The Oracle Fusion Middleware Administrator's Guide provides further details. For information on describing the Oracle HTTP Server data that must be backed up and restored, refer to the "Backup and Recovery Recommendations for Oracle HTTP Server" section in that guide. For information on how to recover components, see the "Recovery of Components" and "Recovery After Loss of Component" sections in the guide. For recommendations specific to recovering from the loss of a host, see the "Recovering Oracle HTTP Server to a Different Host" section in the guide. Also refer to the Oracle Database Backup and Recovery Guide for information on database backup.
Perform these steps to back up the installation at this point:
Back up the web tier:
Shut down the instance using opmnctl
:
WEBHOST1> ORACLE_BASE/admin/instance_name/bin/opmnctl stopall
Back up the Middleware Home on the web tier using the following command (as root):
WEBHOST1> tar -cvpf BACKUP_LOCATION/web.tar MW_HOME
Back up the Oracle Instance Home on the web tier using the following command:
WEBHOST1> tar -cvpf BACKUP_LOCATION/web_instance_name.tar ORACLE_INSTANCE
Start the instance using opmnctl
:
WEBHOST1> cd ORACLE_BASE/admin/instance_name/bin WEBHOST1> opmnctl startall
Repeat this step for WEBHOST2.
Back up the database. This is a full database backup (either hot or cold) using Oracle Recovery Manager (recommended) or operating system tools such as tar for cold backups if possible.
Stop the Administration Server and back up its domain directory to save your domain configuration. The configuration files all exist in the ORACLE_BASE/admin/ domain_name directory. Run the following command to create the backup:
SOAHOST1> tar -cvpf edgdomainback.tar ORACLE_BASE/admin/domain_name
Do not forget to restart the Administration Server again.