+ All Categories
Home > Documents > Installing the Oracle SOA Suite on Red Hat 6

Installing the Oracle SOA Suite on Red Hat 6

Date post: 10-Feb-2017
Category:
Upload: tushar-varshney
View: 303 times
Download: 0 times
Share this document with a friend
54
1/19/2016 Installing the Oracle SOA Suite on Red Hat 6 http://theheat.dk/blog/?p=1052 1/54 Home About Articles Presentations Subscribe A blog without a catchy title by Peter Lorenzen Installing the Oracle SOA Suite on Red Hat 6 Peter Lorenzen 16/072013 Here is my experiences with installing SOA Suite 11.1.1.7 on Red Hat 6 (64bit) using Java 7. First have a look at the documentation: Oracle Fusion Middleware Download, Installation, and Configuration ReadMe (11.1.1.7.0) Oracle Fusion Middleware Installation Planning Guide (11.1.1.7.0) Oracle Fusion Middleware Installation Guide for Oracle SOA Suite and Oracle BPM Suite (11.1.1.7.0) Overview Download the software Prepare the OS Install Java Install the latest Java SE CPU patch Install the WebLogic Server 10.3.6 Install the latest WebLogic Server PSU patch Install the SOA Suite Patch the SOA Suite Create database schemas via the RCU Configure the SOA Suite Homes overview Starting the servers Java parameters debugFlag Configuring the Node Manager Configure automatic start of the servers Java 7 AQ errors Miscellaneous Securing your installation Configure OCM Download the software
Transcript
Page 1: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 1/54

HomeAboutArticlesPresentationsSubscribe

A blog without a catchy title

by Peter Lorenzen

Installing the Oracle SOA Suite on Red Hat 6Peter Lorenzen 16/07­2013

Here is my experiences with installing SOA Suite 11.1.1.7 on Red Hat 6 (64­bit) using Java 7.

First have a look at the documentation: Oracle Fusion Middleware Download, Installation, and Configuration ReadMe (11.1.1.7.0) Oracle Fusion Middleware Installation Planning Guide (11.1.1.7.0) Oracle Fusion Middleware Installation Guide for Oracle SOA Suite and Oracle BPM Suite (11.1.1.7.0)

Overview

Download the softwarePrepare the OSInstall JavaInstall the latest Java SE CPU patchInstall the WebLogic Server 10.3.6Install the latest WebLogic Server PSU patchInstall the SOA SuitePatch the SOA SuiteCreate database schemas via the RCUConfigure the SOA SuiteHomes overviewStarting the serversJava parametersdebugFlagConfiguring the Node ManagerConfigure automatic start of the serversJava 7AQ errorsMiscellaneousSecuring your installationConfigure OCM

Download the software

Page 2: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 2/54

JDK 7 64­bit latests updateWebLogic 10.3.6WebLogic 10.3.6 April 2013 PSU 10.3.6.0.4 (Patch 16083651)SOA Suite 11.1.1.7 Disk 1SOA Suite 11.1.1.7 Disk 2Repository Creation Utility 11.1.1.7.0 (RCU)

Please notice

Before using the direkt download links to http://download.oracle.com you need to login in to thesite and accept a License Agreement. It does not matter which product you choose.

Prepare the OS

I am using Red Hat 6 64­bit. Check the “System Requirements for UNIX Operating Systems”. Also check “Special Startup Requirements for Linux x86 or Linux x86­64 Operating Systems” in thesame document.

This should install the needed packages:

Change the open file limits in /etc/security/limits.conf

Change the kernel parameters that need changing. Often the default values are OK. Normally I only change/add these two and this is really only needed if you use Coherence.

12345678910111213141516171819

