Vous êtes sur la page 1sur 50

ORASOAClusterInstallv1

Marc Kelderman 2009 1




Oracle SOA Suite Cluster Install

Version 1

2009-03-23

Marc Kelderman

http://orasoa.blogspot.com


ORASOAClusterInstallv1



Marc Kelderman 2009 2


Content

1 INTRODUCTION........................................................................................................................................ 3
1.1.1 Approach ........................................................................................................................................ 4
1.1.2 Port and Environments................................................................................................................... 4
1.2 SOFTWARE INSTALLATIONS .................................................................................................................... 5
1.3 REFERENCES ........................................................................................................................................... 5
CLUSTER INSTALL................................................................................................................................... 6
2.1 PACKAGES............................................................................................................................................... 6
2.2 CHECK DISK SPACE.................................................................................................................................. 6
2.3 ENVIRONEMT VARIABLES........................................................................................................................ 7
2.4 ORACLE SOA SUITE DATABASE OBJECTS ............................................................................................... 8
2.4.1 Cleanup the SOA database obfects................................................................................................. 8
2.4.2 Create SOA database obfects ......................................................................................................... 8
2.5 INSTALL ORACLE SOA SUITE ................................................................................................................. 9
2.5.1 Install Oracle Application Server - J2EE en Web Server............................................................. 10
2.5.2 Configure Oracle Applicatie Server Clustering ........................................................................... 14
2.5.3 Apache Configuration................................................................................................................... 18
2.5.4 Install Oracle BPEL software....................................................................................................... 19
2.5.5 Configure Oracle BPEL cluster.................................................................................................... 22
2.5.6 Install Oracle ESB Runtime software ........................................................................................... 24
2.5.7 Update Java JDK.......................................................................................................................... 27
2.5.8 Setting Java Startup Parameters .................................................................................................. 27
2.5.9 Install OWSM ............................................................................................................................... 27
2.5.10 Configure OWSM Cluster............................................................................................................. 28
2.5.11 Install SOA Suite Patch 10.1.3.4................................................................................................... 32
2.5.12 Upgrade the SOA Suite repositorv................................................................................................ 33
2.5.13 Applv Oracle SOA Suite MLR=5................................................................................................... 34
2.5.14 Configure Oracle ESB Designer instance .................................................................................... 35
2.5.15 Cluster de Oracle ESB Runtime.................................................................................................... 37
2.5.16 ESB Database Repositorv............................................................................................................. 38
2.5.17 JMS Resource Adapters................................................................................................................ 39
2.5.18 Connection Pools.......................................................................................................................... 43
2.6 PROXY SETTINGS................................................................................................................................... 45
2.7 CONNECTION POOLS ............................................................................................................................. 47
3 APPENDIX ................................................................................................................................................. 48
3.1 STOP/START SCRIPTS ............................................................................................................................ 48
3.2 OPEN ENTERPRISE MANAGER............................................................................................................... 49
3.3 RESET ESB REPOSITORY....................................................................................................................... 49


ORASOAClusterInstallv1



Marc Kelderman 2009 3


1 INTRODUCTION
This document describes how to install a SOA cluster. The installation is based on the Iollowing assumptions:

O Installation based on as simple as it can be.
O Reduce memory consumption.
O A database is available.
O Installtion is done on Linux.

The installation is based on the the Iollowing Oracle products:

O Oracle Application Server
O Oracle BPEL Process Manager
O Oracle Enterprise Service Bus
O Oracle Web Services Manager

