Title
Installing Oracle Application Integration Architecture (AIA) Foundation Pack 2.2.0 for Microsoft Windows 32-bit

Date
2008-09-12

Summary
These instructions describe how to install Oracle Application Integration Architecture (AIA) Foundation Pack 2.2.0.0.0 for Microsoft Windows (32-bit).

The software can be downloaded from http://edelivery.oracle.com.

Prerequisites
The following software has been downloaded:
    SoftwareFilenameSize
    Oracle Database Quick Installation Guide for Microsoft WindowsB14318-01.zip128,062 bytes
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (32-bit) (Part 1 of 6)B24558-01_1of6.zip475,229,508 bytes
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (32-bit) (Part 2 of 6)B24558-01_2of6.zip181,027,848 bytes
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (32-bit) (Part 3 of 6)B24558-01_3of6.zip653,779,453 bytes
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (32-bit) (Part 4 of 6)B24558-01_4of6.zip696,664,704 bytes
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (32-bit) (Part 5 of 6)B24558-01_5of6.zip350,609,570 bytes
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (32-bit) (Part 6 of 6)B24558-01_6of6.zip252,813,519 bytes
    Oracle Database 10g Release 2 Client (10.2.0.1.0) for Microsoft Windows (32-bit)B24559-01.zip475,238,456 bytes
    Oracle SOA Suite 10g (10.1.3.1.0) for Microsoft Windows (32-bit)B34431-01.zip598,118,498 bytes
    Oracle Application Server 10g (10.1.3.1.0) Service RegistryB42221-01.zip83,923,518 bytes
    Oracle Application Server 10g (10.1.3.3.0) Patch set for Microsoft Windows x86 (32-bit)B43415-01.zip521,138,768 bytes
    Oracle Application Server 10g (10.1.3.4.0) Patch set for Microsoft Windows x86 (32-bit)p7272722_101340_WINNT.zip775,256,010 bytes
    AIA for Communications 2.0: Oracle SOA 10.1.3.3 patchesV13556-01.zip606,353 bytes
    Oracle Application Integration Architecture Foundation Pack 2.2.0.0.0: Installation GuideV13542-01.zip3,299,936 bytes
    Oracle Application Integration Architecture Foundation Pack 2.2.0.0.0 Windows (32-bit)V13786-01.zip659,447,299 bytes
    Oracle Database Server 10.2.0.3 Patch Set Upgrade for Microsoft Windows (32-bit)V12539-01.zip893,831,865 bytes
    JDK 1.5.0_11 for Windowsjdk-1_5_0_11-windows-i586-p.exe53,394,464 bytes
The following software has been installed:
  • Oracle Database 10g (10.2.0.1) and upgraded to (10.2.0.3).
  • Oracle SOA Suite 10g (10.1.3.1), upgraded to (10.1.3.3), then upgraded to (10.1.3.4).
Details
1. Configure Oracle SOA Suite 10g (10.1.3.3)

Edit httpd.conf on the Oracle SOA Suite ORACLE_HOME and make the following two changes to enable directory browsing (the AIA installer is actually smart enough to detect that this by creating a temporary test directory under %ORACLE_HOME%\Apache\Apache\htdocs):

Old setting:
<Directory />
    Options FollowSymLinks MultiViews
    AllowOverride None
</Directory>

New setting:
<Directory />
#   Options FollowSymLinks MultiViews
    Options FollowSymLinks MultiViews Indexes
    AllowOverride None
</Directory>

Old setting:
<Directory "e:\oracle\product\10.1.3\soa_1\Apache\Apache\htdocs">
    Options FollowSymLinks MultiViews

New setting:
<Directory "e:\oracle\product\10.1.3\soa_1\Apache\Apache\htdocs">
#   Options FollowSymLinks MultiViews
    Options Indexes FollowSymLinks MultiViews

2. Apply Oracle SOA Suite 10g (10.1.3) one-off patches