yum install binutils‐2*.x86_64 ‐yyum install compat‐libcap1‐1* ‐yyum install compat‐libstdc++‐33*.i686 ‐yyum install compat‐libstdc++‐33*.x86_64 ‐yyum install gcc‐4*.x86_64 ‐yyum install gcc‐c++‐4*.x86_64 ‐yyum install glibc‐2*.x86_64 ‐yyum install glibc‐2*.i686 ‐yyum install glibc‐devel‐2*.i686 ‐yyum install libaio‐0.*.x86_64 ‐yyum install libaio‐devel‐0.*.x86_64 ‐yyum install libgcc‐4.*.x86_64 ‐yyum install libstdc++‐4.*.i686 ‐yyum install libstdc++‐4.*.x86_64 ‐yyum install libstdc++‐devel‐4.*.x86_64 ‐yyum install libXext.i686 ‐yyum install libXtst.i686 ‐yyum install sysstat‐9.*.x86_64 ‐yyum install redhat‐lsb‐4.*.x86_64 ‐y

12345

sed ‐i '/.*End of file/d' /etc/security/limits.confecho "* soft nofile 16384" >> /etc/security/limits.confecho "* hard nofile 16384" >> /etc/security/limits.confecho "# End of file"  >> /etc/security/limits.confcat /etc/security/limits.conf

12

echo "net.core.rmem_max=4192608" >> /etc/sysctl.confecho "net.core.wmem_max=4192608" >> /etc/sysctl.conf

Page 3: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 3/54

Create user, group and directories.

Set the umask for the oracle user. If you don’t want to set it in the .bash_profile at least set it manuallywhen installing the software as suggested by Oracle.

Enabling Unicode Support in the .bash_profile for the oracle user.

Install Java

Unzip and untar the downloaded file:

After I install Java I always create a softlink to the installation directory and reference it everywhere.This makes it is easier later when you have to upgrade.

Install the latest Java SE CPU patch

Check the Java SE Critical Patch Update (CPU) to see if you need to patch the Java you have installed. The latest Java SE CPU is from June 2013. It patches update 21 and earlier. I use update 25 so there is noneed to patch it.

Until now the Java SE CPU has had its own release schedule but from October it will follow the sameschedule as the other Oracle products.

Install the WebLogic Server 10.3.6

23

echo "net.core.wmem_max=4192608" >> /etc/sysctl.conf/sbin/sysctl ‐p

123456789

groupadd oinstalluseradd ‐g oinstall ‐G oinstall oraclepasswd oracle mkdir ‐p /u01/app/oracle/productmkdir ‐p /u01/tmp chown ‐R oracle:oinstall /u01chmod ‐R 750 /u01

123

su ‐ oracleecho "umask 027" >> .bash_profilecat .bash_profile

123

su ‐ oracleecho "export LANG=\"en_US.UTF‐8\"" >> .bash_profilecat .bash_profile

123

gunzip jdk‐7u25‐linux‐x64.tar.gztar xvf jdk‐7u25‐linux‐x64.tarmv jdk1.7.0_25 /u01/app/oracle/product/.

1 ln ‐s /u01/app/oracle/product/jdk1.7.0_25 /u01/app/oracle/product/java_current

Page 4: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 4/54

Take care when downloading the wls1036_generic.jar file since some browsers will rename it towls1036_generic.zip.

I use Xming as X Server on Windows. “Xming” currently has a problem with Java 7. When you start theOracle installer most things work, but under certain conditions you cannot make selections via mouse orkeyboard. This stumped me a bit until Simon Haslam pointed out what was going on. Xming is based onCygwin that currently has a bug. As Simon points out a workaround is to not set ­multiwindow on. Thisworks but is not a good solution since you sometime get a mashup of screens.

To get around the problem I temporary install Java 6 and use it during the installation.

­Djava.io.tmpdir is only needed if there is not enough tmp space.

Below I have ignored the screens where you can sign up for security updates etc.

12

/u01/app/oracle/product/java_current/bin/java‐Djava.io.tmpdir=/u01/tmp ‐jar wls1036_generic.jar ‐log=wls_install.log

Page 5: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 5/54

Page 6: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 6/54

Page 7: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 7/54

Page 8: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 8/54

Here my Java soft link is “ignored” so we have to fix this later.

Page 9: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 9/54

Page 10: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 10/54

Page 11: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 11/54

The Java soft link was “ignored” so we have to fix this:

Install the latest WebLogic Server PSU patch

Oracle releases quarterly security updates. You can read more about CPU, SPU, PSU and BP patcheshere.