The goal oI this installtion is to install and conIigure the latest version, in this case 10.1.3.4 inclusing the latest
patch (MLR #5). The technical architecture looks like this:



ORASOAClusterInstallv1



Marc Kelderman 2009 4


To install the cluster environment the Iollowing components are created:

O One Oracle Home with the complete soItware tree.
O Oracle BPEL 10.1.3.x
O Oracle ESB 10.1.3.x
O Oracle Services Manager 10.1.3.x
O Oracle SOA Suite Patch 10.1.3.4 (MLR#5)
O Two Oracle OC4J containers;
4 1 Ior Oracle ESB design time
4 1 Ior Oracle ESB runtime, BPEL, Web Services Manager
O One Apache http webserver.

1.1.1 Approach
The approach is as Iollows:

1. Install Oracle Application Server, Node #1
2. Install Oracle Applicative Server, Node #2
3. Cluster Applicative Server
4. Installation Oracle BPEL, # node 1
5. Installation Oracle BPEL, # node 2
6. Cluster BPEL Server
7. Installation Oracle ESB, # node 1
8. Installation Oracle ESB, # node 2
9. Cluster ESB
10. Install Oracle Web Services Manager
11. Cluster Web Services Manager
12. Apply SOA Patches 10.1.3.4

1.1.2 Port and Environments
The environments looks as Iollows:

Server User Database Port Service SID

node1.vijIhuizen.com oracle database.vijIhuizen.com 1521 orcl.vijIhuizen.com ORCL
node2.vijIhuizen.com oracle database.vijIhuizen.com 1521 orcl.vijIhuizen.com ORCL

The Iollowing port number are used.

Server IP/Poort Doel

node1.vijIhuizen.com 7777 Apache HTTP Server
6003 Oracle Process Manager
12510 AJP oc4jsoa
12520 AJP oc4jesbdt
host~:6200 IP Broadcast adress
node2.vijIhuizen.com 7777 Apache HTTP Server
6003 Oracle Process Manager
12510 AJP oc4jsoa
12520 AJP oc4jesbdt
host~:6200 IP Broadcast adress

ORASOAClusterInstallv1



Marc Kelderman 2009 5


1.2 Software Installations
We assume that all the soItware is downloaded, unzipped ot cpio-ed into a staging area and accesable Irom node
1 and node 2. Let us assume this is a central share an mount on both nodes on
/media/share/4racle/stage`.

This staging area should contain the Iollowing Iiles:

$ ls -l /media/share/oracle/stage
t4tal 36
drwxr-xr-x 3 r44t r44t 4096 Feb 25 07:50 bpel10.1.3.1
drwxr-xr-x 3 r44t r44t 4096 Feb 25 07:48 esb10.1.3.1
drwxr-xr-x 9 r44t r44t 4096 Feb 25 07:51 jdk1.5.0_17
drwxr-xr-x 3 r44t r44t 4096 Feb 25 07:45 4wsm10.1.3.1.0
drwxr-xr-x 5 r44t r44t 4096 Feb 25 07:47 s4a10.1.3.1
drwxr-xr-x 3 r44t r44t 4096 Feb 25 07:51 s4a10.1.3.4mlr5
drwxr-xr-x 4 r44t r44t 4096 Feb 25 07:48 s4a10.1.3.4patch

All the soItware can be download Irom Oracle; via http://otn.oracle.com or via http://metalink.oracle.com to
obtain the patches.

1.3 References
This document could not be created without the Iollowing documents.

Oracle Application Server Installation Guide
http://download.oracle.com/docs/cd/B3101701/linux.1013/install.pdI

Oracle Enterprise Deployment Guide (10.1.3.3.0):
http://download.oracle.com/docs/cd/E1029101/core.1013/e10294.pdI

Oracle SOA Suite High Availability FAQ
www.oracle.com/technology/tech/soa/pdI/oracle-soa-suite-ha-Iaq.pdI

Oracle Web Services Manager, Installation Guide
http://download.oracle.com/docs/cd/B3101701/integrate.1013/b31006.pdI

Oracle ESB Multi Tiered Deployment
http://www.oracle.com/technology/products/integration/esb/Iiles/esb-presentation-deployment.pdI

Metalink Note: 470267.1: How To VeriIy ESB Cluster ConIiguration
Metalink Note: 455714.1: Recommendations Ior ESB 10.1.3 Cluster ConIiguration
Metalink Note: 728144.1 Installing AIA Ior Communications on a SOA Cluster


ORASOAClusterInstallv1



Marc Kelderman 2009 6


2 CLUSTER INSTALL
2.1 Packages
Check iI the required Linux Packages are installed on the OS.
The Iollowing soItware package should be installed on the server.

glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
binutils-2.15.92.0.2-13
compat-libstdc-296-2.96-132.7.2
gcc-3.4.3-22.1
gcc-c-3.4.3-22.1
libstdc-3.4.3-22.1
libstdc-devel-3.4.3-22.1
openmotiI21-2.1.30-11.RHEL4.4
pdksh-5.2.14-30
setarch-1.6-1
make-3.80-5
gnome-libs-1.4.1.2.90-44.1
sysstat-5.0.5-1
compat-db-4.1.25-9
compat-libstdc-devel-7.3-2.96.128
compat-glibc-7.x-2.2.4.32.6
compat-libstdc-7.3-2.96.128
control-center-2.8.0-12
xscreensaver-4.18-5.rhel4.2

The packages must be installed with this version or higer.

Important!
Create a symbolic link voor de libdb.so.2. DUt to the Iact that the version oI compat-db-4.0 is no longer
avialable within compat-db-4.x or hight.

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2

Source Referentie. http.//download.oracle.com/docs/cd/B1930601/relnotes.102/b15659/toc.htm=CJAHFHCJ

2.2 Check disk space
The soItware will be installed in:

/4racle/pr4duct/10.1.3/s4a

Check iI 3GB diskapace is available.

Check iI the temp directory /tmp/` has enough space, ~ 512MB.

$ df -kh
Filesystem Size Used Avail Use% M4unted 4n
ORASOAClusterInstallv1



Marc Kelderman 2009 7



/dev/s4medisk1 888M 88M 800M 10% /tmp
/dev/s4medisk2 100G 1G 99G 1% /4racle
/dev/s4medisk3 10G 1G 9G 10% /media
...


2.3 Environemt variables
Check that there are no speciIic O/S variables are set that are related to Oracle or Java.


$ set

<list 4f variabeles>


II variables are set that are related to ORACLE / ORA / JAVA / JDK, then these must be unset.

$ unset <variabele>

Test iI the X-server is working. The installer is using XWindows Ior the installtion. II you install Irom a
workstation you should have a X-Server running. Use a tool as XMing Ior example.

Open a session to the server, node #1 or node #2, under the unix account oracle`, the DISPLAY variabele
shouw be set. TDeze sessie moet opgebouwd met de optie dat X11 wordt geIorward.

ssh -X node1.vijfhuizen.com
l4gin as: oracle
4racle@n4de1.vijfhuizen.c4m's passw4rd: ******
Last l4gin: M4n Feb 23 15:06:08 2009 fr4m vijfhuizen.c4m
[4racle@n4de1 ~]$ echo $DISPLAY
l4calh4st:10.0

II this setting is not set in some value, then check iI the Linux package Xorg-X11-Xauth` is installed and try
again.

Go to the directory /media/share/oracle/stage/soa10.1.3.1` to start the Oracle installer to check the iI XWindows
is working.

$ cd /data/oracle/stage/soa10.1.3.1
$ ./runInstaller -ignoreSysPreReqs

The Iollowing window should be started. Click on Cancel to close this screen.



ORASOAClusterInstallv1



Marc Kelderman 2009 8


2.4 Oracle SOA Suite Database objects
2.4.1 Cleanup the SOA database objects
II there are any existing schema objects, they should be removed. This can be done with tools as SQLDeveloper.
Connect to the database as system user.

dr4p user 4rabpel cascade;
dr4p user 4raesb cascade;
dr4p user 4rawsm cascade;

2.4.2 Create SOA database objects
Copy the soaschema` Irom the directory /media/share/oracle/stage/soa10.1.3.1/install` to another place, so it
can be accessed and executed.

II you need to change the deIault tablespace oI the SOA schemas, change the Iollowing Iile.

cd C:\mkelderm\download\soa_schemas\soa_schemas\irca\sql\orabpel

notepad createuser_oracle.sql

create user &bpm_user identified by &bpm_passwd
default tablespace 4rabpel temp4rary tablespace temp;


cd C:\mkelderm\download\soa_schemas\soa_schemas\irca\sql\oraesb
notepad createuser.sql

create user &4raesb_user identified by &4raesb_passw4rd
default tablespace 4raesb temp4rary tablespace temp;


cd C:\mkelderm\download\soa_schemas\soa_schemas\irca\sql\owsm
notepad createuser.sql

create user &4rawsm_user identified by &4rawsm_passw4rd;
default tablespace 4raesb temp4rary tablespace temp;


Create the SOA database objects via the script irca.bat` in the \soaschemas\irca` directory. Check beIore
executing the scritp, iI the settings to Java are correct.


ech4 Integrati4n Rep4sit4ry Creati4n Assistant (IRCA) 10.1.3.1.0
ech4 (c) C4pyright 2006 Oracle C4rp4rati4n. All rights reserved.

REM SET /P ORACLE_HOME=Enter database ORACLE_HOME:

set ORACLE_HOME=D:\oracle\product\devsuite
set JAVA_HOME=D:\oracle\product\devsuite\jdk

IF NOT EXIST %ORACLE_HOME%\jdbc\lib\4jdbc14.jar (


Start the script irca.bat`. This script expects three parameters; the hostnaam oI the database server, the port
number oI SQLNET and the service name oI the database. And it expects the SYS password.

database.vijIhuizen.com 1521 orcl.vijIhuizen.com

Note: To determine the service name:

ORASOAClusterInstallv1



Marc Kelderman 2009 9


select * fr4m v$parameter where name like '%ervice%';

C:\\s4a_schemas\irca>irca.bat
Integrati4n Rep4sit4ry Creati4n Assistant (IRCA) 10.1.3.1.0
(c) C4pyright 2006 Oracle C4rp4rati4n. All rights reserved.
Enter database "h4st p4rt serviceName" [l4calh4st 1521 4rcl]: database.vijfhuizen.com 1521
orcl.vijfhuizen.com
Enter sys passw4rd: ******
Running IRCA f4r all pr4duct(s):
c4nnecti4n="l2-bm20-e0g.vijfhuizen.c4m 10700 MSLACC.l2-bm20-e0g.vijfhuizen.c4m", ,
4rabpelUser=ORABPEL, esbUser=ORA
ESB, 4rawsmUser=ORAWSM

Validating database ...
Validating database character set ...


Running prerequisite checks f4r ORABPEL ...
WARNING: This script will 4verwrite the existing ORABPEL schema.
D4 y4u wish t4 c4ntinue? (y/n) y
Enter passw4rd f4r ORABPEL:
Enter passw4rd f4r ORABPEL: L4ading ORABPEL schema (this may take a few minutes) ...

Running prerequisite checks f4r ORAESB ...
WARNING: This script will 4verwrite the existing ORAESB schema.
D4 y4u wish t4 c4ntinue? (y/n) y
Enter passw4rd f4r ORAESB:
Enter passw4rd f4r ORAESB: L4ading ORAESB schema (this may take a few minutes) ...

Running prerequisite checks f4r ORAWSM ...
WARNING: This script will 4verwrite the existing ORAWSM schema.
D4 y4u wish t4 c4ntinue? (y/n) y
Enter passw4rd f4r ORAWSM:
Enter passw4rd f4r ORAWSM: L4ading ORAWSM schema (this may take a few minutes) ...

INFO: ORABPEL schema c4ntains 225 valid 4bjects.

INFO: ORAESB schema c4ntains 180 valid 4bjects.

INFO: ORAWSM schema c4ntains 90 valid 4bjects.

IRCA c4mpleted.
Please check f4r any ERROR message ab4ve and als4 check the l4g file
irca2009-02-23_02-37-07PM.l4g f4r any err4r 4r 4ther inf4rmati4n.

2.5 Install Oracle SOA Suite
The Iollowing steps are execute to install the SOA Suite:

O Install Oracle Application Server - J2EE en Web Server soItware
O ConIigure cluster Oracle Application Server - J2EE and Web Server
O ConIigure Oracle Applicatie Server Clustering
O Install Oracle BPEL soItware
O ConIigure Oracle BPEL cluster
O Install Oracle ESB Runtime soItware
O Update Java JDK
O Install OWSM
O ConIigure OWSM Cluster
O Install SOA Suite Patch
O Install MLR
O Upgrade SOA Suite database objects
O ConIigure Oracle ESB Designer instance
O ConIigure Oracle ESB cluster

ORASOAClusterInstallv1



Marc Kelderman 2009 10


2.5.1 Install Oracle Application Server - J2EE en Web Server
Execute the Iollowing steps Ior node #1 as well Ior node #2.

Node #1
cd /media/share/4racle/stage/s4a10.1.3.1

./runInstaller -ign4reSysPreReqs


Installati4n Direct4ry:
/4racle/pr4ducts/10.1.3/s4a

Check: Advanced Install

Click Next


Click Yes


Invent4ry Dir: /data/4racle/4raInvent4ry

OS Gr4up Name: dba


Execte as r44t:

cd /data/4racle/4raInvent4ry
sh 4rainstR44t.sh

sh 4rainstR44t.sh
Creating the Oracle invent4ry p4inter file
(/etc/4raInst.l4c)
Changing gr4upname 4f
/data/4racle/4raInvent4ry t4 dba.
]

Click On C4ntinue

ORASOAClusterInstallv1



Marc Kelderman 2009 11



Select J2EE and Web Server

Click On Next


Check all 4pen check b4xes
Click 4n Next


Click 4n Next


AS Instance Name: ass4a
AS Administrat4r Username: 4c4jadmin
AS Administrat4r Passw4rd: welc4me1
C4nfirm AS Administrat4r Passw4rd:
welc4me1
Check C4nfigure as Administrati4n OC4J
Instance
OC4J Instance Name: h4me

Click 4n Next

ORASOAClusterInstallv1



Marc Kelderman 2009 12




Cluster t4p4l4gy will be d4ne later!

Click 4n Next


Click 4n Install


In pr4gress



Run r44t.sh

cd /4racle/pr4ducts/10.1.3/s4a
sh r44t.sh
Running Oracle10 r44t.sh script...
\nThe f4ll4wing envir4nment variables are
set as:
ORACLE_OWNER= 4racle
ORACLE_HOME=
/4racle/pr4ducts/10.1.3/s4a

Enter the full pathname 4f the l4cal bin
direct4ry: [/usr/l4cal/bin]:
C4pying dbh4me t4 /usr/l4cal/bin ...
C4pying 4raenv t4 /usr/l4cal/bin ...
ORASOAClusterInstallv1



Marc Kelderman 2009 13


C4pying c4raenv t4 /usr/l4cal/bin ...

\nCreating /etc/4ratab file...
Adding entry t4 /etc/4ratab file...
Entries will be added t4 the /etc/4ratab
file as needed by
Database C4nfigurati4n Assistant when a
database is created
Finished running generic part 4f r44t.sh
script.
N4w pr4duct-specific r44t acti4ns will be
perf4rmed.


Click 4n OK



In pr4gress


Click 4n Exit

Apply this also Ior node #2.

ORASOAClusterInstallv1



Marc Kelderman 2009 14


2.5.2 Configure Oracle Applicatie Server Clustering
VeriIy oI the Iile /etc/oratab` contains the Iollowing de line, this should be valid Ior node #1 and node #2.



*:/4racle/pr4ducts/10.1.3/s4a:N
s4a:/4racle/pr4ducts/10.1.3/s4a:N


On node #2 the managment console must be disabled. There should be only on applicatie server console active.
Otherwise a warning message is shown.

$ . 4raenv
ORACLE_SID = [4racle] ? s4a
$ cd $ORACLE_HOME/j2ee/h4me/c4nfig
$

Set the property in the ascontrol application to Ialse`, this is the Iile server.xml.

$ vi server.xml

<applicati4n name="asc4ntr4l"
path="../../h4me/applicati4ns/asc4ntr4l.ear"
parent="system" start="false" />


Restart the applicatie server on node #2.

$ cd $ORACLE_HOME/opmn/bin
$ ./opmnctl stopall
4pmnctl: st4pping 4pmn and all managed pr4cesses...
$ ./opmnctl startall
4pmnctl: starting 4pmn and all managed pr4cesses...

Make node #1 and node #2 into a cluster.

$ cd $ORACLE_HOME/opmn/conf
$ vi opmn.xml

<topology>
<nodes list="node1.vijfhuizen.com:6200,node2.vijfhuizen.com:6200" />
</topology>



Restart both nodes, see appendix.

Log to Oracle Enterprise manager, see appendix. The topologiy oI the cluster should be shown.

Create the Iollowing J2EE containers on the cluster.

O oc4jsoa
O oc4jesbdt


ORASOAClusterInstallv1



Marc Kelderman 2009 15



Click 4n ass4a.n4de1link


Click 4n `Create OC4J Instance'


OC4J instance name: 4c4j_s4a
New Gr4up Name: SOA_GROUP
Check: start this Instance

Click 4n Create


In pr4gress


Click 4n `4c4j_s4a'

ORASOAClusterInstallv1



Marc Kelderman 2009 16



Click 4n `Administrati4n'


Click 4n the ic4n by server
pr4perties


Specify AJP p4rt f4r default web
site: 12510
Maximum heap size: 1024m
Initial heap size: 1024m

Click 4n Apply


A c4nfirmati4n message is sh4wn.

Click 4n de `Cluster T4p4l4gy'
link


Selecteer de 4c4j_s4a c4ntainer
Click 4n Start


Repeat the pervious steps vor node #1 but now Ior:

OC4J Container: oc4jesbdt
OC4J Groep: ESBDTGROUP
ORASOAClusterInstallv1



Marc Kelderman 2009 17


AJP Poort: 12520
Max Heap: 128m
Initial Heap: 128m

Now execute all the previous actions Ior node #2, except the containers, they will be added to the group.

Because we are using a load balancer, we should make sure that the load balancer is pointing to our
environment.

VeriIy by network support iI the load balancer is correctly conIigured and pointing to the new nodes.

http://loadbalancer.vijIhuizen.com/

ORASOAClusterInstallv1



Marc Kelderman 2009 18


2.5.3 Apache Configuration
Apply the Iollowing changes in the http server on both nodes.

O Server name
O Maximum requests per child server, beIore it dies

$ vi $ORACLE_HOME/Apache/Apache/conf/httpd.conf



ServerName node1.vijfhuizen.com


MinSpareServers 5
MaxSpareServers 20


MaxRequestsPerChild 123



%he value of the SpareServers and MaxRequets depends per customer on the usage of the application.

Restart applicatie servers, see Appendix.
ORASOAClusterInstallv1



Marc Kelderman 2009 19


2.5.4 Install Oracle BPEL software

Execute on both nodes the Iollowing actions to install the BPEL soItware.


$ cd /media/share/4racle/stage/bpel10.1.3.1/
bpel_101310/bpel_4c4j

$ ./runInstaller -ign4reSysPreReqs

Click 4n Next


Path: as is
Name: 4racleas1
Path: /4racle/pr4ducts/10.1.3/s4a

Click 4n Next


Select BPEL Pr4cess Manager f4r Oracle AS

Click Next


Click Next
ORASOAClusterInstallv1



Marc Kelderman 2009 20




H4stname and p4rt: database.vijfhuizen.c4m:1521
Service Name: 4rcl.vijfhuizen.c4m
ORABPEL Passw4rd: *****

Click Next


AD Adminitrati4n Pass4wrd: *****
OC4J Instance Name: SOA_GROUP^4c4j_s4a

Click Next


Click Install


On the server

$ sh /4racle/pr4ducts/10.1.3/s4a/r44t.sh

Click 4n OK


In pr4gress

ORASOAClusterInstallv1



Marc Kelderman 2009 21



Click 4n Exit


ORASOAClusterInstallv1



Marc Kelderman 2009 22


2.5.5 Configure Oracle BPEL cluster

To make the BPEL cluster aware, some conIiguration changes need to be made. This must be done on both
nodes in the Iiles.

O collaxa-conIig.xml
O jgroups-protocol.xml
O ant-orabpel.properties

$ vi $ORACLE_HOME/bpel/system/config/collaxa-config.xml

<pr4perty id="enableCluster">
<name>Cluster enable flag</name>
<value>true</value>
<c4mment>
<![CDATA[Specify the value t4 true if y4u want t4 enable clustering.
By default the clustering service is disabled.
]]>
</c4mment>
</pr4perty>

<pr4perty id="clusterName">
<name>Cluster Id</name>
<value>loadbalancer.vijfhuizen.com</value>
<c4mment>
<![CDATA[clusterName specifies the name 4f the bpel cluster.
<p/>
The cluster is defined by the clusterName, multi-cast address and
multi-cast p4rt.Changing any 4ne 4f th4se parameter puts the bpel
server instance in a different cluster.
Value f4r clusterName pr4perty needs t4 be the same f4r all bpel
n4des in a cluster in 4rder f4r them t4 find each 4ther.<p/>
In additi4n t4 having distinct cluster names f4r each cluster,
y4u sh4uld use a different multicast address 4r p4rt f4r
each cluster.<p/>
Y4u can change the multicast address 4r p4rt in the
bpel/system/c4nfig/jgr4ups-pr4t4c4l.xml
]]>
</c4mment>
</pr4perty>

<pr4perty id="s4apServerUrl">
<name>BPEL s4ap server URL</name>
<value>loadbalancer.vijfhuizen.com</value>
<c4mment>
<![CDATA[This URL is published as part 4f the SOAP address
4f a pr4cess in the WSDL file.
<p/>
The h4stname and p4rt f4r this URL sh4uld be cust4mized t4 match
the h4stname 4f y4ur system and the p4rt 4f y4ur HTTP gateway.]]>
</c4mment>
</pr4perty>

<pr4perty id="s4apCallbackUrl">
<name>BPEL s4ap callback URL</name>
<value>loadbalancer.vijfhuizen.com</value>
<c4mment>
<![CDATA[This URL is sent by the server as part 4f the asynchr4n4us
callback address t4 the inv4ker.
<p/>
The h4stname and p4rt f4r this URL sh4uld be cust4mized t4 match
the h4stname 4f y4ur system and the p4rt 4f y4ur HTTP gateway.]]>
</c4mment>
</pr4perty>



ORASOAClusterInstallv1



Marc Kelderman 2009 23


Watch out Ior the next IP conIiguration. VeriIy with network administration id the IP adres and port numbers are
available. This IP adres and port number are used to communicatie between BPEL instances.

$ vi $ORACLE_HOME/bpel/system/config/jgroups-protocol.xml

<c4nfig>
<UDP mcast_send_buf_size="32000"
mcast_p4rt="8100"
ucast_recv_buf_size="64000"
mcast_addr="239.0.0.16"
bind_t4_all_interfaces="true"
l44pback="true"


$ vi $ORACLE_HOME/bpel/utilities/ant-orabpel.properties

and 4c4jinstancename t4 4pmn cluster gr4up it bel4ngs t4 such as
default_gr4up.
cluster = true
4c4jinstancename = oc4j_soa


Rerstart the applicatie servers, see Appendix.
ORASOAClusterInstallv1



Marc Kelderman 2009 24


2.5.6 Install Oracle ESB Runtime software
Execute the Iollowing steps on node #1 and node #2.


$ cd /data/4racle/stage/esb10.1.3.1/
esb_101310/esb

$ ./runInstaller -ign4reSysPreReqs

Click Next


Name: OracleAS1
Path: /4racle/pr4ducts/10.1.3/s4a

Click Next


Select Enterprise Service Bus OracleAS
Midtier

Click Next


N4 pr4xies

Click Next

ORASOAClusterInstallv1



Marc Kelderman 2009 25



Database h4st:
database.vijfhuizen.c4m:1521
Service Name: 4rcl.vijfhuizen.c4m
ORAESB Schema name: ****


AS Administrati4n Passw4rd: ****
OC4J Instance Name: ESBDT_GROUP^4c4j_s4a

Click Next


Select Runtime

Click Next


sh /4racle/pr4ducts/10.1.3/s4a/r44t.sh

Click Ok


In pr4gress

ORASOAClusterInstallv1



Marc Kelderman 2009 26



Click Exit

ORASOAClusterInstallv1



Marc Kelderman 2009 27


2.5.7 Update Java JDK
The latest version oI JDK 1.5 should be used within the SOA Suite.

Stop the applicatie server on both nodes, see Appendix. Execute the Iollowing steps on both nodes.

$ cd $ORACLE_HOME
$ mv jdk jdk.10.1.3.1.0_OOTB
$ cp -r /data/oracle/stage/jdk1.5.0_17 .
$ ln -s jdk1.5.0_17 jdk

Test iI the latest version is correct installed.

$ $ORACLE_HOME/jdk/bin/java -version
java versi4n "1.5.0_17"
Java(TM) 2 Runtime Envir4nment, Standard Editi4n (build 1.5.0_17-b04)
Java H4tSp4t(TM) Client VM (build 1.5.0_17-b04, mixed m4de)

2.5.8 Setting Java Startup Parameters
BeIore we install the Oracle Web Services Manager we increase the initial heap and set the keepalive within
OC4J. For all oc4jcontainers on both nodes, the oc4jsoa and the oc4jesbdt, we set the memory to -
Doc4j.userThreadstrue -Xss128k -DHTTPClient.socket.staleChecktrue`.

Stop the application server on bothe nodes, see Appendix.

$ vi $ORACLE_HOME/4pmn/c4nf/4pmn.xml

<ias-c4mp4nent id="SOA_GROUP" status="enabled">
<pr4cess-type id="4c4j_s4a" m4dule-id="OC4J" status="enabled">
<m4dule-data>
<categ4ry id="start-parameters">
<data id="java-4pti4ns" value="-server -Xmx1024m -Xms1024m -Xss128k -
XX:MaxPermSize=512m -Doc4j.userThreads=true -DHTTPClient.socket.staleCheck=true -
Djava.security.p4licy=$ORACLE_HOME/j2ee/4c4j_s4a/c4nfig/java2.p4licy -Djava.awt.headless=true
-Dhttp.webdir.enable=false -D4c4j.userThreads=true -D4racle.mdb.fastUndepl4y=60 -
D4rabpel.h4me=/4racle/pr4ducts/10.1.3/s4a/bpel -
Xb44tclasspath^/p:/4racle/pr4ducts/10.1.3/s4a/bpel/lib/4rabpel-b44t.jar -Dhttp.pr4xySet=false
-D4raesb.h4me=/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb -Dhttp.pr4xySet=false"/>
</categ4ry>


Note Ior oc4jsoa we set the memory to -Xmx1024m -Xms1024m -XX:MaxPermSize512m` and Ior
oc4jesbdt we set the memory to -Xmx256m Xms256m -XX:MaxPermSize256m `.

Start the application server on both nodes, see Appendix.

2.5.9 Install OWSM
Execute the next steps on node #1 and node #2.


$ cd /media/share/4racle/stage/4wsm10.1.3.1.0/
4wsm_101310/OWSM

$ ./runInstaller -ign4reSysPreReqs
ORASOAClusterInstallv1



Marc Kelderman 2009 28



Installati4n direct4ry:
/4racle/pr4ducts/10.1.3/s4a
H4st P4rt: n4de1.vijfhuizen.c4m:7777
OC$J Instance: 4c4j_s4a
Admin Username: 4c4jadmin
Admin Passw4rd: ****

Name: MSLACC.l2-bm20-e0g.vijfhuizen.c4m
C4nnect string: l2-bm20-e0g.vijfhuizen.c4m:10700
User ID: 4rawsm
Passw4rd: ****

Click 4n Next


Pr4gress


Click Install


Click Exit


2.5.10 Configure OWSM Cluster
Point the OWSM Gateway URL to the load balancer on both nodes.

$ vi $ORACLE_HOME/owsm/config/gateway/gateway-config-installer.properties

gateway.p4licymanagerURL=http://l4adbalancer.vijfhuizen.c4m/p4licymanager

ORASOAClusterInstallv1



Marc Kelderman 2009 29



Due to this change the Gateway application must be redeployed.

$ cd $ORACLE_HOME/owsm/bin
$ ./wsmadmin.sh deploy welcome1 gateway
Buildfile: /4racle/pr4ducts/10.1.3/s4a/4wsm/bin/../scripts/install.xml

install.buildApps.war.c4nfig:
[mkdir] Created dir: /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway/WEB-INF
[c4py] C4pying 1 file t4 /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway/WEB-INF

install.buildApps.war.c4nfig.internal:
[zip] Building zip: /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway.war

install.buildApps.war.c4nfig.4racle:
[c4py] C4pying 1 file t4 /4racle/pr4ducts/10.1.3/s4a/4wsm/lib/etc
[xslt] Pr4cessing /4racle/pr4ducts/10.1.3/s4a/4wsm/lib/etc/web.gateway.xml.4rig t4
/4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway/WEB-INF/web.xml
[xslt] L4ading stylesheet /4racle/pr4ducts/10.1.3/s4a/4wsm/lib/etc/web.xsl
[delete] Deleting: /4racle/pr4ducts/10.1.3/s4a/4wsm/lib/etc/webinc.gateway.xml
[zip] Updating zip: /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway.war
[delete] Deleting direct4ry /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway

install.buildApps.war.gateway.4racle:
[zip] Updating zip: /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway.war

install.buildApps.war.gateway.all:
[zip] Updating zip: /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway.war

install.buildApps.ear:
[mkdir] Created dir: /4racle/pr4ducts/10.1.3/s4a/4wsm/ears

install.buildApps.ear.gateway:
[c4py] C4pying 1 file t4 /4racle/pr4ducts/10.1.3/s4a/4wsm/ears
[ear] Building ear: /4racle/pr4ducts/10.1.3/s4a/4wsm/ears/gateway.ear
[delete] Deleting: /4racle/pr4ducts/10.1.3/s4a/4wsm/ears/4ri4n-applicati4n.xml
[st4pwatch] [install.buildApps.gateway.time: 2.240 sec]

depl4y.checkServer:
[ech4] Checking server status...
[ech4] Server is UP.

depl4y.waitF4rServer:
[ech4] Waiting f4r server initializati4n...

4c4j.query.4pmn:
[ech4] Querying OPMN f4r its request h4st and p4rt...
[ech4] Using n4de1.vijfhuizen.c4m:6003.
[st4pwatch] [4c4j.query.4pmn.time: 0.286 sec]

4c4j.checkOPMN:
[ech4] Checking OPMN managed OC4J URI...
[ech4] depl4yer:4c4j:4pmn://n4de1.vijfhuizen.c4m:6003/4c4j_s4a
[st4pwatch] [4c4j.checkOPMN.time: 1.805 sec]

4c4j.calculateURI:
[ech4] Using URI depl4yer:4c4j:4pmn://n4de1.vijfhuizen.c4m:6003/4c4j_s4a

4c4j.checkSharedLibs:
[ech4] 4racle.wsm.cc4re exists
[ech4] 4racle.wsm.c4reman exists
[ech4] 4racle.wsm.gateway exists
[ech4] 4racle.wsm.p4licymanager exists

depl4y.runScript:
[ech4] C4nfiguring OC4J using c4mmands:
[ech4] -depl4y -file /4racle/pr4ducts/10.1.3/s4a/4wsm/ears/gateway.ear -depl4ymentName
gateway -bindAllWebApps -rem4veArchive
[java] 09/02/25 08:14:39 N4tificati4n ==>Applicati4n Depl4yer f4r gateway STARTS.
[java] 09/02/25 08:14:39 N4tificati4n ==>Undepl4y previ4us depl4yment
[java] 09/02/25 08:14:39 N4tificati4n ==>Initialize
/4racle/pr4ducts/10.1.3/s4a/j2ee/4c4j_s4a/applicati4ns/gateway.ear begins...
ORASOAClusterInstallv1



Marc Kelderman 2009 30


[java] 09/02/25 08:14:39 N4tificati4n ==>Initialize
/4racle/pr4ducts/10.1.3/s4a/j2ee/4c4j_s4a/applicati4ns/gateway.ear ends...
[java] 09/02/25 08:14:39 N4tificati4n ==>Starting applicati4n : gateway
[java] 09/02/25 08:14:39 N4tificati4n ==>Initializing ClassL4ader(s)
[java] 09/02/25 08:14:39 N4tificati4n ==>Initializing EJB c4ntainer
[java] 09/02/25 08:14:39 N4tificati4n ==>L4ading c4nnect4r(s)
[java] 09/02/25 08:14:39 N4tificati4n ==>Starting up res4urce adapters
[java] 09/02/25 08:14:39 N4tificati4n ==>Initializing EJB sessi4ns
[java] 09/02/25 08:14:39 N4tificati4n ==>C4mmitting ClassL4ader(s)
[java] 09/02/25 08:14:39 N4tificati4n ==>Initialize gateway begins...
[java] 09/02/25 08:14:39 N4tificati4n ==>Initialize gateway ends...
[java] 09/02/25 08:14:39 N4tificati4n ==>Started applicati4n : gateway
[java] 09/02/25 08:14:39 N4tificati4n ==>Binding web applicati4n(s) t4 site default-web-
site begins...
[java] 09/02/25 08:14:39 N4tificati4n ==>Binding web applicati4n(s) t4 site default-web-
site ends...
[java] 09/02/25 08:14:39 N4tificati4n ==>Deleting:
/4racle/pr4ducts/10.1.3/s4a/j2ee/4c4j_s4a/applicati4ns/gateway.ear
[java] 09/02/25 08:14:39 N4tificati4n ==>Deleting:
/4racle/pr4ducts/10.1.3/s4a/j2ee/4c4j_s4a/applicati4ns/gateway/gateway.war
[java] 09/02/25 08:14:39 N4tificati4n ==>Applicati4n Depl4yer f4r gateway COMPLETES.
Operati4n time: 283 msecs
[delete] Deleting: /4racle/pr4ducts/10.1.3/s4a/4wsm/bin/admin_client.txt
[st4pwatch] [4c4j.runScript.time: 2.471 sec]

depl4y.rest4reServState:
[st4pwatch] [depl4y.time: 11.744 sec]

install.buildApps.clean.gateway:
[delete] Deleting: /4racle/pr4ducts/10.1.3/s4a/4wsm/ears/gateway.ear
[delete] Deleting: /4racle/pr4ducts/10.1.3/s4a/4wsm/wars/gateway.war

BUILD SUCCESSFUL
T4tal time: 15 sec4nds


Start the OWSM console to add a new Gateway Cluster component.

Check the install.properties Iile, iI the oc4j-password is set.

$ cd $ORACLE_HOME/owsm/bin
$ vi install.properties

F4r OC4J servers, pr4vide the administrat4r passw4rd used f4r depl4ying
applicati4ns.
4c4jAdminPassw4rd=????Ba/7EEcYyRHD1ZtKxE/wMs7Ze4iDd/4Vpg==
4c4jAdminPassw4rd=welcome1

F4r standal4ne package, indicate whether the devel4per OC4J will be activated.
install.bundled.4c4j=false



The clustered gateway component is set as Iollows.

Start then OWSM console
http://n4de1.vijfhuizen.c4m:7777/cc4re


User: admin
Passw4rd: 4racle

Click L4gin

ORASOAClusterInstallv1



Marc Kelderman 2009 31



Click `Add New C4mp4nent


C4mp4nent Name: Gateway_Cluster
C4mp4nent Type: gateway
C4ntainer Type: Oracle Web Services Mana
C4mp4nent
URL:http://l4adbalancer.vijfhuizen.c4m/gateway

Others fields: default

Click Register


Click Ok


Click `Edit'


Rmi.h4st: l4adbalancer.vijfhuizen.c4m
S4ap.endp4int:

http://l4adbalancer.vijfhuizen.c4m/c4reman/serv
ices/C4remanMeasurementClient

Click Save


Check the WSM control properties.


$ cd $ORACLE_HOME/owsm/config/ccore
$ vi ui-config-installer.properties

M4nit4r endp4int that the UI will talk t4
ui.4m.server.rmiH4st=loadbalancer.vijfhuizen.com
ui.4m.server.rmiP4rt=3118

ui.c4rda.externalP4rt=7777


$ cd $ORACLE_HOME/owsm/bin
$ ./wsmadmin.sh deploy control

ORASOAClusterInstallv1



Marc Kelderman 2009 32


2.5.11 Install SOA Suite Patch 10.1.3.4
The Iirst patch is to upgrade the Oracle SOA Suite 10.1.3.1.0 to version 10.1.3.4. Execute this on both nodes.

$ cd /media/share/4racle/stage/s4a10.1.3.4patch/Disk1

Click Next


Name: 4racleas1
Path: /4racle/pr4ducts/10.1.3/s4a

Click Next


Passw4rd: *****

Click Next


Click Ok


Click Install

ORASOAClusterInstallv1



Marc Kelderman 2009 33



In pr4gress


In pr4gress


Click 4n Exit


2.5.12 Upgrade the SOA Suite repository
The database objects oI the SOA suite must be upgraded to 10.1.3.4.esn voor de SOA database moeten worden
bij gewerkt. This has to be executed only Irom one node.


$ cd /data/oracle/stage/soa10.1.3.4patch/Disk1/install/soa_schema_upgrade
$ cd bpel/scripts
$ sqlplus
orabpel/orabpel@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhui
zen.com\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.vijfhuizen.com\)\)\)
@upgrade_10131_10134_oracle.sql