These patches can be downloaded from Metalink and are also included in V11653-01.zip for your convenience:
REM ----------------------------------------
REM Set the environment
REM ----------------------------------------
set ORACLE_HOME=e:\oracle\product\10.1.3\soa_1
set JAVA_HOME=%ORACLE_HOME%\jdk
set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\opmn\bin;%JAVA_HOME%\bin;%PATH%

REM ----------------------------------------
REM This is Opatch version 1.0.0.0.57 versus 10.0.0.0.56 that is shipped as default with SOA Suite 10g
REM ----------------------------------------
unzip p2617419_10102_GENERIC.zip

REM ----------------------------------------
REM Include the new Opatch location in the path
REM ----------------------------------------
set PATH=c:\AIA_install\opatch;%PATH%

REM ----------------------------------------
REM Stop Oracle SOA Suite 10g
REM ----------------------------------------
opmnctl stopall

REM ----------------------------------------
REM Apply the one-off patches
REM ----------------------------------------
unzip p5473225_101330_GENERIC.zip
cd 5473225
opatch apply
cd ..

unzip p5515836_101310_GENERIC.zip
cd 5515836
opatch apply
cd ..

unzip p6311809_101330_Generic.zip
cd 6311809
opatch apply
cd ..

unzip p6367355_101330_Generic.zip
cd 6367355
opatch apply
cd ..

unzip p6443218_101330_GENERIC.zip
cd 6443218
opatch apply
cd ..

unzip p6484367_101330_GENERIC.zip
cd 6484367
opatch apply
cd ..

unzip p6502942_101330_Generic.zip
cd 6502942
opatch apply
cd ..

unzip p6503011_101330_GENERIC.zip
cd 6503011
opatch apply
cd ..

REM ----------------------------------------
REM Patch 6499177 does not apply successfully
REM ----------------------------------------
unzip p6499177_101330_GENERIC.zip
cd 6499177
opatch apply
cd ..

3. Create and configure OC4_REGISTRY container

Create an OC4J container called OC4J_REGISTRY on the Oracle SOA Suite 10g installation.

Afterwards, locate the section for OC4J_REGISTRY in opmn.xml on the Oracle SOA Suite 10g ORACLE_HOME and add the following 3 attributes to the start-parameters accordingly:

Old setting:
<data id="java-options" value="-server
                               -Djava.security.policy=$ORACLE_HOME/j2ee/oc4j_registry/config/java2.policy
                               -Djava.awt.headless=true
                               -Dhttp.webdir.enable=false" />

New setting:
<data id="java-options" value="-server
                               -XX:MaxPermSize=128m
                               -Xmx1024m
                               -Doc4j.userThreads=true
                               -Djava.security.policy=$ORACLE_HOME/j2ee/oc4j_registry/config/java2.policy
                               -Djava.awt.headless=true
                               -Dhttp.webdir.enable=false" />

4. Create Oracle Service Registry database user

Create the database user UDDIUSER in the dehydration store database:
SQL> conn / as sysdba
SQL> CREATE USER uddiuser IDENTIFIED BY uddiuser;
SQL> GRANT resource, connect TO uddiuser;

5. Launch the Oracle Service Registry 10g (10.1.3.1) installer

unzip B42221-01.zip
java -jar oracle-service-registry-10.1.3.1.jar

6. Install Oracle Service Registry 10g (10.1.3.1)

Choose the following options during installation:
    a. On the Installation Type page, choose Standalone registry.
    b. On the Installation Directory page, enter e:\oracle\product\10.1.3\registry_1.
    c. On the Administrator page, enter admin as the Administrator Username.
        Although you could specify an alternate user, historically there was an issue when specifying admin users not named admin.
    d. On the Database Setup page, choose Create schema. Enter uddiuser when prompted.
    e. On the Database Selection page, choose Oracle 9i and later.
    f. On the JDBC Drivers page, browse for the file %ORACLE_HOME%\jdbc\lib\ojdbc14.jar on the SOA_HOME.
    g. On the Account Provider page, choose Database.
    h. On the Deployment Page, enter registry for both Application Server Context and Application Name. Check the 2 boxes Deploy at the end of the installation and Install login modules.

