Showing posts with label SOA Suite Installation. Show all posts
Showing posts with label SOA Suite Installation. Show all posts

Saturday, November 7, 2009

SOA 11g installation

The installation is pretty straight forward. At first look SOA Suite 11g is too heavy ,but solid and is resource savy , so requires >3GB memory .

The installation requires following 11G software's

1. RCU(Repository Creation Utility)

2. Weblogic Server:wls1031_win32.exe

3. SOA Suite: ofm_soa_generic_11.1.1.1.0_disk1_1of1.zip

4. JDeveloper Studio, base install and SOA Extension for JDeveloper

From a database perspective I used XE database and it looks fine .The Oracle database -Oracle XE Universal database version 10.2.0.1.

If you are using XE, you must update database parameters if you have never done this for your database installation. You only have to do this once after installing. Make sure processes parameter is >=200.
sqlplus sys/oracle@XE as sysdba
SQL> show parameter session
SQL> show parameter processes
SQL> alter system reset sessions scope=spfile sid='*';
SQL> alter system set processes=200 scope=spfile;
SQL> shutdown immediate
SQL> startup

For my first installation I didnt use RCU, so had to manually create the schema objects .The scripts can be found @ $ORACLE_HOME\rcu\integration\soainfra\sql

Another important step is to set the memory setting.

This value is dependent on your machine resources and may need to be adjusted for your machine. Allocating more memory for startup will give you help you in resolving the Out of memory error while staring up the server.

set DEFAULT_MEM_ARGS=-Xms1024m -Xmx1024m

Tuesday, July 14, 2009

Too many open files error while running a process

In one of my last projects we used to get an error telling “Too many open files”

Stack trace

SEVERE: Could not check for resources in: /OracleAS_1/lib/dsv2.jar (from in /OracleAS_1/j2ee/OC4J_SOA/config/server.xml). Caught java.util.zip.ZipException: Too many open files
SEVERE: Could not check for resources in: /OracleAS_1/j2ee/OC4J_SOA/connectors/MQSeriesAdapter/MQSeriesAdapter/MQSeriesAdapter.jar (from in /OracleAS_1/j2ee/OC4J_SOA/connectors/MQSeriesAdapter/MQSeriesAdapter). Caught java.util.zip.ZipException: Too many open files

Reason

The no.of available open files configured at UNIX level is low compare to no.of files required for SOA suite to run.

Type ulimit –a in the server to see the no.of open files limit.

By default it will be 1024

open files (-n) 1024

Solution

Set the nofiles (descriptors) to unlimited (or at least 65536):

$ ulimit -n unlimited

or

$ ulimit -n 65536

Hope this helps. Refer the prereq guide for installation of SOA suite where this parameters have been speciied

Thursday, October 30, 2008

Workaround from wrong ESB installation @HA

In one of the installations that we did on High availability environment for ESB we faced an interesting issue. This was faced while doing the installation in the NON-GUI mode. The issue was that while esb is installed, the instance in which esb runtime is supposed to be deployed, has a wrong esb-dt deployed in it. This was because there was no option to specify the design or runtime for the NON-GUI mode (We had used response files from previous installations also). So I will list the work around from this.

When you install using the GUI mode there is always an option specify that runtime(esb-rt) has to be deployed on runtime oc4j instances.

  1. First undeploy the esb-dt manually from OC4J_SOA(ESB runtime oc4j instance) of both the nodes.
  2. Set the environment by executing the esbsetenv.sh script, located in the ORACLE_HOME/integration/esb/bin directory.
  3. Update the ORACLE_HOME/integration/esb/install/ant-tasks/esb_oc4j_install_props.xml file with the values for your configuration.
  4. Deploy the Oracle Enterprise Service Bus repository or runtime instance by executing:ant -f $ORACLE_HOME/integration/esb/install/ant-tasks/esboc4j.xml.
  5. Verify that the Oracle Enterprise Service Bus repository instance deployment was successful by accessing the Repository Instance Console at:http://hotname:port/esb

Snippet form esb_oc4j_install_props.xml

……..

……….

<property name="home_container_v" value="OC4J_ESBDT"/> -- here replace it with the OC4J_SOA(or your runtime oc4j instance)

<!--

ESB component (runtime or repository) that you want to deploy on OC4J.

Possible values: 'design' (for repository)

'runtime' (for runtime)

-->

<property name="esb_type_v" value="design"/> -- here change it to runtime

……………………………

…………….

…………….

……….

Your ESB server will be up and running fine with the final configurations as specified in the enterprise deployment guide

Tuesday, September 9, 2008

workarounds to issues faced during SOA Suite10.1.3.3 installation in Vista

I thought of writing this blog so that I can share the solutions to the issues faced during installation of Oracle SOA Suite 10.1.3.3 in Windows Vista. I had faced these issues when I was doing the installation some 6 months back but didn’t document it. Today some newly joined colleagues approached with the same issues regarding the installation which prompted me to write it down. Hope this helps

Issue#1

The installation gets stuck up after it shows 84% completion. The last logged step is that opmnctl is trying to start the server. The problem is that the server is not getting started properly.

Workaround

The workaround is to kill the opmn process from task manager. It will automatically skip the starting of server and proceed with the installation. The side effect of this is that adapters may not be properly installed and BPEL console may not be properly loaded.

Issue#2

BPEL Console is not loaded properly. It will throw the following exception. This may be the result of improper installation of SOA Suite.

[java.lang.NoSuchMethodException]

com.collaxa.cube.ejb.impl.FinderBean.tryLookupInstanceByReferenceId(java.lang.String, com.oracle.bpel.client.auth.DomainAuth)

Check the size of the following jars

ORACLE_HOME \j2ee\home\applications\orabpel\ejb_ob_engine.jar

ORACLE_HOME \bpel\system\j2ee\ejb\ejb_ob_engine_oc4j.jar

If both jars are not of the same size I believe the ejb_ob_engine.jar is corrupted and not fully build. The size will be 120 kb instead of having a size of 124kb.

Workaround

First stop the server. Copy the ORACLE_HOME \bpel\system\j2ee\ejb\ejb_ob_engine_oc4j.jar to ORACLE_HOME \j2ee\home\applications\orabpel and rename it to ejb_ob_engine.jar. Then start your server. BPEL console should be up and running.

Issue #3

The resource adapters are missing under a oc4j instance.In some cases the adapters may not be properly installed on your server. After installation always check the default application inside the home or oc4j instance of your server.

Check whether the following adapters are installed MQSeriesAdapter, JmsAdapter DbAdapter, AqAdapter, AppsAdapter, FileAdapter, FtpAdapter.

There are 2 workarounds.

Workaround#1

If the required adapters are not installed you will have to run the ant scripts again to deploy these connector jars to the server.

The ant scripts @ ORACLE_HOME\bpel\system\services\install\ant-tasks\redeploy-common.xml can be used for installing those resource adapters. The target in ant file is “redeploy-adapter”. After setting the environment properly that is by setting build.properties with correct values the ant task can be executed

All these adapter rar files are available @ ORACLE_HOME\bpel\system\services\lib. The build file will move them to ORACLE_HOME\ j2ee\home\connectors folder. It will also add entries in ORACLE_HOME\ j2ee\home\config\oc4j-connectors.xml corresponding to each adapter.

For Eg: <connector name="FileAdapter" path="FileAdapter.rar"> </connector>

Workaround#2

You can borrow the ORACLE_HOME\ j2ee\home\connectors folder contents and ORACLE_HOME\ j2ee\home\config\oc4j-connectors.xml from an instance having all the required resource adapters and replace it in your instance. This should also fix your problem.