soa 11g cluster installation

Download SOA 11G Cluster Installation

If you can't read please download the document

Upload: ksknrindian

Post on 01-Dec-2015

250 views

Category:

Documents


0 download

DESCRIPTION

soa 11g cluster

TRANSCRIPT

  • Contents

    DOCUMENT CONTROL ................................................................................................... ERROR! BOOKMARK NOT DEFINED . INTRODUCTION ...................................................................................................................................................................... 1 SERVERS CONFIGURATION BEFORE INSTALLATION................................................................................................................ 2 xgsoapd5a server .................................................................................................................................................................. 2 Operating System Details .......................................................................................................................................................................... 2 Server Details ............................................................................................................................................................................................ 2 xgsoapd5b server .................................................................................................................................................................. 2 Operating System Details .......................................................................................................................................................................... 2 Server Details ............................................................................................................................................................................................ 2 Database details ................................................................................................................................................................... 2 INSTALLATION STEPS ............................................................................................................................................................. 3 Prepare JRE environment .................................................................................................................................................... 3 Run Repository Creation Utility (RCU)................................................................................................................................ 3 Install Weblogic Server ...................................................................................................................................................... 14 Install SOA Suite ................................................................................................................................................................ 21 Create Weblogic Domain ................................................................................................................................................... 28 Extend the Domain for SOA Components .......................................................................................................................... 46 Installing Oracle HTTP Server ........................................................................................................................................... 60 Extend the Domain to Include BAM ................................................................................................................................... 72 Upgrade Weblogic Server to version 10.3.3 ....................................................................................................................... 84 Upgrade SOA to version 11.1.1.3 ....................................................................................................................................... 89 Patch SOA environment ..................................................................................................................................................... 93 Prepare for AIA 11g FP Installation .................................................................................................................................. 94 AIA 11g FP Installation ..................................................................................................................................................... 96 AIA 11g FP PS2 application ............................................................................................................................................ 113 Configure Automatic Server Migration ............................................................................................................................ 120

  • Introduction

    SOA_cluster

    1

    Introduction

    This document contains steps performed for installation of Oracle SOA 11g to EA production environment.

  • Servers Configuration Before installation

    SOA_cluster

    2

    Servers Configuration Before installation

    xgsoapd5a server

    Operating System Details

    Hostname xgsoapd5A.ea.com

    Operating

    System

    RHEL 5.3 64-bit

    Server Details

    ORACLE_BASE /opt/fusion

    xgsoapd5b server

    Operating System Details

    Hostname xgsoapd5b.ea.com

    Operating

    System

    RHEL 5.3 64-bit

    Server Details

    ORACLE_BASE /opt/fusion

    Database details

    Oracle DB

    Version

    10.2.0.4

    Hostnames npddbsrv2.ea.com; npddbsrv3.ea.com

    Service Name GSOAPD3

  • Installation steps

    SOA_cluster

    3

    Installation steps

    Prepare JRE environment

    In order to have JDK available for Weblogic installation, use JRockit Mission Control installer, available to

    download on edelivery.oracle.com site (V20433-01.zip).

    Unzip the file

    Create a middleware home directory:

    mkdir /opt/fusion/fmw

    Change permission for the executable file:

    chmod 764 jrmc-4.0.0-1.6.0-linux-x64.bin

    Run the following command:

    ./jrmc-4.0.0-1.6.0-linux-x64.bin

    Enter new Product Installation Directory when asked in a command prompt:

    /opt/fusion/fmw/jrmc-4.0.0-1.6.0

    nstall Demos and Samples

    cd /opt/fusion/fmw

    ln -s jrmc-4.0.0-1.6.0 java

    Run Repository Creation Utility (RCU)

    Oracle SOA Suite components require schemas that must be installed in an Oracle database. You create and load

    these schemas in your database by using RCU.

    The RCU 11.1.1.2.1 utility is available to download from www.oracle.com site

    (ofm_rcu_win32_11.1.1.2.1_disk1_1of1.zip). It creates a repository for SOA metadata and SOA composite

    instances. Run this utility on any Windows workstation connecting to the database.

    Unzip the file

    Run rcu.bat

    http://www.oracle.com/
  • Installation steps

    SOA_cluster

    4

    Specify connection to one of the database nodes and connect as a system user with a

    sysdba role

  • Installation steps

    SOA_cluster

    5

    You can safely ignore the following warning if you get one:

    Click OK to continue:

    AS Common Schemas

  • Installation steps

    SOA_cluster

    6

    - Metadata Services

    SOA and BPM Infrastructure

    - SOA Infrastructure

    - Business Activity Monitoring

    - User Messaging Service

    Click OK to continue:

    Use the same password for all schemas:

  • Installation steps

    SOA_cluster

    7

    Click on Manage Tablespaces button:

    Click on each of the tablespaces with AIA prefix and edit data file as required:

  • Installation steps

    SOA_cluster

    8

  • Installation steps

    SOA_cluster

    9

  • Installation steps

    SOA_cluster

    10

  • Installation steps

    SOA_cluster

    11

  • Installation steps

    SOA_cluster

    12

    Click OK button when finished with all tablespace

    Then click Close button:

  • Installation steps

    SOA_cluster

    13

    Observe repository creation:

  • Installation steps

    SOA_cluster

    14

    Login to the database as a user with admin privileges and add the following grants:

    grant select on sys.dba_pending_transactions to aia_soainfra;

    grant force any transaction to aia_soainfra;

    Install Weblogic Server

    Oracle SOA Suite runs on Oracle WebLogic Server. You must install Oracle WebLogic Server on every cluster node

    before you install Oracle SOA Suite.

    Download WLS 10.3.2 installer from edelivery.oracle.com (V18594-01.zip).

    Perform installation of the Weblogic Server on both nodes of the cluster as per following steps:

    Unzip downloaded file

    Run the installer from the directory where you unzipped it:

    /opt/fusion/fmw/java/bin/java -jar wls1032_generic.jar

    Click Next on Welcome screen

  • Installation steps

    SOA_cluster

    15

    Enter Middleware home directory and press Next

    )

  • Installation steps

    SOA_cluster

    16

  • Installation steps

    SOA_cluster

    17

    Choose Custom install type

    Review the screen:

  • Installation steps

    SOA_cluster

    18

    Review JDK selection

    Review Product Installation Directories

  • Installation steps

    SOA_cluster

    19

    Review Installation Summary

    Observe installation

  • Installation steps

    SOA_cluster

    20

  • Installation steps

    SOA_cluster

    21

    Install SOA Suite

    Use the installer to install Oracle SOA Suite.

    Download SOA 11.1.1.2 installer from edelivery.oracle.com (V18622-01.zip).

    Check if your /etc/oraInst.loc file points to the existing oraInventory directory. If not then rename your

    /etc/oraInst.loc in order for the installer to create a new Oracle Inventory directory.

    Perform installation of the Weblogic Server on both nodes of the cluster as per following steps:

    Unzip downloaded file

    Run the installer from the directory where you unzipped it:

    ./runInstaller -jreLoc /opt/fusion/fmw/java

    If you renamed /etc/oraInst.loc file earlier then you will get the following screen:

    Enter a new location for the Inventory directory and press Ok.

  • Installation steps

    SOA_cluster

    22

    You will receive the following screen at which point you should execute the requested script with root privileges and

    click OK upon execution.

    Click Next on Welcome screen

  • Installation steps

    SOA_cluster

    23

    Observe prerequisite checking. Failure here might indicate a missing Linux package:

  • Installation steps

    SOA_cluster

    24

    Review Installation Summary

  • Installation steps

    SOA_cluster

    25

    Observe the progress

  • Installation steps

    SOA_cluster

    26

    Click Next when Progress reaches 100%

  • Installation steps

    SOA_cluster

    27

    Click Finish

  • Installation steps

    SOA_cluster

    28

    Create Weblogic Domain

    According to the Oracle recommended approach, we configure soa_domain in a modular fashion. We run

    configuration wizard 3 times:

    To install the Administration Server, Enterprise Manager and WSM-PM

    To install the SOA components

    To install the BAM components

    Create domain directories from one of the nodes for admin and managed servers:

    mkdir /11g/admin/soa_domain

    mkdir /11g/admin/soa_domain/aserver

    mkdir /11g/admin/soa_domain/node1

    mkdir /11g/admin/soa_domain/node1/mserver

    mkdir /11g/admin/soa_domain/node2

    mkdir /11g/admin/soa_domain/node2/mserver

  • Installation steps

    SOA_cluster

    29

    mkdir /11g/soadata/soa_domain/

    mkdir /11g/soadata/soa_domain/apps

    mkdir /11g/soadata/soa_domain/node1

    mkdir /11g/soadata/soa_domain/node1/apps

    mkdir /11g/soadata/soa_domain/node2

    mkdir /11g/soadata/soa_domain/node2/apps

    /sbin/ifconfig command. It should report something similar to the following (assuming 10.50.131.44 is an IP-address

    for xgsoapd5v3.ea.com):

    eth0:1 Link encap:Ethernet HWaddr 00:0C:29:AD:53:B4

    inet addr:10.50.131.44 Bcast:10.50.131.255 Mask:255.255.255.128

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    If the address is not present, enable it on a free eth0:N interface. Here is an example:

    sudo /sbin/ifconfig eth0:1 10.50.131.44 netmask 255.255.255.128

    Enable your network to register the new location of the virtual IP, for example:

    sudo /sbin/arping -q -U -c 3 -I eth0 10.50.131.44

    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.

    cd /opt/fusion/fmw/soa/common/bin

    ./config.sh

    Follow the steps:

    In the Welcome screen, select Create a New WebLogic Domain, and click Next.

  • Installation steps

    SOA_cluster

    30

    Select the following products:

    - Oracle Enterprise Manager

    - Oracle WSM Policy Manager

    - Oracle JRF

  • Installation steps

    SOA_cluster

    31

    In the Specify Domain Name and Location screen, enter the domain name. Make sure

    that the domain directory matches the directory and shared storage mount point. Enter

    /11g/admin/soa_domain/aserver for the domain directory and /11g/soadata/soa_domain/apps for the application

    directory:

    In the Configure Administrator Username and Password screen, enter the username

  • Installation steps

    SOA_cluster

    32

    JDK screen:

    In the Configure JDBC Components Schema screen, do the following:

  • Installation steps

    SOA_cluster

    33

    - 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. In

    this screen, do the following:

    - Enter values for the Driver, Service Name, Username and Password,

    specifying the connect information for the RAC database that was seeded with RCU

    - Enter the host name, instance name, and port

    - Click Add

    - Repeat this for each RAC instance

    - Click Next

  • Installation steps

    SOA_cluster

    34

    Observe automatic JDBC connection testing and click Next:

    Select Administration Server; Managed Servers, Clusters and Machines;

    Deployments and Services. Click Next:

  • Installation steps

    SOA_cluster

    35

    7001 as a Listen Port

    In the Configure Managed Servers screen, click Add to add the following managed

    servers: WLS_WSM1 and WLS_WSM2 listening on port 7003 of physical hostnames:

  • Installation steps

    SOA_cluster

    36

    In the Configure Clusters screen, Click Add to add WSM-PM_Cluster:

  • Installation steps

    SOA_cluster

    37

    In the Assign Servers to Clusters screen, assign WLS_WSM1 and WLS_WSM2

    servers to WSM-PM_Cluster

  • Installation steps

    SOA_cluster

    38

    Add machines listening on physical hostnames:

  • Installation steps

    SOA_cluster

    39

    In the Assign Servers to Machines screen, assign WLS_WSM1 and AdminServer to

    host1 machine and WLS_WSM2 server to host2 machine:

  • Installation steps

    SOA_cluster

    40

    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.

  • Installation steps

    SOA_cluster

    41

    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 AdminServer. On the right, select JDBC System

    Resource (this automatically selects all the wsm datasources (mds-owsm)).

    Note: 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 AdminServer. On the right, deselect JOC-Shutdown and

    JOC-Startup. Make sure these services are not targeted to the Admin Server.

    Note: 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 AdminServer

  • Installation steps

    SOA_cluster

    42

    In the Configuration Summary screen, click Create

  • Installation steps

    SOA_cluster

    43

    Observe the progress

  • Installation steps

    SOA_cluster

    44

    In the Create Domain screen, click Done.

    You have configured the domain. Now you have to create separate domain directories for Managed Servers if you do

    cluster installation.

    Make sure you have domain directories created in a file system

    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

    cd /opt/fusion/fmw/oracle_common/common/bin

    ./pack.sh -managed=true -domain=/11g/admin/soa_domain/aserver/soa_domain -template=soadomaintemplate.jar -

    template_name=soa_domain_template

    ./unpack.sh -domain=/11g/admin/soa_domain/node1/mserver/soa_domain -template=soadomaintemplate.jar

    Start Admin Server and verify it.

    Start the Admin Server, specifying username and password when asked and stop it

    with Ctrl-C after a successful start:

    cd /11g/admin/soa_domain/aserver/soa_domain/bin

    ./startWebLogic.sh

    Create boot.properties file with username and password pair in

    /11g/admin/soa_domain/aserver/soa_domain/servers/AdminServer/security directory. Create the directory if it

  • Installation steps

    SOA_cluster

    45

    Start the Admin Server in nohup mode and monitor it until it reaches RUNNING

    state:

    cd /11g/admin/soa_domain/aserver/soa_domain/bin

    nohup ./startWebLogic.sh > AdminServer.log &

    tail -f AdminServer.log

    In a browser, go to http://xgsoapd5v3.ea.com:7001/console, log in as Administrator.

    Verify that WLS_WSM1 and WLS_WSM2 servers are listed. Verify that WLS-PM_Cluster is listed. Check that you

    can access Oracle Enterprise Manager at http://xgsoapd5v3.ea.com:7001/em

    Apply JRF Template to WSM-PM_Cluster ( or server in non-clustered installation

    type ). Login to OEM Fusion Middleware Control, expand Farm_soa_domain, WebLogic domain, soa_domain, then

    select WSM-PM_Cluster. Click Apply JRF Template on the right. Wait for the confirmation message to appear.

    Disable Host Name Verification for AdminServer and WLS_WSM1 server by setting

    Hostname Verification to None in SSL tab (Advanced section) for both servers in Weblogic Admin Console. In

    Weblogic Admin Console, go to Environment/Machines. For every machine, go to Configuration/Node Manager and

    Start Node Manager on the first node:

    cd /opt/fusion/fmw/oracle_common/common/bin

    ./setNMProps.sh

    cd /opt/fusion/fmw/wlserver_10.3/server/bin

    ./startNodeManager.sh

    Click Ctrl-C

    cd /opt/fusion/fmw/wlserver_10.3/common/nodemanager

    Edit nodemanager.properties to ensure that it contains the following properties:

    StartScriptEnabled=true

    StopScriptEnabled=true

    SecureListener=false

    cd /opt/fusion/fmw/wlserver_10.3/server/bin

    nohup ./startNodeManager.sh > NodeManager.log &

    Start WLS_WSM1 server from Weblogic Admin Console, validate it by accessing

    http://xgsoapd5a.ea.com:7003/wsm-pm

    Propagate the Domain Configuration to a directory for a second managed server:

    Copy soadomaintemplate.jar file created earlier to the second node. Run unpack command on xgsoapd5b.ea.com to

    unpack the propagated template

    cd /opt/fusion/fmw/oracle_common/common/bin

    ./unpack.sh -domain=/11g/admin/soa_domain/node2/mserver/soa_domain -template=soadomaintemplate.jar

    Disable Host Name Verification for WLS_WSM2 server by setting Hostname

    Verification to None in SSL tab (Advanced section) for the server in Weblogic Admin Console

    http://xgsoapd5v3.ea.com:7001/consolehttp://xgsoapd5v3.ea.com:7001/emhttp://xgsoapd5a.ea.com:7003/wsm-pm
  • Installation steps

    SOA_cluster

    46

    Start Node Manager on the second node:

    cd /opt/fusion/fmw/oracle_common/common/bin

    ./setNMProps.sh

    cd /opt/fusion/fmw/wlserver_10.3/server/bin

    ./startNodeManager.sh

    Click Ctrl-C

    cd /opt/fusion/fmw/wlserver_10.3/common/nodemanager

    Edit nodemanager.properties to ensure that it contains the following properties:

    StartScriptEnabled=true

    StopScriptEnabled=true

    SecureListener=false

    cd /opt/fusion/fmw/wlserver_10.3/server/bin

    nohup ./startNodeManager.sh > NodeManager.log &

    Start WLS_WSM2 server from Weblogic Admin Console, validate it by accessing

    http://xgsoapd5b.ea.com:7003/wsm-pm

    Configure the Java Object Cache (JOC) for Oracle WSM:

    - Connect to the Administration Server using WLST:

    /opt/fusion/fmw/soa/common/bin/wlst.sh

    connect()

    Enter Administrator username, password and URL for Admin Server when prompted

    - Run the following script:

    execfile('/opt/fusion/fmw/oracle_common/bin/configure-joc.py')

    Enter Hostnames: xgsoapd5a.ea.com,xgsoapd5b.ea.com

    enter WSM-PM_Cluster and 9991 discov

    cluster installation; do not exclude any servers.

    Exit with exit() command.

    Extend the Domain for SOA Components

    In this step we extend the domain created in a previous chapter.

    Stop all the servers

    Enable VIPs for SOA managed servers (xgsoapd5v1.ea.com and

    xgsoapd5v2.ea.com). For example,

    http://xgsoapd5b.ea.com:7003/wsm-pm
  • Installation steps

    SOA_cluster

    47

    On a first node:

    sudo /sbin/ifconfig eth0:3 10.50.131.41 netmask 255.255.255.128

    sudo /sbin/arping -q -U -c 3 -I eth0 10.50.131.41

    On a second node:

    sudo /sbin/ifconfig eth0:1 10.50.131.43 netmask 255.255.255.128

    sudo /sbin/arping -q -U -c 3 -I eth0 10.50.131.43

    Change directory to the location of the Configuration Wizard:

    cd /opt/fusion/fmw/soa/common/bin

    Start the configuration wizard

    ./config.sh

    Select Extend an existing Weblogic domain, and click Next

    Select the Weblogic domain directory for admin server, and click Next

  • Installation steps

    SOA_cluster

    48

    Select Oracle SOA Suite 11.1.1.0. Click Next.

  • Installation steps

    SOA_cluster

    49

  • Installation steps

    SOA_cluster

    50

    Select each component one by one (with an exception of already configured OWSM

    MDS schema) and specify the database details, deselecting the current component schema after configuring it:

  • Installation steps

    SOA_cluster

    51

    In the Test JDBC Data Sources screen, the connections should be tested

    automatically. Click Next:

    In the Select Optional Configuration screen, select Managed Servers, Cluster and

    Machines, and then Deployment and services. Click Next:

  • Installation steps

    SOA_cluster

    52

    In the Configure Managed Servers screen, add the required managed servers. A

    server called soa_server1 is created automatically. Rename this to WLS_SOA1, specify listen address as

    xgsopapd5v1.ea.com and port 7004.Similarly, add a new server called WLS_SOA2:

    In the Configure Clusters screen, add SOA_Cluster:

  • Installation steps

    SOA_cluster

    53

    In the Assign Servers to Clusters screen, assign WLS_SOA1 and WLS_SOA2 servers

    to SOA_Cluster:

    In the Configure Machines screen, add xgsoapd5a.ea.com and xgsoapd5b.ea.com

    machines as per following picture:

  • Installation steps

    SOA_cluster

    54

    Assign WLS_SOA1 server to xgsoapd5a.ea.com and WLS_SOA2 server to

    xgsoapd5b.ea.com respectfully:

    In the Target Deployments to Clusters or Servers screen, ensure the following:

    - usermessagingserver and usermessagingdriver-email should be targeted

    only to SOA_Cluster

  • Installation steps

    SOA_cluster

    55

    - The oracle.rules.*, oracle.sdp.*, and oracle.soa.* libraries should be

    targeted only to SOA_Cluster

    - The wsm-pm application should be targeted only to WSM-PM_Cluster

    - The oracle.wsm.seedpolicies library should be targeted only to WSM-

    PM_Cluster

  • Installation steps

    SOA_cluster

    56

    In the Target Services to Clusters or Servers screen, ensure that

    - JOC Startup Class, JOC Shutdown Class, OWSM Startup Class are

    targeted only to WSM-PM_Cluster

    - mds-owsm* are targeted to both WSM-PM_Cluster and AdminServer

  • Installation steps

    SOA_cluster

    57

    In the Configuration Summary screen click Extend

    Observe the progress