This chapter provides an overview about how to install and configure Oracle Fusion Middleware and how to start and stop Oracle Fusion Middleware processes.
This chapter contains the following topics:
This chapter describes how to use the installation and configuration tools to create the following:
Figure 3-1 shows the domain with the Administration Server and Managed Servers.
Figure 3-1 Oracle WebLogic Server Domain with Administration Server and Managed Servers
The following are the general steps you need to take to install and configure Oracle Fusion Middleware:
Most components require a database-based repository. In those cases, you must use the Oracle Fusion Middleware Metadata Repository Creation Utility (RCU) to create the metadata repository in an existing database. You use RCU to create schemas to hold configuration information for particular components, and optionally, for overall configuration information.
In addition, you can use RCU to create a particular type of repository, the MDS Repository, which contains metadata for certain types of deployed applications. Those applications include custom Java applications developed by your organization and some Oracle Fusion Middleware Java components, such as Oracle B2B.
The following components do not require a database-based repository. They can store their configuration information in a file-based repository:
The procedure in this section assumes that you have an existing Oracle Database and that you have installed RCU.
Oracle recommends that all metadata repositories reside on a database at the same site as the components to minimize network latency issues.
To create a metadata repository:
(UNIX) RCU_HOME/bin/rcu (Windows) RCU_hOME\bin\rcu.bat
Now, you have created a database-based metadata repository and have populated it with the required schemas.
You use the Oracle WebLogic Server installation program to install Oracle WebLogic Server. For the scenarios in this book, accept the default values in the installer, creating a new Middleware home.
When the installation completes, you have a Middleware home and a WebLogic Server home. By default, the Middleware home is:
(UNIX) user_home/Oracle/Middleware (Windows) user_home\Oracle\Middleware
You use the installer to install, and, in some cases, to optionally configure Oracle Fusion Middleware.
For the procedures in this book, use the Oracle SOA Suite install type. Refer to the Oracle Fusion Middleware Installation Guide for Oracle SOA Suite . To make it easier to complete the procedures in this book, note the following on the Specify Installation Location page:
/scratch/oracle/Oracle/Middleware
Oracle_SOA1
You can configure some components, such as Oracle HTTP Server or Oracle Web Cache, when you install them. For other components, such as Oracle WebLogic Server, Oracle SOA Suite, or Oracle WebCenter, you must configure the components using the Oracle Fusion Middleware Configuration Wizard.
To configure Oracle WebLogic Server and Oracle SOA Suite:
(UNIX) ORACLE_HOME_for_component/common/bin/config.sh (Windows) ORACLE_HOME_for_component\common\bin\config.cmd
The following figure shows the Configure JDBC Component Schema page:
Admin Server URL: http://hostname.domainname.com:7001
Now, you have created a domain, including an Administration Server and two Managed Servers, soa_server1 and bam_server1.
MW_HOME/user_projects/domains/SOA_domain/bin/startWeblogic.sh
MW_HOME/user_projects/domains/SOA_domain/bin/startManagedWebLogic.sh soa_server1 http://hostname:7001
When the configuration completes and you have started the Administration Server and the Managed Servers, you can view and manage Oracle Fusion Middleware using the graphical user interfaces or command-line tools. For example, to use Fusion Middleware Control to view and managed your environment, enter the Admin Server URL you noted from the Creating Domain screen, with /em appended. For example:
http://hostname.domainname:port/em
By default, the port is 7001.
You can extend a domain to include the templates for other components by using the Configuration Wizard. For example, you can extend a domain that was initially created to support Oracle SOA Suite so that it can now also support Oracle WebCenter or Oracle HTTP Server. For more information, see Section 9.2.
For information about using the tools to view and manage Oracle Fusion Middleware, see:
For more information about configuring components, see the Installation Guide for that component.
When you installed Oracle Fusion Middleware, you were logged in to your operating system as a particular user. You should always log in as this user to manage your installation because this user has permission to view and modify the files in your installation's Oracle home.
To use Oracle Fusion Middleware, you must set environment variables as shown in the following tables:
Table 3-1 Environment Variables for Linux and UNIX
hostname : display_number . screen_number
Beginning with Oracle Application Server 10g, very few tools, such as oidadmin , require the DISPLAY variable.
On Solaris, ensure that the value contains the following directory:
$ORACLE_HOME/lib32
On Linux and HP-UX, ensure that the value contains the following directory:
$ORACLE_HOME/lib
On IBM AIX, ensure that this environment variable is not set.
(IBM AIX only) LIBPATH
If the calling application is a 32-bit application, ensure that the value contains the following directory:
$ORACLE_HOME/lib32
If the calling application is a 64-bit application, ensure that the value contains the following directory:
$ORACLE_HOME/lib
(Solaris only) LD_LIBRARY_PATH_64
Ensure that the value contains the following directory:
$ORACLE_HOME/lib
(HP-UX only) SHLIB_PATH
Ensure that the value contains the following directory:
$ORACLE_HOME/lib32
Set to the full path of the installation's Middleware home. Do not use a trailing slash in the definition. The following example shows the full path:
/scratch/Oracle/Middleware
Setting this is useful if you have only one Oracle Home in your environment or you will be working with just that one Oracle home. Set to the full path of the Oracle home. Do not use a trailing slash in the definition. The following example shows the full path:
/scratch/Oracle/Middleware/ORACLE_HOME_SOA1
Optional. Setting this is useful if you have only one Oracle instance in your environment or you will be working with just that one instance. Set to the full path of an Oracle instance. Do not use a trailing slash in the definition. The following example shows the full path of a Web Tier installation:
scratch/Oracle/Middleware/WebTier/instances/instance1
Ensure that the value contains the following directory, which contains basic commands used by all installations:
$ORACLE_COMMON_HOME/bin
When you start to work with specific components, you may want to add additional directories to your path, as recommended by the component documentation.
Ensure that the value contains the following directory:
MW_HOME/jdkn
Ensure that the value contains the following directory:
$ORACLE_HOME/lib:MW_HOME/jdkn/lib
Table 3-2 shows the environment variables for Windows.
Table 3-2 Environment Variables for Windows
Set to the full path of the installation's Middleware home. Do not use a trailing slash in the definition. The following example shows the full path:
C:\oracle\Middleware
Setting this is useful if you have only one Oracle Home in your environment or you will be working with just that one Oracle home. Set to the full path of the Oracle home. Do not use a trailing backslash in the definition. The following example shows the full path:
C:\oracle\Middleware\ORACLE_SOA1
The value is automatically set during installation.
Optional. Setting this is useful if you have only one Oracle instance in your environment or you will be working with just that one instance. Set to the full path of an Oracle instance. Do not use a trailing backslash in the definition. The following example shows the full path of a Web Tier installation:
C:\oracle\Middleware\WebTier\instances\instance1
Ensure that the value contains the following directory, which contains basic commands used by all installations:
ORACLE_COMMON_HOME\bin
Ensure that the value contains the following directory:
MW_HOME\jdkn
Ensure that the value contains the following directory:
ORACLE_HOME\lib:MW_HOME\jdkn\lib
Set to your temp directory, for example, C:\temp.
Set to your temp directory, for example, C:\temp.
You can start and stop servers, components, and applications using the command line, the Oracle WebLogic Server Administration Console, or Fusion Middleware Control. The following topics describe how to start and stop these entities using Fusion Middleware Control, the command line, or both:
You can start and stop Oracle WebLogic Server Administration Servers using the WLST command line. When you start or stop the Administration Server, you also start or stop the processes running in the Administration Server, including the WebLogic Server Administration Console and Fusion Middleware Control.
To start an Oracle WebLogic Server Administration Server, use the following script:
MW_HOME/user_projects/domains/domain_name/bin/startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=password -Dweblogic.system.StoreBootIdentity=true
To stop an Oracle WebLogic Server Administration Server, use the following script:
MW_HOME/user_projects/domains/domain_name/bin/stopWeblogic.sh username password [admin_url]
Fusion Middleware Control and the Oracle WebLogic Server Administration Console use Node Manager to start Managed Servers. If you are starting a Managed Server that does not contain Oracle Fusion Middleware products other than Oracle WebLogic Server, you can start the servers using the procedure in this section.
However, if the Managed Server contains other Oracle Fusion Middleware products, such as Oracle SOA Suite, Oracle WebCenter, or Oracle JRF, you must first configure Node Manager, as described in Section 3.4.3.
To start or stop a Managed Server using Fusion Middleware Control:
To start a Managed Server:
MW_HOME/user_projects/domains/domain_name/bin/startManagedWebLogic.sh server_name admin_url username password
To stop a Managed Server:
MW_HOME/user_projects/domains/domain_name/bin/stopManagedWeblogic.sh username password admin_url
If a Managed Server contains other Oracle Fusion Middleware products, such as Oracle SOA Suite, Oracle WebCenter, or Oracle JRF, the Managed Servers environment must be configured to set the correct classpath and parameters. This environment information is provided through the start scripts, such as startWebLogic and setDomainEnv, which are located in the domain directory.
If the Managed Servers are started by Node Manager, (as is the case when the servers are started by the Oracle WebLogic Server Administration Console or Fusion Middleware Control), Node Manager must be instructed to use these start scripts so that the server environments are correctly configured. Specifically, Node Manager must be started with the property StartScriptEnabled=true .
There are several ways to ensure that Node Manager starts with this property enabled. As a convenience, Oracle Fusion Middleware provides the following script, which adds the property StartScriptEnabled=true to the nodemanager.properties file:
(UNIX) ORACLE_COMMON_HOME/common/bin/ setNMProps.sh. (Windows) ORACLE_COMMON_HOME\common\bin\setNMProps.cmd
For example, on Linux, execute the setNMProps script and start Node Manager:
ORACLE_COMMON_HOME/common/bin/setNMProps.sh MW_HOME/wl_server_n/server/bin/startNodeManager.sh
When you start Node Manager, it reads the nodemanager.properties file with the StartScriptEnabled=true property, and uses the start scripts when it subsequently starts Managed Servers. Note that you need to run the setNMProps script only once.
You can start and stop a component from the dynamic target menu in Fusion Middleware Control.
To start or stop Java components, such as Oracle Business Activity Monitoring:
To start or stop restart system components, such as Oracle HTTP Server:
To start and stop Java components:
startApplication(appName, [options]) stopApplication(appName, [options])
To start and stop system components:
opmnctl startproc ias-component=component opmnctl stopproc ias-component=component opmnctl restartproc ias-component=component
You can start or stop an application deployed in Oracle Fusion Middleware from the Application Deployment menu of Fusion Middleware Control.
To start or stop an application:
startApplication(appName, [options]) stopApplication(appName, [options])
If Fusion Middleware Control is configured for a domain, it is automatically started or stopped when you start or stop an Oracle WebLogic Server Administration Server, as described in Section 3.4.1.
Oracle Management Agent is designed specifically for monitoring Oracle Fusion Middleware system components, such as Oracle HTTP Server and Oracle Web Cache.
To start Oracle Management Agent, use the following command:
opmnctl startproc ias-component=EMAGENT
To stop Oracle Management Agent, use the following command:
opmnctl stopproc ias-component=EMAGENT
For more information about the topics covered in this chapter, see: