Oracle® Application Server 10g Managing Multiple Oracle Application Server Instances on a Single Host
10g (9.0.4.1) Part No. B13992-02 |
|
Copyright © 2004, Oracle. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Managing Multiple Oracle Application Server Instances on a Single Host
10g (9.0.4.1)
Part No. B13992-02
September 2004
If you have installed multiple Oracle Application Server instances on a single host, you can optionally reduce the memory and CPU consumption by performing the following post-installation configuration procedure.
By default, each Oracle Application Server instance on the host has its own Application Server Control, which is used to manage the components of that particular Oracle Application Server instance.
Use the instructions in this document to configure a single Application Server Control to manage two Oracle Application Server instances installed on the same host.
Note: For the purposes of this document, the Application Server Control that you use to manage both application server instances on the host is referred to as the active Application Server Control. The other Application Server Control on the host is referred to as the inactive Application Server Control. |
This document contains the following sections:
Creating a New targets.xml for the Active Application Server Control
Updating the StandaloneConsoleURL Property in the Inactive targets.xml File
Updating the opmn.xml File to Refer to the Active Application Server Control
Restarting the Active Application Server Control and Verifying the Results
The following sections describe the restrictions and supported configurations for performing the procedure described in this document:
Before you begin configuring a single Application Server Control to manage multiple application server instances on a host, consider the following restrictions:
This procedure allows you to manage multiple Oracle Application Server 10g Release 2 (9.0.4.1) instances that were installed on the same host using the Oracle Universal Installer. This procedure does not support previous versions of Oracle Application Server or Oracle Application Server instances installed without the use of the Oracle Universal Installer.
This procedure can be performed only if all the application servers running on the host have been installed using the same operating system user account.
The procedures described in this document are supported only for specific Oracle Application Server configurations. Specifically, you can perform this procedure to support two Oracle Application Server instances on the same host.
This procedure can be performed in both secure (HTTPS) and nonsecure (HTTP) installations.
Table 1 shows the configurations that are supported, as well as notes about each installation type combination.
Table 1 Supported Configurations for Managing Multiple Application Server Instances with a Single Application Server Control
Instance 1 | Instance 2 | Notes |
---|---|---|
J2EE and Web Cache | J2EE and Web Cache | This configuration is supported only if you are not using Business Components for Java (BC4J). BC4J is not supported when you use one Application Server Control to manage two J2EE and Web Cache instances.
The active Application Server Control can reside in either home. |
J2EE and Web Cache | OracleAS Infrastructure | The active Application Server Control must reside in the J2EE & Web Cache Oracle home. |
Portal and Wireless | OracleAS Infrastructure | The active Application Server Control must reside in the Portal & Wireless Oracle home. |
Business Intelligence and Forms | OracleAS Infrastructure | The active Application Server Control must reside in the Business Intelligence and Forms Oracle home. |
When performing the procedure described in this document, you should consider whether or not you have installed additional software on top of your standard Oracle Application Server installations. Specifically:
If you have installed Oracle Content Management SDK (Oracle CM SDK), then the Oracle CM SDK software must be installed in the Oracle home for the active Application Server Control.
In addition, when performing this procedure, Oracle CM SDK is supported only when it is installed in a J2EE and Web Cache Oracle home or in a Portal and Wireless Oracle home.
If you have installed Oracle Application Server ProcessConnect, then the Oracle Application Server ProcessConnect software must be installed in the Oracle home for the active Application Server Control and not in the inactive Oracle home.
In addition, when performing this procedure, ProcessConnect is supported only when it is installed in a J2EE and Web Cache Oracle home.
Note: Oracle Application Server ProcessConnect requires an Oracle Application Server Metadata Repository. For more information see the Oracle Application Server ProcessConnect Installation Guide for your platform.The Oracle Application Server ProcessConnect documentation can be found on the Oracle Application Server documentation page on OTN: http://otn.oracle.com/documentation/appserver10g.html |
If you have installed Oracle Workflow, then the Oracle Workflow software must be installed in the Oracle home for the active Application Server Control.
In addition, when performing this procedure, Oracle Workflow is supported only when it is installed in a Portal and Wireless Oracle home.
By default, each Oracle Application Server instance has its own Application Server Control Console URL and its own list of targets to manage. The targets managed by each Application Server Control are defined in the following configuration file in the home directory of the Oracle Application Server instance:
$ORACLE_HOME/sysman/emd/targets.xml (UNIX) %ORACLE_HOME%\sysman\emd\targets.xml (Windows)
The first step in managing multiple application server instances from a single Application Server Control is to combine the targets.xml
files for each instance into one.
To create a new targets.xml
that includes the application server targets for multiple application server instances, use the following procedure:
Stop the Application Server Control for each of the application server instances on the host.
On UNIX systems, enter the following command in each Oracle Application Server Oracle home to stop the Application Server Control:
prompt> ORACLE_HOME/bin/emctl stop iasconsole
On Windows systems, use the Services control panel to stop the Application Server Control service for each Oracle home.
If it's not set already, set the ORACLE_HOME environment variable so it represents the complete path to the home directory of the active Application Server Control, which you will use to manage multiple application server instances on the host.
For example:
prompt> setenv ORACLE_HOME /dev01/oracle/oas1/ (UNIX) prompt> set ORACLE_HOME=D:\oracle\oas1\ (Windows)
Set the JAVA_HOME environment variable so it represents the location of your Java executable.
For example:
prompt> setenv JAVA_HOME $ORACLE_HOME/jdk (UNIX) prompt> set JAVA_HOME=%ORACLE_HOME%\jdk (Windows)
Change directory to the following location in the home directory of the active Application Server Control:
$ORACLE_HOME/sysman/emd/ (UNIX) %ORACLE_HOME%\sysman\emd\ (Windows)
Copy the targets.xml
file so you have a backup copy that will not be overwritten:
prompt> cp targets.xml old_targets.xml (UNIX) prompt> copy targets.xml old_targets.xml (Windows)
Enter the following command at the command prompt:
prompt> $JAVA_HOME/bin/java -jar $ORACLE_HOME/jlib/emConfigInstall.jar listtargetsfully <source_home> <active_home> > targets_temp.xml (UNIX) prompt> %JAVA_HOME%\bin\java -jar %ORACLE_HOME%\jlib\emConfigInstall.jar listtargetsfully <source_home> <active_home> targets_temp.xml (Windows)
Replace <source_home>
with the full path to the Oracle home of the application server instance that will be managed by the active Application Server Control.
Replace <active_home>
with the full path to the Oracle home for the active Application Server Control.
For example:
prompt> $JAVA_HOME/bin/java -jar $ORACLE_HOME/jlib/emConfigInstall.jar listtargetsfully /dev0/oracle/oas2/ $ORACLE_HOME > targets_temp.xml (UNIX) prompt> %JAVA_HOME%\bin\java -jar %ORACLE_HOME%\jlib\emConfigInstall.jar listtargetsfully C:\oracle\oas2 %ORACLE_HOME% > targets_temp.xml (Windows)
This command lists the contents of the targets.xml
file in the source Oracle home and redirects the output to a temporary version of the targets.xml
file. This temporary version of the file (targets_temp.xml
) contains the contents of the targets.xml
files in the source Oracle Home. The temporary file also includes any encrypted information (such as target monitoring credentials) in a format that can be read successfully by the active Application Server Control.
Note: It is important that you use theemConfigInstall.jar administrative tool to create the targets_temp.xml temporary file. Do not attempt to copy and paste the contents of the inactive targets.xml into the targets.xml of the active Oracle home; otherwise, encrypted information in the targets.xml file will be lost.
|
Using a text editor, open the targets_temp.xml
file and copy all of the content, except the following:
The <Targets>
and </Targets>
tags at the beginning and at the end of the file
The target definition for the host target. For example:
<Target TYPE="host" NAME="sys1.acme.com" DISPLAY_NAME="sys1.acme.com" VERSION="1.0"> </Target>
Paste the content you copied from the targets_temp.xml
file into the targets.xml
file in the Oracle home of the active Application Server Control.
Be sure to paste the content at the end of the file, but before the </Targets>
tag. In other words, be sure that all the target definitions are within the <Targets>
and </Targets>
tags.
Locate the following entry for each oracle_ias
target type in the new targets.xml
file:
<Property NAME="StandaloneConsoleURL" VALUE="http://node_name:port/emd/console"/>
This entry identifies the URL and port number of the Application Server Control Console used to manage the application server instance.
Make sure the port number for each of these entries matches the port number of the active Application Server Control Console, which you will be using to manage multiple application server targets on this host.
Save and close the updated targets.xml
file.
By default, when you install multiple instances of Oracle Application Server on a host, each instance is assigned a unique port number from which you can view the Application Server Control Console for that instance. However, when you configure your system to use only one Application Server Control for multiple instances, all the instances on the host must reference the same URL and port number.
As a result, you must make sure that other software components on the system also use only the port for the active Application Server Control.
Specifically, you must make sure that the Distributed Configuration Management (DCM) software associated with the inactive Application Server Control is updated to recognize the port number of the active Application Server Control.
You accomplish this task by updating the original targets.xml
in the Oracle home directory of the inactive Application Server Control so that the StandaloneConsoleURL
property refers to the active Application Server Control URL and port number.
Note: In the following procedure, the term INACTIVE_ORACLE_HOME refers to the Oracle home that will not be running an Application Server Control. The inactive Oracle home will be managed by the active Application Server Control. |
Perform the following task in the Oracle home of the inactive Application Server Control:
If you have not done so already, stop the inactive Application Server Control.
On UNIX systems, enter the following command:
prompt> INACTIVE_ORACLE_HOME/bin/emctl stop iasconsole
On Windows systems, use the Services control panel to stop the Application Server Control service for the inactive Oracle home.
Use a text editor to open the targets.xml
file, which is located in the following directory of the inactive Oracle home:
INACTIVE_ORACLE_HOME/sysman/emd/ (UNIX) INACTIVE_ORACLE_HOME\sysman\emd\ (Windows)
Locate the StandaloneConsoleURL
property for the oracle_ias
target:
<Property NAME="StandaloneConsoleURL" VALUE="http://<node_name>:<port>/emd/console"/>
This entry identifies the URL and port number of the Application Server Control Console used to manage this application server instance.
Make sure the port number for this entry matches the port number of the active Application Server Control Console, which you will be using to manage this application server target.
Save and close the updated targets.xml
file.
Start and then stop the inactive Application Server Control Console.
On UNIX systems, use the following commands to start and then stop the Application Server Control:
prompt> INACTIVE_ORACLE_HOME/bin/emctl start iasconsole prompt> INACTIVE_ORACLE_HOME/bin/emctl stop iasconsole
On Windows systems, use the Services control panel to start and then stop the inactive Application Server Control service.
When you restart the Application Server Control Console, DCM is initialized and registers the new port value.
Now that you have configured the active Application Server Control, you no longer need to run this instance of the Application Server Control.
The Oracle Process Management and Notification (OPMN) software within each Oracle Application Server Oracle home is configured to work with the local Application Server Control for that instance.
When you configure your system to use only one Application Server Control, you must edit the OPMN configuration file in the Oracle home of the inactive Application Server Control. Specifically, you must configure OPMN so that it references the active Application Server Control and not the local, inactive Application Server Control.
Note: In the following procedure, the term INACTIVE_ORACLE_HOME refers to the Oracle home that will not be running an Application Server Control. The inactive Oracle homes will be managed by the active Application Server Control. |
Perform this procedure in the Oracle home of the inactive Application Server Control:
Stop OPMN.
On UNIX systems, enter the following command in the Oracle home of the inactive Application Server Control:
prompt> INACTIVE_ORACLE_HOME/opmn/bin/opmnctl stopall
On Windows systems, use the Services control panel to stop the process manager service for the inactive Oracle home.
Use a text editor to open the opmn.xml
file for the instance:
INACTIVE_ORACLE_HOME/opmn/conf/opmn.xml (UNIX) INACTIVE_ORACLE_HOME\opmn\conf\opmn.xml (Windows)
Locate the following entry in the file:
<ias-component id="dcm-daemon" status="enabled" id-matching="true"> . . . <data id="java-parameters" value="-Xmx256m -Xrs -Doracle.ias.sysmgmt.logging.loglevel=ERROR -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=$TMP"/> . . . </ias-component>
Add the following to the existing java-parameters
data tag:
-DemLocOverride=<oracle_home_of_the_active_application_server_control>
For example:
<data id="java-parameters" value="-Xmx256m -Xrs
-Doracle.ias.sysmgmt.logging.loglevel=ERROR
-Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=$TMP
-DemLocOverride=/dev0/oracle/oas1"/>
Note that the additional Java parameter must be inserted before the closing quotation mark.
Save and close the opmn.xml
file.
Start OPMN.
On UNIX systems, enter the following command:
prompt> INACTIVE_ORACLE_HOME/opmn/bin/opmnctl startall
On Windows systems, use the Services control panel to start the process manager service for the inactive Oracle home.
The procedure you use to verify the results of this procedure varies depending upon your configuration. See the following topics for more information:
Use the following verification procedure if one of the application server instances you are managing with a single Application Server Control is an OracleAS Infrastructure installation that includes OracleAS Identity Management:
Navigate to the home directory of the Identity Management installation and start Oracle Internet Directory by entering the following command:
prompt> INACTIVE_ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=oid (UNIX) prompt> INACTIVE_ORACLE_HOME\opmn\bin\opmnctl startproc ias-component=oid (Windows)
Start the active Application Server Control.
On UNIX systems, use the following command:
prompt> $ORACLE_HOME/bin/emctl start iasconsole
On Windows systems, use the Services control panel to start the Application Server Control service.
There is no need to start the Application Server Control in the other, inactive Oracle Application Server home directory.
Open your browser and enter the host name and port for the active Application Server Control Console.
Enterprise Manager displays the Farm page, which lists the application server instances that are currently using this OracleAS Metadata Repository.
When you click an application server name on the Farm page, notice that you are navigating to the same port number in all cases. You have access to all the management features, but only one Application Server Control is running on the host.
If you are managing two J2EE and Web Cache instances, use the following procedure to verify that you have configured the active Application Server Control successfully:
Start the active Application Server Control.
On UNIX systems, use the following command:
prompt> $ORACLE_HOME/bin/emctl start iasconsole
On Windows systems, use the Services control panel to start the Application Server Control service.
There is no need to start the Application Server Control in the other, inactive Oracle Application Server home directory.
Open your browser and enter the host name and port for the active Application Server Control Console.
The result depends upon whether or not the instances you are managing are part of an Oracle Application Server Farm:
If the instances are not part of an OracleAS Farm, Enterprise Manager displays the Application Servers page, which lists the application servers on the host. Click the name of an application server to navigate to the Application Server home page for that instance.
If the instances are part of an OracleAS Farm, Enterprise Manager displays the OracleAS Farm page, which lists all the application server standalone instances and clusters that use this Farm repository.
In either situation, when you click the name of an application server instance, notice that you are navigating to the same port number in all cases. You have access to all the management features, but only one Application Server Control is running on the host.
After you have performed the procedures in this document, you may want to deinstall one of the application server instances on the host.
The following sections provide instructions you should follow before you remove either the active or the inactive application server instance:
Deinstalling the Oracle Home with the Active Application Server Control
Deinstalling the Oracle Home with the Inactive Application Server Control
See Also: Oracle Application Server 10g Installation Guide for instructions on deinstalling Oracle Application Server instances |
If you deinstall the Oracle home with the active Application Server Control, use the following instructions to configure the inactive Application Server Control so it can once again manage the remaining Oracle Application Server instance:
Stop OPMN in the Oracle home of the inactive Application Server Control.
On UNIX systems, enter the following command in the Oracle home of the inactive Application Server Control:
prompt> INACTIVE_ORACLE_HOME/opmn/bin/opmnctl stopall
On Windows systems, use the Services control panel to stop the process manager service for the inactive Oracle home.
Remove the -DemLocOverride
entry from the opmn.xml
file.
Refer to the instructions in the section "Updating the opmn.xml File to Refer to the Active Application Server Control" to locate the entry in the opmn.xml
file.
Start OPMN.
On UNIX systems, enter the following command:
prompt> INACTIVE_ORACLE_HOME/opmn/bin/opmnctl startall
On Windows systems, use the Services control panel to start the process manager service for the inactive Oracle home.
Modify the StandAloneConsoleURL
property in the targets.xml
file so it refers to the original port number of the Application Server Control Console in the inactive Oracle home.
Refer to the instructions in the section "Updating the StandaloneConsoleURL Property in the Inactive targets.xml File" to locate the entry in the targets.xml
file.
To identify the original port number for the StandaloneConsoleURL
property, check the contents of the following file, which contains the original port numbers assigned during the installation procedure:
INACTIVE_ORACLE_HOME/install/setupinfo.txt (UNIX) INACTIVE_ORACLE_HOME\install\setupinfo.txt (Windows)
Start the inactive Application Server Control.
On UNIX systems, use the following commands to start the Application Server Control:
prompt> ORACLE_HOME/bin/emctl start iasconsole
On Windows systems, use the Services control panel to start the Application Server Control service.
When you start the Application Server Control, DCM is initialized and registers the new port value in the opmn.xml
file.
After you have reconfigured the inactive Application Server Control, you can manage the remaining instance with its original Application Server Control.
If you deinstall the Oracle home with the inactive Application Server Control, you must modify the targets.xml
in the Oracle home of the active Application Server Control so it no longer references components that were in the inactive Oracle Application Server instance.
To remove the references to components in the Oracle home of the inactive Application Server Control:
If you have not done so already, stop the active Application Server Control.
On UNIX systems, enter the following command:
prompt> ACTIVE_ORACLE_HOME/bin/emctl stop iasconsole
On Windows systems, use the Services control panel to stop the Application Server Control service for the active Oracle home.
Use a text editor to open the targets.xml
file, which is located in the following directory of the active Oracle home:
ACTIVE_ORACLE_HOME/sysman/emd/ (UNIX) ACTIVE_ORACLE_HOME\sysman\emd\ (Windows)
Remove all the target definitions that refer to components in the inactive Oracle home that you will be deinstalling.
One way to identify the targets that represent components in the inactive Oracle home is by checking the OracleHome
property. Each target (except the Host target) should have an OracleHome
property, which indicates the location of the component. For example:
<Property NAME="OracleHome" VALUE="D:\oracle\appserv42"/>
As a result, you can remove the targets that include an OracleHome
property that references the Oracle home of the inactive Application Server Control.
For each component in the inactive Oracle home, be sure to remove the <target>
and </target>
tags, as well as all the XML tags between the <target>
and </target>
tags.
After you remove all the target tags that refer to the inactive Oracle home, save the updated targets.xml
file and start the active Application Server Control.
On UNIX systems, use the following command to start the Application Server Control:
prompt> ACTIVE_ORACLE_HOME/bin/emctl start iasconsole
On Windows systems, use the Services control panel to start the Application Server Control service.
After you reconfigure and restart the active Application Server Control, you can manage the remaining active instance with its original Application Server Control.
Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at
http://www.oracle.com/accessibility/
Accessibility of Code Examples in Documentation JAWS, a Windows screen reader, may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, JAWS may not always read a line of text that consists solely of a bracket or brace.
Accessibility of Links to External Web Sites in Documentation This documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.