7. Restart OPMN on the Oracle SOA Suite home

opmnctl stopall
opmnctl startall

8. Install JDK 1.5.0_11

Download Java 2 Platform Standard Edition (J2SE) 5.0 Update 11 from http://java.sun.com/products/archive/j2se/5.0_11/index.html and install it to C:\Program Files\Java\jdk1.5.0_11:
jdk-1_5_0_11-windows-i586-p.exe

9. Configure OC4J_SOA to use JDK 1.5.0_11

Oracle SOA Suite 10g (10.1.3.1, 10.1.3.3, 10.1.3.4) uses JDK 1.5.0_06 by default.

Edit opmn.xml and add the line in red to the oc4j_soa entry:
<process-type id="oc4j_soa" module-id="OC4J" status="enabled">
  <module-data>
    <category id="start-parameters">
      <data id="java-bin" value="C:\Progra~1\Java\jdk1.5.0_11\bin\java.exe"/>


(Optional) Update the following values for the oc4j_soa container:
    OLD: -XX:MaxPermSize=128M -ms512M -mx1024M
    NEW: -XX:MaxPermSize=1024M -ms2048M -mx2048M
    

    These settings are recommended in the installation guide, but if the container does not start up (due to limited server resources), then restore them back to the original values.
10. Update the JTA transaction timeout value

The Oracle BPEL engine uses the Java Transaction API (JTA), and the timeout value is recommended to be increased.

    a. Edit %ORACLE_HOME%\j2ee\oc4j_soa\config\transaction-manager.xml.
    b. Change the transaction-timeout values from 30 to 300000.

11. Restart OPMN

Restart OPMN for all changes to take effect.
opmnctl stopall
opmnctl startall

12. Launch the Oracle Application Integration Architecture (AIA) Foundation Pack 2 (2.2.0) installer

set JAVA_HOME=c:\Program Files\Java\jdk1.5.0_11
set PATH=%JAVA_HOME%\bin;%PATH%
unzip V13786-01.zip
cd Disk1\install
setup.exe

13. Install Oracle Application Integration Architecture (AIA) Foundation Pack 2 (2.2.0)

Choose the following options during installation:
    a. Choose Application Integration Architecture 2.2.0.0.0.
    b. On Specify Home Details, enter E:\oracle\product\2.2.0\AIAFP2.
    b. On Details of the Local SOA Suite Installation, specify the OC4J instance name (can be found at <soa_home/bpel/utilities/ant-orabpel.properties) and request ports (can be found at opmn.xml).
    c. On Oracle Database Server Details, enter sys as the username.
    d. On Oracle Service Registry Details, for Username (administrator) and Instance Name, values must be what was specified during installation of Oracle Service Registry 10g installation (e.g., admin, OC4J_REGISTRY).
    e. On Oracle Service Registry Details (continued), enter E:\oracle\product\10.1.3\registry_1 for OSR Registry Home.

14. Install Oracle AIA Foundation Pack 2 (2.2.0) Demos (optional)

Install the Oracle AIA Foundation Pack 2 demos:
set ORACLE_HOME=e:\oracle\product\2.2.0\AIAFP2
cd %ORACLE_HOME%\bin
aiaenv.bat
cd %AIA_HOME%\samples\AIADemo\scripts
ant -buildfile DeployDemo.xml

Test the demo:
    a. Navigate to http://<servername>:<port>/soademo
    b. Enter sking@soademo.org and welcome1 as the username and password.

Applicable Versions
Oracle Application Integration Architecture Foundation Pack 2.2 for Microsoft Windows (32-bit)

References
Oracle Application Integration Architecture Foundation Pack 2.2: Installation Guide Release 2.2.1 E12762-01.pdf (included in V13542-01.zip)
OracleAS Service Registry 10.1.3.1 Product Documentation (registry.pdf) (included in B42221-01.zip)
Ahmed Aboulnaga

.com .com