WebLogic 10.3.6 April 2013 PSU 10.3.6.0.4 patch 16083651 (p16083651_1036_Generic.zip)

Make sure all WebLogic servers are stopped and remove any previously applied Patch Set Update andassociated overlay patches.

1234

cd /u01/app/oracle/product/soagrep ‐R jdk1.6.0_39 *find . ‐type f ‐exec sed ‐i "s/\/u01\/app\/oracle\/product\/jdk1.6.0_39/\/app\/oracle\/product\/java_current/g" {} \;

12345

mkdir /u01/app/oracle/product/soa/utils/bsu/cache_dircp D33T.jar /u01/app/oracle/product/soa/utils/bsu/cache_dir/.cp patch‐catalog_19345.xml /u01/app/oracle/product/soa/utils/bsu/cache_dir/patch‐catalog.xmlls ‐la /u01/app/oracle/product/soa/utils/bsu/cache_dir

Page 12: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 12/54

Make sure that the patch­catalog_19345.xml is renamed to patch­catalog.xml!

Verify that the patch is installed.

Alternative use.

For example.

Install the SOA Suite

Below I have ignored the screens where you can sign up for security updates etc.

123

cd /u01/app/oracle/product/soa/utils/bsu/./bsu.sh ‐prod_dir=/u01/app/oracle/product/soa/wlserver_10.3 ‐patchlist=D33T ‐verbose ‐install

12

./bsu.sh ‐prod_dir=/u01/app/oracle/product/soa/wlserver_10.3 ‐status=applied ‐verbose ‐view

12

. /u01/app/oracle/product/soa/wlserver_10.3/server/bin/setWLSEnv.shjava weblogic.version

1234

[oracle@wintermute ~]$ java weblogic.version WebLogic Server 10.3.6.0.4 PSU Patch for BUG16083651 Thu Mar 28 15:24:29 IST 2013WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050

12

cd ofm_soa_generic_11.1.1.7.0/Disk1./runInstaller ‐jreLoc /u01/app/oracle/product/java_current/jre

Page 13: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 13/54

Page 14: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 14/54

Page 15: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 15/54

Page 16: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 16/54

Page 17: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 17/54

Page 18: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 18/54

Page 19: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 19/54

If you press Save you will be prompted for a place to save a response file you can use for silentinstallation.

Page 20: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 20/54

Page 21: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 21/54

If you press Save you will be prompted for a place to store a file with information about the installation.

It contains this.

Patch the SOA Suite

12345678910111213

Install Oracle SOA Suite        Directory Details                Middleware Home Location: /u01/app/oracle/product/soa                Oracle Home Location: /u01/app/oracle/product/soa/Oracle_SOA1                Application Server Type: WebLogic Server                Application Server Location: /u01/app/oracle/product/soa        Disk Space                Oracle Home Size: 1715 MB                Available: 166748 MB        Applications                Oracle BPEL PM, Mediator, Rules, B2B, Human Workflow                Oracle Business Activity Monitoring (BAM)                Oracle Enterprise Manager

Page 22: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 22/54

To find out if there exists any patches that you should install check “Information Center: Oracle SOASuite 11g [ID 1369339.2]” on MOS and Known Issues for Oracle SOA Products and Oracle AIAFoundation Pack on OTN.

Also make sure you check for SPU patches for the SOA Suite. Currently there are no SPU and no bundlepatches for this release.

When you patch the SOA Suite always remember to download and install the latest OPatch version fromMOS.

Create database schemas via the RCU

First have a look at the documentation: Oracle Fusion Middleware Repository Creation Utility User’s Guide

Also have a look at the RCU MOS FAQ: “Oracle Fusion Middleware 11g Repository Creation Utility(RCU) – FAQ [ID 1304790.1]”

Check the database requirements.

SID != Service Name RCU uses the Service Name when connecting to a database, not the SID. The SID and the Service Namecan contain different values. You can find the Service Name in the database via:

Which schema’s are required? To figure out which schema’s are required have a look at the documentation.