SQL>
SQL> commit;

C4mmit c4mplete.

SQL> exit

$ cd /data/oracle/stage/soa10.1.3.4patch/Disk1/install/soa_schema_upgrade
$ cd esb/sql/oracle
$ sqlplus
oraesb/oraesb@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhuize
ORASOAClusterInstallv1



Marc Kelderman 2009 34


n.com\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.vijfhuizen.com\)\)\)
@upgrade_10133_10134_oracle.sql

SQL>
SQL> commit;

C4mmit c4mplete.

SQL> exit


Restart the applicatie server, see Appendix.

2.5.13 Apply Oracle SOA Suite MLR#5
The latest patch set oI 10.1.3.4 must be applied. In this case this is Oracle SOA Suite 10.1.3.4, MLR #5.

To apply this patch, top the application servers, see Appendix.

Apply the patch on both nodes.

$ cd /media/share/oracle/stage/soa10.1.3.4mlr5/7714967
$ export OPATCH_PLATFORM_ID=0
$ $ORACLE_HOME/OPatch/opatch apply

Oracle Interim Patch Installer versi4n 1.0.0.0.56
C4pyright (c) 2006 Oracle C4rp4rati4n. All Rights Reserved..

We rec4mmend y4u refer t4 the OPatch d4cumentati4n under
OPatch/d4cs f4r usage reference. We als4 rec4mmend using
the latest OPatch versi4n. F4r the latest OPatch versi4n
and 4ther supp4rt related issues, please refer t4 d4cument
293369.1 which is viewable fr4m metalink.4racle.c4m