Tablespaces You can create tablespaces via the RCU but I prefer to create them myself. A database will often have a default tablespace called USERS. It often ends up being a mess with all kindof different objects that nobody really knows why are there   You should create separate tablespaces and use them after the kind of data that goes in them: Object size,growth rate, object type (Tables, LOBs, etc.)

Start the RCU cd ofm_rcu_linux_11.1.1.7.0_64_disk1_1of1/rcuHome/bin ./rcu

12345

SQL> show parameter service_names NAME                                 TYPE        VALUE‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐service_names                        string      xdb.egf

12

create smallfile tablespace SOA_REPO datafile'/u01/app/oracle/oradata/SOATST/soa_repo01.dbf' size 150m autoextend on next 100m maxsize 1g extent management local autoallocate;

Page 23: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 23/54

 

Page 24: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 24/54

 

Page 25: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 25/54

 

Page 26: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 26/54

 

Page 27: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 27/54

 

Page 28: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 28/54

 

Page 29: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 29/54

 

Page 30: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 30/54

Configure the SOA Suite

Use config.sh to create a domain. If you experience problems you can enable logging to a file. It ispossible to set the log level etc.

The CONFIG_JVM_ARGS is set to speed things up if the system is low on entropy.

export CONFIG_JVM_ARGS=”­Djava.security.egd=file:/dev/./urandom” cd /u01/app/oracle/product/soa/Oracle_SOA1/common/bin ./config.sh

Below I have ignored the screens where you can sign up for security updates etc.

Page 31: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 31/54

 

Page 32: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 32/54

I only need the SOA Suite and the BPM Suite, so no BAM. Do not select products you do not need.“Basic WebLogic SIP Server Domain” is for example not compatible with the SOA Suite.

Page 33: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 33/54

I like to keep the domains away from the software installation.

Page 34: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 34/54

In the past I used to not name the default administrator user weblogic on production servers. Just as anextra precaution so you know that you are logging on to a production server. I have never experiencedproblems with this. But a the UKOUG conference last year I was told by somebody that you can get introuble with some of the IDM products if there is no weblogic user.

Page 35: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 35/54

 

Page 36: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 36/54

 

Page 37: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 37/54

 

Page 38: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 38/54

If you do not select any options on this page the configuration wizard will default create an AdminServerand a soa_server1 with an empty listen address and using port 7001 and 8002. The Node Manager usesport 8001. I like to change listen address, ports etc…

Page 39: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 39/54

 

Page 40: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 40/54

 

Page 41: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 41/54

 

Page 42: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 42/54

 

Page 43: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 43/54

 

Page 44: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 44/54

You can use the Summary View drop­down menu to inspect different details about the installation.

Page 45: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 45/54

Homes overview

There are many homes:

Application Home – /u01/app/oracle/applications/soaDomain Home – /u01/app/oracle/domains/soaMiddleware Home – /u01/app/oracle/product/soaOracle Common Home – /u01/app/oracle/product/soa/oracle_commonOracle Home (SOA Suite) – /u01/app/oracle/product/soa/Oracle_SOA1WebLogic Server Home – /u01/app/oracle/product/soa/wlserver_10.3

For more information check the Oracle Fusion Middleware Installation Planning Guide.

Starting the servers

Start the Admin Server:

Waite till you see:

12

cd /u01/app/oracle/domains/soa./startWebLogic.sh

1 <Server started in RUNNING mode>

Page 46: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 46/54

Now you should be able to access the Admin Console: http://wintermute:7001/console

And the Fusion Middleware Control: http://wintermute:7001/em

Start the Managed Server in another terminal:

Input username and password when prompted.

It takes a while before soa_server1 reaches the Running state and you will also see a somewarnings/errors being reported.

When it reaches the Running state check the status for the deployments in the Admin Server Console.The deployments should all have status Active. There will be a few that has status Installed. These areoptional modules that default is not target to anything.

For more information about which modules should be targeted where check the appendix “TargetingApplications and Resources to Servers“.

Java parameters

You can set Java memory parameters in several ways. I normally do it by setting USER_MEM_ARGS inDOMAIN_HOME/bin/startWebLogic.sh. For the SOA Suite the setSOADomainEnv.sh in the samedirectory overwrites USER_MEM_ARGS so for SOA Suite I use setSOADomainEnv.sh andPORT_MEM_ARGS.

Development Mode

Production Mode

1 <Server started in RUNNING mode>

12

cd /u01/app/oracle/domains/soa/bin./startManagedWebLogic.sh soa_server1

123456789101112131415

# *************************************************************************# lorenzen Begin # *************************************************************************if [ "${SERVER_NAME}" = "" ] ; then        SERVER_NAME="AdminServer"        export SERVER_NAMEfiif [ "${SERVER_NAME}" = "AdminServer" ] ; then  PORT_MEM_ARGS="‐Xms256m ‐Xmx768m ‐XX:MaxPermSize=350m ‐Djava.security.egd=file:/dev/./urandom"elif [ "${SERVER_NAME}" = "soa_server1" ] ; then  PORT_MEM_ARGS="‐Xms768m ‐Xmx1536m ‐XX:MaxPermSize=768m ‐Djava.security.egd=file:/dev/./urandom"fi# *************************************************************************# lorenzen End# *************************************************************************

123

# *************************************************************************# lorenzen Begin # *************************************************************************

Page 47: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 47/54

You also need to comment this out, otherwise the Perm parameters will be set twice.

In Development Mode I have added a parameter to take care of any entropy problems.

In Production Mode ­Xms and ­Xmx should always contain the same value for Managed Servers.

By the way if you are messing around with different Java installations etc. this is a good blog post.

debugFlag

If you are not running in Production Mode I always set debugFlag to false. If you do not do this you can get errors like the below, because several servers are trying to use the sameport:

So add this:

This should do it:

If your developers need the debug ports, make sure each server uses unique ports.

Configuring the Node Manager

3456789101112131415

# *************************************************************************if [ "${SERVER_NAME}" = "" ] ; then        SERVER_NAME="AdminServer"        export SERVER_NAMEfiif [ "${SERVER_NAME}" = "AdminServer" ] ; then  PORT_MEM_ARGS="‐Xms256m ‐Xmx768m ‐XX:MaxPermSize=350m"elif [ "${SERVER_NAME}" = "soa_server1" ] ; then  PORT_MEM_ARGS="‐Xms1536m ‐Xmx1536m ‐XX:MaxPermSize=768m"fi# *************************************************************************# lorenzen End# *************************************************************************

1234

#if [ "${JAVA_VENDOR}" != "Oracle" ] ; then#  DEFAULT_MEM_ARGS="${DEFAULT_MEM_ARGS} ‐XX:PermSize=127m ‐XX:MaxPermSize=768m"#  PORT_MEM_ARGS="${PORT_MEM_ARGS} ‐XX:PermSize=255m ‐XX:MaxPermSize=768m"#fi

123

ERROR: transport error 202: bind failed: Address already in useERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized

1 debugFlag="false"

1 sed ‐i 's/debugFlag="true"/debugFlag="false"/g' setDomainEnv.sh

Page 48: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 48/54

I always use the Node Manager (NM) to start and stop WebLogic servers.

1. Set NM user name and password

Use the Admin Console and navigate to the domain. Select Security and then Advanced. Set“NodeManager Username” and “NodeManager Password”: 

2. Set the NM type to plain

The NM default uses SSL. I normally do not use SSL for the NM and if you do you should use valid SSLcertificates not the default demo certificates. Navigate to Environment => Machines => machine_1 => Node Manager. Change Type to Plain. 

3. Stop the Admin Server and the Managed Server

Stop them via the Admin Console or just ctrl+c in the two terminals.

4. Start the NM

When you see:

Stop NM again with ctrl+c. The NM has now create it’s setup files and we need to make a couple ofchanges in nodemanager.properties in: /u01/app/oracle/product/soa/wlserver_10.3/common/nodemanager

Change these lines:

12

cd /u01/app/oracle/product/soa/wlserver_10.3/server/bin./startNodeManager.sh

1 INFO: Secure socket listener started on port 5556

1

2

javaHome=/u01/app/oracle/product/java_current

JavaHome=/u01/app/oracle/product/java_current/jre

Page 49: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 49/54

This should do it.

Start the NM again. Wait until you see:

5. Start the Admin Server

In another terminal start the Admin Server:

6. Start the Managed Server

When the Admin Server is Running start the Managed Server via the Admin Console.

Notice that things are a bit different if you use Production Mode.

Configure automatic start of the servers

Now everything is running but of cause the NM should not be started manually but automatically whenthe server boots.

Here is a very simple boot script: /etc/init.d/soaNodeManager

Java 7

23456

JavaHome=/u01/app/oracle/product/java_current/jreListenAddress=localhostSecureListener=falseCrashRecoveryEnabled=trueStartScriptEnabled=true

123456

sed ‐i 's/javaHome=.*/javaHome=\/u01\/app\/oracle\/product\/java_current/g'sed ‐i 's/JavaHome=.*/javaHome=\/u01\/app\/oracle\/product\/java_current\/jre/g'sed ‐i 's/ListenAddress=/ListenAddress=localhost/g' nodemanager.propertiessed ‐i 's/SecureListener=true/SecureListener=false/g' nodemanager.propertiessed ‐i 's/CrashRecoveryEnabled=false/CrashRecoveryEnabled=true/g' nodemanager.propertiessed ‐i 's/StartScriptEnabled=false/StartScriptEnabled=true/g' nodemanager.properties

1 INFO: Plain socket listener started on port 5556

1234