Oracle H4me : /4racle/pr4ducts/10.1.3/s4a
Oracle H4me Invent4ry : /4racle/pr4ducts/10.1.3/s4a/invent4ry
Central Invent4ry : /data/4racle/4raInvent4ry
fr4m : /etc/4raInst.l4c
OUI l4cati4n : /4racle/pr4ducts/10.1.3/s4a/4ui
OUI shared library : /4racle/pr4ducts/10.1.3/s4a/4ui/lib/linux/lib4raInstaller.s4
Java l4cati4n : /4racle/pr4ducts/10.1.3/s4a/jre/1.4.2/bin/java
L4g file l4cati4n : /4racle/pr4ducts/10.1.3/s4a/.patch_st4rage/<patch ID>/*.l4g

Creating l4g file "/4racle/pr4ducts/10.1.3/s4a/.patch_st4rage/7714967/Apply_7714967_02-25-
2009_11-56-55.l4g"

Inv4king fuser t4 check f4r active pr4cesses.

Backing up c4mps.xml ...
patching c4ntainer utilities

OPatch succeeded.


The database objects Ior this patch should be upgraded.

$ sqlplus
orabpel/orabpel@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhui
zen.com\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.vijfhuizen.com\)\)\)
@$ORACLE_HOME/bpel/system/database/scripts/upgrade_10134_10134mlr_oracle.sql

SQL>
SQL> commit;

C4mmit c4mplete.

SQL> exit
ORASOAClusterInstallv1



Marc Kelderman 2009 35



$ sqlplus
oraesb/oraesb@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhuize
n.com\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.vijfhuizen.com\)\)\)
@$ORACLE_HOME/integration/esb/sql/oracle/upgrade_10134_10134MLR.sql

C4mmit c4mplete.

SQL> exit

Remove previous applications.

$ cd $ORACLE_HOME/j2ee/oc4j_esbdt/application-deployments/
$ rm -rf esb-dt/
$ cd $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/
$ rm -rf orabpel/ esb-rt/ hw_services/

Restart the applicatie servers, see Appendix.

2.5.14 Configure Oracle ESB Designer instance
The ESB Designer application must be installed in a separate OC4J container.

VeriIy the settings in the Iile esboc4jinstallprops.xml.


$ cd $ORACLE_HOME/integration/esb/install/ant-tasks
$ mv esb_oc4j_install_props.xml esb_oc4j_install_props.xml.OOTB
$ vi esb_oc4j_install_props.xml
<?xml versi4n="1.0"?>
<pr4ject name="ESB Installati4n Pr4perties" default="">
<pr4perty name="h4me_c4ntainer_v" value="4c4j_esbdt"/>
<pr4perty name="esb_type_v" value="design"/>
<pr4perty name="4hs.h4st" value="n4de1.vijfhuizen.c4m"/>
<pr4perty name="4hs.p4rt" value="7777"/>
<pr4perty name="db.user" value="4raesb"/>
<pr4perty name="db.passw4rd" value="4raesb"/>
<pr4perty name="db_h4st_v" value="database.vijfhuizen.c4m"/>
<pr4perty name="db_p4rt_v" value="1521"/>
<pr4perty name="db_sid_v" value="4rcl.vijfhuizen.c4m"/>
<pr4perty name="ias_name_v" value="ass4a.n4de1"/>
<pr4perty name="admin.server.passw4rd" value="welc4me1"/>
<pr4perty name="http.pr4xy.h4st" value=""/>
<pr4perty name="http.pr4xy.p4rt" value="0"/>
<pr4perty name="http.n4n.pr4xy.h4sts" value=""/>
<pr4perty name="ias.name" value="ass4a.n4de1"/>
<pr4perty name="4pmn.requestp4rt" value="6003"/>
<pr4perty name="ias.virtual_h4st" value="l4adbalancer.vijfhuizen.c4m"/>
</pr4ject>


Apply this changes also on node #2. Restart the application servers, see Appendix.

Deploy the ESB Designtime engine.

$ cd $ORACLE_HOME/integration/esb/bin
$ . ./esbsetenv.sh
$ ant -f $ORACLE_HOME/integration/esb/install/ant-tasks/esboc4j.xml

BUILD SUCCESSFUL
T4tal time: 45 sec4nds

Add a library Ior common logging.

ORASOAClusterInstallv1



Marc Kelderman 2009 36



$ vi $ORACLE_HOME/j2ee/oc4j_esbdt/application-deployments/
esb-dt/orion-application.xml

<imp4rted-shared-libraries>
<rem4ve-inherited name="apache.c4mm4n.l4gging"/>
<imp4rt-shared-library name="4racle.xml"/>
<imp4rt-shared-library name="4racle.jdbc"/>
<imp4rt-shared-library name="apache.slide"/>
<imp4rt-shared-library name="4racle.esb"/>
<imp4rt-shared-library name="4racle.bpel.c4mm4n"/>
</imp4rted-shared-libraries>


Update the DTOC4JHOST parameter in the database oI the ESB.


$ sqlplus
oraesb/oraesb@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhuize
n.com\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.vijfhuizen.com\)\)\)

SQL> update ESB_PARAMETER set PARAM_VALUE = 'loadbalancer.vijfhuizen.com' where PARAM_NAME =
'DT_OC4J_HOST';

1 r4w updated.

SQL> update ESB_PARAMETER set PARAM_VALUE = '80' where PARAM_NAME = 'DT_OC4J_HTTP_PORT';

1 r4w updated.

SQL> commit;

C4mmit c4mplete.

SQL> exit


The oc4jesbdt engine may only be active on onde node oI the cluster.

$ vi $ORACLE_HOME/4pmn/c4nf/4pmn.xml

<ias-c4mp4nent id="ESBDT_GROUP" status="enabled">
<pr4cess-type id="4c4j_esbdt" m4dule-id="OC4J"
service-failover="1" serivce-weight="100" status="enabled">
<m4dule-data>
<categ4ry id="start-parameters">
<data id="java-4

<pr4cess-set id="ESBDT_GROUP" numpr4cs="1"/>


Note: On server #1, the service weight is 100, on node #2 the service weight must be 50 (Metalink note
733536.1).

Increate the deIault time-out settings.

$ vi $ORACLE_HOME/j2ee/oc4j_esbdt/config/transaction-manager.xml

<transacti4n-manager
xmlns:xsi="http://www.w3.4rg/2001/XMLSchema-instance"
xsi:n4NamespaceSchemaL4cati4n="http://xmlns.4racle.c4m/4racleas/schema/transacti4n-manager-
10_0.xsd"
transaction-timeout="300"
max-c4ncurrent-transacti4ns="-1"
>


$ vi $ORACLE_HOME/j2ee/oc4j_soa/config/transaction-manager.xml

ORASOAClusterInstallv1



Marc Kelderman 2009 37


<transacti4n-manager
xmlns:xsi="http://www.w3.4rg/2001/XMLSchema-instance"
xsi:n4NamespaceSchemaL4cati4n="http://xmlns.4racle.c4m/4racleas/schema/transacti4n-manager-
10_0.xsd"
transaction-timeout="1800"
max-c4ncurrent-transacti4ns="-1"
>

Restart the application servers, see Appendix.

2.5.15 Cluster de Oracle ESB Runtime
Remove the comment brackets oI the ESB runtime enigine to makei t cluster aware.Remove also the new
10.1.3.4 tags.

$ vi $ORACLE_HOME/j2ee/oc4j_soa/applications/esb-rt/META-INF/orion-application.xml

<!
<pr4perty name="cluster_name" value="esb" />
<pr4perty name="primary_4c4j" value="false" />
<pr4perty name="xa_time4ut" value="60" />
<pr4perty name="jms_receive_time4ut" value="30" />
<pr4perty name="esbSystemF4rBPEL" value="BPELSystem" />
<pr4perty name="Inb4undRetryC4unt" value="3" />
<pr4perty name="Inb4undRetryInterval" value="5" />
<pr4perty name="Inb4undRetryEnabled" value="true" />
<pr4perty name="Outb4undRetryC4unt" value="3" />
<pr4perty name="Outb4undRetryInterval" value="5" />
<pr4perty name="Outb4undRetryEnabled" value="true" />
<pr4perty name="PingC4unt" value="15" />
<pr4perty name="PingInterval" value="15" />
-->

<!--Added in 10.1.3.4-->
<pr4perty name="bpelSvcAut4Deleti4n" value="false" />
<pr4perty name="4racle.tip.esb.server.c4mm4n.intercept4r.IEsbMessageIntercept4r"
value="true" />
<pr4perty name="inb4undMessageIntercept4r"
value="4racle.tip.esb.server.c4mm4n.intercept4r.test.TestIntercept4r" />
<pr4perty name="4utb4undMessageIntercept4r"
value="4racle.tip.esb.server.c4mm4n.intercept4r.test.TestIntercept4r" />
<pr4perty name="enqueuer_number" value="10" />
<pr4perty name="isC4ncreteSuffixRequired" value="false" />


$ cp $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/esb-rt/orion-application.xml
$ORACLE_HOME/j2ee/oc4j_soa/application-deployments/esb-rt/orion-application.xml.OOTB

$ cp $ORACLE_HOME/j2ee/oc4j_soa/applications/esb-rt/META-INF/orion-application.xml
$ORACLE_HOME/j2ee/oc4j_soa/application-deployments/esb-rt/orion-application.xml

Check iI the queues are create in the database.

$ sqlplus
oraesb/oraesb@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhuize
n.com\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=orcl.vijfhuizen.com\)\)\)

SQL> select name from user_queues;

NAME
------------------------------
AQ$_ESB_MONITOR_E
ESB_MONITOR
AQ$_ESB_ERROR_RETRY_E
ESB_ERROR_RETRY
AQ$_ESB_ERROR_E
ESB_ERROR
AQ$_ESB_CONTROL_E
ORASOAClusterInstallv1



Marc Kelderman 2009 38


ESB_CONTROL
AQ$_ESB_JAVA_DEFERRED_E
ESB_JAVA_DEFERRED

10 r4ws selected.

SQL> exit

II this is not the case, then create the queues via the script createesbtopics.sql`. This is located in
$ORACLEHOME/integration/esb/sql/oracle.

2.5.16 ESB Database Repository
Change the design time instance, Irom Iile based to database repository.

$ cd $ORACLE_HOME/integration/esb/config
$ cp Domain_DB.xml Domain.xml

Restart the application servers, see Appendix.

The JMS messages in ESB Design Time are normally Iile-based stored. For a cluster this must be changed to
database storage.

Execute the next actions on both oc4j instances (oc4jsoa, oc4jesbdt) and on both nodes. First apply this on
node #1, while node #2 is down. Then apply it on node #2 while node #1 is down.


Logon to Oracle Enterprise Manager
http://n4de1.vijfhuizen.c4m:7777/em




Selecteer de 4c4j_esbdt c4ntainer v44r
iedere server.

ORASOAClusterInstallv1



Marc Kelderman 2009 39



Click Administrati4n
Click Expand all
Click Database Persistence


Click Depl4y


Res4urce M4dule Name: OracleJMS
Res4urce Pr4vider Name: esbRP
Datas4urce JNDI: jdbc/esbaqdatas4urce

Click OK


C4nfirmati4n
Restart applicatie servers


Restart the applicatie servers, see Appendix..

2.5.17 JMS Resource Adapters
Make the Iollowing changes on the JMS Resource Adapater, to makei t database aware.

Logon to Oracle Enterprise Manager
http://n4de1.vijfhuizen.c4m:7777/em



ORASOAClusterInstallv1



Marc Kelderman 2009 40



Select the 4c4j_esbdt c4ntainer.


Click Apllicati4ns


Select `Standal4ne Res4urce Adapter'.

Click 4n `OJMS RA' Link


Select `C4nnecti4n Fact4ries'

ORASOAClusterInstallv1



Marc Kelderman 2009 41



Click `Create'


Select `javax.jms.XAT4picC4nnecti4nFact4ry'

Click C4ntinue


JNDI L4cati4n: OracleOJMS/XATCF

Click Finish


C4nfirmati4n is sh4wn

Click 4n `Create'


Select: java.jms.T4picC4nnecti4nFact4ry

Click C4ntinue


JNDI: OracleOJMS/TCF

Click Finish


C4nfirmati4n

Click Administered Objects


Click Create

ORASOAClusterInstallv1



Marc Kelderman 2009 42



Select
`4racle.j2ee.ra.jms.generic.AdminObjectT4picImpl'

Click C4ntinue


JNDI: ESBT4pics
Re4urcesPr4viderName: esbRP

Click Finish


Execute previous steps again Ior the oc4jsoa container.

Enable OHS routing Ior the ESB-dt container.

$ vi $ORACLE_HOME/j2ee/oc4j_esbdt/config/default-web-site.xml

<web-app applicati4n="datatags" name="webapp" l4ad-4n-startup="true" r44t="/webapp" />
<web-app applicati4n="esb-dt" name="esb_c4ns4le" l4ad-4n-startup="true" r44t="/esb"
ohs-routing="true"/>
<web-app applicati4n="4rainfra" name="4rainfra" l4ad-4n-startup="true"
r44t="/4rainfra" />

Execute the Iollowing SQL statements Ior the oraesb` schema.


sqlplus
4raesb/4raesb@\(DESCRIPTION=\(ADDRESS_LIST=\(ADDRESS=\(PROTOCOL=tcp\)\(HOST=database.vijfhuize
n.c4m\)\(PORT=1521\)\)\)\(CONNECT_DATA=\(SERVICE_NAME=4rcl.vijfhuizen.c4m\)\)\)

delete esb_parameter where param_name = 'PROP_NAME_DEFERRED_TOPIC_JNDI';
delete esb_parameter where param_name = 'PROP_NAME_INITIAL_CONTEXT_FACTORY';
delete esb_parameter where param_name = 'ACT_ID_RANGE';

insert int4 esb_parameter
values('PROP_NAME_DEFERRED_TOPIC_JNDI','ESBT4pics/T4pics/ESB_JAVA_DEFERRED');
insert int4 esb_parameter values('PROP_NAME_INITIAL_CONTEXT_FACTORY',
'c4m.evermind.server.rmi.RMIInitialC4ntextFact4ry');

insert int4 esb_parameter values('ACT_ID_RANGE', '400');

update esb_parameter set param_value ='l4adbalancer.vijfhuizen.c4m' where
param_name = 'DT_OC4J_HOST';
update esb_parameter set param_value ='80' where param_name =
'DT_OC4J_HTTP_PORT';
update esb_parameter set param_value ='OracleOJMS/TCF' where param_name =
'PROP_NAME_DEFERRED_TCF_JNDI';
update esb_parameter set param_value ='OracleOJMS/XATCF' where param_name =
'PROP_NAME_DEFERRED_XATCF_JNDI';
update esb_parameter set param_value ='ESBT4pics/T4pics/ESB_CONTROL' where param_name =
'PROP_NAME_CONTROL_TOPIC_JNDI';
update esb_parameter set param_value ='OracleOJMS/XATCF' where param_name =
'PROP_NAME_CONTROL_TCF_JNDI';
update esb_parameter set param_value ='ESBT4pics/T4pics/ESB_ERROR' where param_name =
'PROP_NAME_ERROR_TOPIC_JNDI';
update esb_parameter set param_value ='OracleOJMS/TCF' where param_name =
'PROP_NAME_ERROR_TCF_JNDI';
update esb_parameter set param_value ='OracleOJMS/XATCF' where param_name =
'PROP_NAME_ERROR_XATCF_JNDI';
update esb_parameter set param_value ='ESBT4pics/T4pics/ESB_ERROR_RETRY' where param_name =
'PROP_NAME_ERROR_RETRY_JNDI';
update esb_parameter set param_value ='OracleOJMS/XATCF' where param_name =
'PROP_NAME_ERROR_RETRY_TCF_JNDI';
update esb_parameter set param_value ='ESBT4pics/T4pics/ESB_MONITOR' where param_name =
'PROP_NAME_MONITOR_TOPIC_JNDI';
ORASOAClusterInstallv1



Marc Kelderman 2009 43


update esb_parameter set param_value ='OracleOJMS/TCF' where param_name =
'PROP_NAME_MONITOR_TCF_JNDI';

update wf_agents set tcf_jndi='OracleOJMS/XATCF' where
queue_type='DEFERRED';
update wf_agents set name ='ESBT4pics/T4pics/ESB_JAVA_DEFERRED' where
queue_type='DEFERRED';
update wf_agents set queue_name ='ESBT4pics/T4pics/ESB_JAVA_DEFERRED' where
queue_type='DEFERRED';

c4mmit
exit

2.5.18 Connection Pools
Create the Iollowing connectie pool.

O BPELPool

L4g 4n t4 Oracle Enterprise Manager


Click 4n SOA_GROUP


Click Administrati4n


Click JDBC Res4urces

ORASOAClusterInstallv1



Marc Kelderman 2009 44



Click Create


Applicati4n: Default
New C4nnecti4n P44l fr4m existing
Existing: ESBP44l

Click c4ntinue


Click JDBC Res4urces

Name: BPELP44l
Fact4ry Class:
4racle.jdbc.p44l.OracleDataS4urce
URL: Default
Username: 4rabpel
User clear text Passw4rd: 4rabpel

Click Apply


Click Create

ORASOAClusterInstallv1



Marc Kelderman 2009 45



Applicati4n: Default
New C4nnecti4n P44l fr4m existing
Existing: BPELP44l

Click c4ntinue


Apply this connection pool to the BPEL datasource.

Restart the application server, see Appendix.

Open the ESB console. VeriIy all the ESB systems on the Iollowing settings.

Cluster Name: esb
Virtual Host: loadbalancer.vijIhuizen.com
Port: 80
Topic Location: ESBTopics/Topics/ESBJAVADEFERRED
Connection Factory Location: OracleOJMS/XATCF
2.6 Proxy Settings
II you are using a proxy server Ior all connections over the network add the Iollowing settings to disable creating
connections Irom the cluster nodes to each other.

Add the proxy settings to the oc4jsoa and oc4jesbdt containers.

-Dhttp.proxySettrue
-Dhttp.proxyHostyour.proxy.server
-Dhttp.proxyPort your.proxy.port
-Dhttp.nonProxyHostslocalhost,node1.vijIhuizen.com,node2.vijIhuizen.com,loadbalancer.vijIhuizen.com

II there are proxies already set, make sure that these settings are removed.

II you do not use a proxy, just remove any proxy properties.

$ vi $ORACLE_HOME/opmn/conf/opmn.xml

<pr4cess-type id="4c4j_esbdt" m4dule-id="OC4J" service-fail4ver="1" service-
weight="100" status="enabled">
<m4dule-data>
<categ4ry id="start-parameters">
<data id="java-4pti4ns" value="-server -Xmx128m -Xms128m -
D4c4j.userThreads=true -Djava.security.p4licy=$ORACLE_HOME/j2ee/4c4j_esbdt/c4nfig/java2.p4licy
-Djava.awt.headless=true -Dhttp.webdir.enable=false -
D4raesb.h4me=/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb -Dhttp.proxySet=true -
Dhttp.proxyHost=your.proxy.server -Dhttp.proxyPort=8080 -
Dhttp.nonProxyHosts=localhost|node1.vijfhuizen.com|node2.vijfhuizen.com|loadbalancer.vijfhuize
n.com"/>
</categ4ry>


<pr4cess-type id="4c4j_s4a" m4dule-id="OC4J" status="enabled">
<m4dule-data>
<categ4ry id="start-parameters">
<data id="java-4pti4ns" value="-server -Xmx1024m -Xms1024m -Xss128k -XX:MaxPermSize=512m -
Djava.security.p4licy=$ORACLE_HOME/j2ee/4c4j_s4a/c4nfig/java2.p4licy -Djava.awt.headless=true
ORASOAClusterInstallv1



Marc Kelderman 2009 46


-Dhttp.webdir.enable=false -D4c4j.userThreads=true -D4racle.mdb.fastUndepl4y=60 -
D4c4j.f4rmauth.redirect=true -Djava.net.preferIPv4Stack=true -
D4rabpel.h4me=/4racle/pr4ducts/10.1.3/s4a/bpel -
Xb44tclasspath^/p:/4racle/pr4ducts/10.1.3/s4a/bpel/lib/4rabpel-b44t.jar -
D4raesb.h4me=/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb -Dhttp.proxySet=true -
Dhttp.proxyHost=your.proxy.server -Dhttp.proxyPort=8080 -
Dhttp.nonProxyHosts=localhost|node1.vijfhuizen.com|node2.vijfhuizen.com|loadbalancer.vijfhuize
n.com"/> </categ4ry>
<categ4ry id="st4p-parameters">



Restart both nodes.
ORASOAClusterInstallv1



Marc Kelderman 2009 47



2.7 Connection Pools
De connectie pools on both nodes should be changed in a way that it is using the optimal connections. In
numbers connectigons in the pool depends on usage oI the application. This varies per customer.

The deIault values are not suIIecient. By deIault it can create unlimited nuber oI connections to the database. We
will limit the number connections.

Set all the connection pools in the oc4jsoa` instance the minimale and maximum values.



These values van be set via Enterpise Manager, but it is easier to do it directly in the Iile.

c4nnecti4n-retry-interval="3" max-c4nnecti4ns="32"
min-c4nnecti4ns="4" used-c4nnecti4n-wait-time4ut="30" validate-c4nnecti4n="true"


$ vi $ORACL_HOME/j2ee/oc4j_soa/config/data-sources.xml
1 examples
<c4nnecti4n-p44l name="Y4urApplicati4nCP" connection-retry-interval="3" max-
connections="32" min-connections="4" used-connection-wait-timeout="30" validate-
connection="true">
<c4nnecti4n-fact4ry fact4ry-class="4racle.jdbc.p44l.OracleDataS4urce" user="username"
passw4rd="passw4rd"
url="jdbc:4racle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=4n)(ADDRESS=(PROTOCOL=tcp)(HOS
T=database.vijfhuizen.c4m)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=SID.vijfhuizen.c4m)))"
c4mmit-rec4rd-table-name=""/>
</c4nnecti4n-p44l>

</c4nnecti4n-p44l>

Apply this change on all your data sources, including the BPEL and ESB datasources, on both nodes.


ORASOAClusterInstallv1



Marc Kelderman 2009 48


3 APPENDIX
This chapter gives you some scripts on how to stop and start the application server.
3.1 Stop/Start Scripts
Restart applicatie server

$ . 4raenv
ORACLE_SID = [???] ? ass4a
$ cd $ORACLE_HOME/4pmn/bin
$ ./4pmnctl st4pall
4pmnctl: st4pping 4pmn and all managed pr4cesses...
$ ./4pmnctl startall
4pmnctl: starting 4pmn and all managed pr4cesses...
$


Start applicatie server

$ . 4raenv
ORACLE_SID = [???] ? ass4a
$ cd $ORACLE_HOME/4pmn/bin
$ ./4pmnctl startall
4pmnctl: starting 4pmn and all managed pr4cesses...
$


Stop applicatie server

$ . 4raenv
ORACLE_SID = [???] ? ass4a
$ cd $ORACLE_HOME/4pmn/bin
$ ./4pmnctl st4pall
4pmnctl: st4pping 4pmn and all managed pr4cesses...
$


Status Applicatie Server

$ . 4raenv
ORACLE_SID = [???] ? ass4a
$ cd $ORACLE_HOME/4pmn/bin
$ ./4pmnctl status
4pmnctl: st4pping 4pmn and all managed pr4cesses...
$


Status Applicatie Server Cluster

ORASOAClusterInstallv1



Marc Kelderman 2009 49


$ . 4raenv
ORACLE_SID = [???] ? ass4a
$ cd $ORACLE_HOME/4pmn/bin
$ ./4pmnctl status @cluster

$


3.2 Open Enterprise Manager

Open the browser en and use the Iollowing volgende URL to start Enterprise Manager .

http://osbs.vijIhuizen.com:7777/em


User Name: oc4jadmin
Password: *****
Click on Login`


The cluster topology is shown.


3.3 Reset ESB Repository

To cleanup the ESB repository, dut to some Iact that it is corrupted, do the Iollowing.

Check iI the attribute HTTPPort correct staat.

$ vi $ORACLE_HOME/integrati4n/bin/build.xml

<pr4perty name="rmi.p4rt" value="23792" />
<pr4perty name="dt.4c4j.h4st" value="${env.DT_OC4J_HOST}" />
ORASOAClusterInstallv1



Marc Kelderman 2009 50


<pr4perty name="dt.4c4j.http.p4rt" value="${env.DT_OC4J_HTTP_PORT}" />
<pr4perty name="rmi_c4nn_string" value="4rmi://${4c4j.h4st}:${rmi.p4rt}"
/>



AIter checking this, the repository can be cleaned.

Ignore the message iI it can not make a connection..

$ ./reset.sh -DDB_URL=jdbc:oracle:thin:@databasehost:port:SID
-DDB_USER 4raesb
-DDB_PASSWORD 4raesb
-DDB_DRIVER 4racle.jdbc.OracleDriver
-Dexp4rt true
-Dmetadatafile metadatafile.zip

Buildfile: build.xml
[ech4] ${env.PCHOME}

reset-esb:
[mkdir] Created dir: /4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/bkup/20090227_1617
[java] Creating database c4nnecti4n with
DB_URL=jdbc:4racle:thin:@database.vijfhuizen.c4m:1521:SID, DB_USER=4raesb DB_PASSWORD=4raesb
DB_DRIVER=4racle.jdbc.driver.OracleDriver.
[java] Running this C4mmand will reset all the metadata. Existing metadata will be backed
up. Press y t4 c4ntinue and any 4ther key t4 exit.
y
[java] Feb 27, 2009 4:17:54 PM 4racle.tip.esb.lifecycle.HttpHandler l4gInf4
[java] INFO: Exp4rting metadata fr4m the server [h4st=n4de1,p4rt=7777,user=4c4jadmin] t4
file "/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/bin/metadatafile.zip"
[java] Failed t4 exp4rt metadata t4 File metadatafile.zip reas4n
java.net.C4nnectExcepti4n: C4nnecti4n refused. D4 y4u wish t4 c4ntinue? Press y t4 c4ntinue.
y
[java] Exp4rted parameters t4 File
/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/bkup/20090227_1617/esbparam.pr4perties.
[java] Running:/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/sql/4racle/dr4p_esb_tables.sql
[java] Running:/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/sql/4racle/wfeventc.sql
[java]
Running:/4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/sql/4racle/seed_service_types.sql
...
aram.pr4perties.
[java] Please restart server bef4re c4ntinuing.
[ech4] ${env.PCHOME}

reset-filerep4:
[ech4] Rem4ving slide rep4sit4ry
[delete] Deleting direct4ry /4racle/pr4ducts/10.1.3/s4a/integrati4n/esb/4raesb/artifacts

BUILD SUCCESSFUL
T4tal time: 25 sec4nds

Vous aimerez peut-être aussi