. /u01/app/oracle/product/soa/wlserver_10.3/server/bin/setWLSEnv.shjava weblogic.WLSTnmConnect(username='nodemgr', password='manager2', domainName='soa', domainDir=nmStart('AdminServer')

12345

cd /etc/init.dchmod 755 soaNodeManagerchkconfig ‐‐add soaNodeManagerchkconfig ‐‐list soaNodeManager./soaNodeManager start

Page 50: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 50/54

Because of the mentioned problem with Xming I have used Java 6 during the installation.

Before switching to Java 7 you should read “Using WebLogic Server with JDK 7“.

The java_current soft link still points to Java 6 so we should change this:

AQ errors

When you start the WebLogic server you might encounter errors like these in the log files.

There are more than 20 AQ queues in the schemas the RCU has created. Have a look.

For these initial errors errors to go away you only need to enable enqueue/dequeue on 3 of them.

123456

mkdir /u01/app/oracle/product/jdk1.7.0_25/jre/lib/endorsedcd /u01/app/oracle/product/soa/modulescp javax.annotation_* /u01/app/oracle/product/jdk1.7.0_25/jre/lib/endorsedcp javax.xml.bind_* /u01/app/oracle/product/jdk1.7.0_25/jre/lib/endorsedcp javax.xml.ws_* /u01/app/oracle/product/jdk1.7.0_25/jre/lib/endorsedls /u01/app/oracle/product/jdk1.7.0_25/jre/lib/endorsed

123

rm ‐f /u01/app/oracle/product/java_currentln ‐s /u01/app/oracle/product/jdk1.7.0_25 /u01/app/oracle/product/java_currentls ‐l /u01/app/oracle/product/java_current

123456

<Jul 13, 2013 12:29:35 PM CEST> <Warning> <oracle.integration.platform.blocks.event.saq> <SOA‐31013> <Error handling message (rolling back).java.sql.SQLException: ORA‐25226: dequeue failed, queue DEV_SOAINFRA.EDN_OAOO_QUEUE is not enabled ORA‐06512: at "SYS.DBMS_AQ", line 335ORA‐06512: at "DEV_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14...>

1 <Jul 13, 2013 12:29:10 PM CEST> <Error> <oracle.soa.b2b.transport> <BEA‐000000> <AQDequeuer_ReadMessage: A database exception occurred: java.sql.SQLException: ORA‐25226: dequeue failed, queue DEV_SOAINFRA.IP_OUT_QUEUE is not enabled 

123456789

set pagesize 1000set linesize 1000select owner,       name,       enqueue_enabled,       dequeue_enabled  from dba_queues where owner like 'DEV%' order by owner, name;

123

exec dbms_aqadm.start_queue(queue_name => 'DEV_SOAINFRA.EDN_OAOO_QUEUE',enqueue=>exec dbms_aqadm.start_queue(queue_name => 'DEV_SOAINFRA.IP_OUT_QUEUE',enqueue=>exec dbms_aqadm.start_queue(queue_name => 'DEV_SOAINFRA.IP_IN_QUEUE',enqueue=>

Page 51: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 51/54

Miscellaneous

You should audit the Logging settings for the domain and the servers to make sure log rotation isconfigured. Notice that .out log files cannot be rotated by WebLogic. The are only rotated when the servers arerestarted. On Windows this is a problem on Linux not so much 

But make sure you developers know that:

You should configure “Configuration Archiving” for the domain. Domain => Configuration => General=> Advanced. Set “Configuration Archive Enabled” and “Archive Configuration Count”.

When you change the configuration the old configuration files will automatically be save so you canrevert to an old version if you get in trouble.

Securing your installation

Have a look at Oracle Fusion Middleware Securing a Production Environment for Oracle WebLogicServer 11g

It is of cause only the top of the iceberg but is a start.

Configure OCM

If your servers has access to the Internet OCM will automatically download the latest version. If not youshould download it yourself and install it manually.

Verify that it is working:

Feedback

If you feel that I am missing something or find mistakes please tell me. I always want to learn!

1 System.out.println("This is forbidden! Use Java Logging or Log4j");

12345

. /u01/app/oracle/domains/soa/bin/setDomainEnv.shexport ORACLE_HOME=/u01/app/oracle/product/soa/utilsexport JAVA_HOME=/u01/app/oracle/product/java_currentcd $ORACLE_HOME/ccr/bin./setupCCR ‐s 12345678 [email protected] DK

123456789

cd $ORACLE_HOME/ccr/bin./emCCR start./emCCR status./emCCR ‐register test./emCCR ‐verbose test./emCCR register./emCCR collect./emCCR upload./emCCR disable_target

Page 52: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 52/54

Follow @theheatDK

Google+

{ 6 comments… read them below or add one }

 Chandra October 9, 2013 at 14:54

Peter,

Thanks for the nice article..I see you have set two linux kernel parameters(net.core.rmem_max andnet.core.wmem_max)..I am not seeing them in the installation guide..Did oracle recommendedthem?

Thanks/Chandra

 Peter Lorenzen October 13, 2013 at 17:09

Hi Chandra, That is a very good question and it took me a while to remember why   It is only when you use Coherence you need to set thous. See http://theheat.dk/blog/?p=1140#warnings and The Error “java.net.SocketException: No Buffer Space Available” isReported when Starting Coherence (Doc ID 1150113.1). I will write a comment in the post about this. Thanks Regards Peter

 jyothi October 25, 2013 at 06:05

Very nice blog. Very explanatory and covered many critical topics which we usually forget to do.thank you for your great effort. thanks.

 Ravi Kishore August 18, 2014 at 10:09

I was searching for an article into soa installation and ended up here. You done a great job byexplaining each and every step clearly. Thanks for the information Peter. About to install SOA onOracle Linux 6.4 version in VMware. Will post comments if i miss anything. Once again thanksdude.

 vinodh October 8, 2014 at 10:29

Hi Team,

Thank you for your great article.

Page 53: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 53/54

i have small doubet. My database team moved the oracle database from one unix to onther unix box. how can i reconfigure SOA servers to access the database in new unix box? Is changing the datasource is enough or do i have to configure all this thing like configuring RCU?

Thanks In advance.

 Peter Lorenzen October 8, 2014 at 13:03

Yes all you need to do is to change the connection pool in the data sources. Regards Peter

Leave a Comment

Name *

E­mail *

Website

Submit

Previous post: Create a CA, issue server/client certificates and test them via Apache

Next post: Installing the Oracle OSB on Red Hat 6

Archive

Archive  Select Month

Categories

Categories Select Category

Follow Me

Twitter 

LinkedIn 

Page 54: Installing the Oracle SOA Suite on Red Hat 6

1/19/2016 Installing the Oracle SOA Suite on Red Hat 6

http://theheat.dk/blog/?p=1052 54/54

Facebook 

GoodReads 

Last.fm 

 


Recommended