Tuesday, August 9, 2011

Step by step Oracle SOA suite 11g installation on RHEL 5.3

Hi,
Below are the lists of steps I have followed for installing Oracle SOA Suite 11g,I have not put screenshots but tried to put explain without screenshots.

Oracle SOA Suite 11g Installation plan:


Downloads:
1)DATABASE :11.2.0.1.0(x86 32-bit LINUX):
2)WEBLOGICSERVER
3)RCU(REPOSITORY CREATION UTILITY
4) SOA
5) JDEVELOPER
6)SOA EXTENSION

Preparatory step:

[oracle@fmwtestnode /]$ mkdir Web_logic_soft
[oracle@fmwtestnode /]$ su
Password:
[root@fmwtestnode /]# mkdir Oracle11gR2soft
[root@fmwtestnode /]# chown oracle:oinstall /Oracle11gR2soft/
[root@fmwtestnode /]# chmod -R 755 /Oracle11gR2soft/
[root@fmwtestnode /]# mkdir Web_logic_soft
[root@fmwtestnode /]# mkdir Jdev_soft
[root@fmwtestnode /]# mkdir SOA_SUITE_11g_soft
[root@fmwtestnode /]# chown -R oracle:oinstall /Web_logic_soft/
[root@fmwtestnode /]# mkdir Reposit_create_soft
[root@fmwtestnode /]# chown -R oracle:oinstall /Jdev_soft/
[root@fmwtestnode /]# chown -R oracle:oinstall /SOA_SUITE_11g_soft/
[root@fmwtestnode /]# chown -R oracle:oinstall Reposit_create_soft/
[root@fmwtestnode /]# chmod -R 755 /Oracle10gsoft/
[root@fmwtestnode /]# chmod -R 755 /Web_logic_soft/
[root@fmwtestnode /]# chmod -R 755 /Reposit_create_soft/
[root@fmwtestnode /]# chmod -R 755 /Jdev_soft/
[root@fmwtestnode /]# chmod -R 755 /SOA_SUITE_11g_soft/


Check your browser:
Enterprise Manager requires Firefox 3, Safari 4+ or IE 7+.
BAM requires IE 7 or 8


Check your JDK:
The WebLogic server installation exe is packaged with a JDK. The JDeveloper exe also comes with a JDK.
If you are going to install WebLogic server and JDeveloper on the same machine,we use the JDK from WebLogic for JDeveloper too. However, if you are going to install on separate machines, you need to have Oracle Sun Java 1.6 update 21+ JDK for JDeveloper. You can get it from the Oracle Sun downloads page. Be sure to get the JDK not the JRE: http://java.sun.com/products/archive/


Installations:

1)Install the database:
Check my previous post for Oracle Database 11g rel2 installation on linux.

2) Install WebLogic server:

Weblogic pre-installation steps:
Check the Certification matrix to check the supported Weblogic server for
Various Operating system.For our operating system RHEL 5.3 the supported
Weblogic server software is 10.3.

SQL> select name from v$database;

NAME
---------
FMWDB

SQL> select status from v$instance;

STATUS
------------
OPEN
SQL> show parameter processes
SQL> alter system set processes=1000 scope=spfile;
SQL> shutdown immediate
SQL> startup
SQL> show parameter processes

[root@fmwtestnode /]# mkdir -p Middleware/SOASuite11gR1
[root@fmwtestnode /]# chown oracle:oinstall /Middleware/SOASuite11gR1/
[root@fmwtestnode /]# chmod -R 755 /Middleware/SOASuite11gR1/

We have to create Middleware home directory for installation FUSION MIDDLEWARE COMPONENTS in this particular by granting the ownership to the ‘oracle’ user with all the required privileges


1)DATABASE
2)WEBLOGIC SERVER
3)RCU
4)SOA
5)JDeveloper
6)SOA Extension

Once your database is ready, we can install the next step, the WebLogic server.
When you are ready to install, complete the following:

I granted all the ownership to the oracle user and permission where the executable of weblogic software is present.I launched the installation on vm server as follows:


Here ,I have entered the Fusion Middlware Home path which has all the ownership and permission so that ‘oracle’ user can install weblogic server here.

Choose 'Graphical' method to install Weblogic server to have pictorial representation:

Press ‘Enter’ and proceed……..

Press ‘Enter’……..

Make uninformed to ‘yes’ as shown below in screenshot and proceed:

Select Typical, click Next

Press ‘Enter’ and proceed……..

Here,As we see above Along with Weblogic platform 10.3.5.0,JDKs and other JDBC ,weblogic server plugins and other products get installed…

Press ‘Enter’ proceed…….

That’s it.Weblogic installation is proceeding as see in the above screen shot…………..

First JDK files are installed,OCM,domains…….


As we see from the screenshot Weblogic installation Completed successfully….
Press ‘Enter’ and it is done……….

Once the Weblogic installation is done we need to Configure Domain,And we have to make sure weblogic server is up & running.

What is a weblogic server domain?>
A domain is the basic administration unit for Weblogic Server instances. A domain consists of an Administration Server and Managed application servers and resources. The main configuration file in the domain is config.xml, which is in the domain directory(where you install your weblogic server domain) under config directory.
We can use Administration Server to do the configuration tasks. A web based console comes with the domain installation, where an administrator can login and perform the administration tasks.
Weblogic domain can have multiple servers in a cluster or multiple clusters. A domain can have an Administration Server which can act as an Administration Server and managed server. This architecture is mostly used by the developers in developing and deploying applications in there local environments.
Production and Development Modes

Weblogic domain can be configured in two different modes:
1.Development Mode
2.Production Mode

1. Development Mode: In the development mode of configuration,Weblogic server domain has minimum security and is used for the development of application purposes. In this mode, you can also auto-deploy the application.
2. Productions Mode: This is the final mode of the domain configuration, where you deploy the application which will be directly used by the customers. This is a very important environment, with maximum security.
Now, as we got a general idea on what a weblogic server domain is, we will now configure the weblogic server domain on Linux operating system can be done as follows:

Step 1: Go to /Middleware/SOASuite11gR1/wlserver_10.3/common/bin and look for file name "config.sh".


[oracle@fmwtestnode bin]$ cd /Middleware/SOASuite11gR1/wlserver_10.3/common/bin
[oracle@fmwtestnode bin]$ ls -altr
total 128
-rwxr-x--- 1 oracle oinstall 13740 Jul 28 11:10 wlsifconfig.sh
drwxr-x--- 11 oracle oinstall 4096 Jul 28 11:10 ..
-rwxr-x--- 1 oracle oinstall 761 Jul 28 11:11 wlst.sh
-rwxr-x--- 1 oracle oinstall 31126 Jul 28 11:11 wlscontrol.sh
-rwxr-x--- 1 oracle oinstall 3298 Jul 28 11:11 upgrade.sh
-rwxr-x--- 1 oracle oinstall 2087 Jul 28 11:11 unpack.sh
-rwxr-x--- 1 oracle oinstall 1448 Jul 28 11:11 stopDerby.sh
-rwxr-x--- 1 oracle oinstall 4082 Jul 28 11:11 startDerby.sh
-rwxr-x--- 1 oracle oinstall 2579 Jul 28 11:11 pack.sh
-rwxr-x--- 1 oracle oinstall 2274 Jul 28 11:11 config.sh
-rwxr-x--- 1 oracle oinstall 2122 Jul 28 11:11 config_builder.sh
-rwxr-x--- 1 oracle oinstall 22511 Jul 28 11:11 commEnv.sh
-rwxr-x--- 1 oracle oinstall 2746 Jul 28 11:11 setPatchEnv.sh
-rwxr-x--- 1 oracle oinstall 4156 Jul 28 16:36 startManagedWebLogic.sh
drwxr-xr-x 3 oracle oinstall 4096 Jul 28 16:36 servers

Step 2: Run the 'config.sh' file for the domain configuration.
‘Config.sh’ will do the Domain Configure.There are 3 ways you can do this configuration
1)Graphical
2)Console
3)Silent
We are using ‘Graphical’ method as it display all the information to our screen…
For doing this we need to set the ‘DISPLAY’ as follows:
Check ‘xclock’ command is working and showing the current time.If it shows than we just need to export ‘DISPLAY’ environment Variable.

$xclock
$ export DISPLAY
$./config.sh

Proceed with the configuration,supply 'weblogic' user with credential.Choose
Development or Production depending on our requirement and obtain the
final URL.After completion of Domain configuration,we will obtain:

Domain Location:/Middleware/SOASuite11gR1/user_projects/domain/base_domain
Admin Server URL:http://fmwtestnode.apac.xyz.com:7001/console


3)Install database schema using RCU (REPOSITORY CREATING UTILITY)

Useful pre-requistics steps:

[oracle@fmwtestnode admin]$ hostname
fmwtestnode.apac.bosch.com
[oracle@fmwtestnode admin]$ tnsping fmwdb

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:23

Copyright (c) 1997, 2009, Oracle. All rights reserved.

Used parameter files:
/u01/app//product/11.2.0/dbhome_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fmwdb.apac.bosch.com)))
TNS-12541: TNS:no listener
[oracle@fmwtestnode admin]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:30

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /u01/app//product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app//product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/diag/tnslsnr/fmwtestnode/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fmwtestnode.apac.bosch.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 29-JUL-2011 18:26:32
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app//product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/diag/tnslsnr/fmwtestnode/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fmwtestnode.apac.bosch.com)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@fmwtestnode admin]$ tnsping fmwdb

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:40

Copyright (c) 1997, 2009, Oracle. All rights reserved.

Used parameter files:
/u01/app//product/11.2.0/dbhome_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fmwdb.apac.bosch.com)))
OK (30 msec)

2) Please do below step in Database side,If you are installing all the Oracle Fusion Middleware products,For SOA installation alone setting open_cursors=300,but as we are installating all the Oracle Fusion middleware products we need to set open_cursors=1000.

Conn “/as sysdba” in Database.

SQL> alter system set open_cursors=1000;

System altered.

SQL> show parameter open_cursors

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
open_cursors integer 1000

Now it is time to set up the database schema.
Note: If we have installed SOA 11g before and you are not upgrading, you must drop your existing database schema before reinstalling or create a second schema for this installation. We cannot reuse an existing schema.

Configure Schema using RCU
Now create the new schema.

Give the ownership and permission to ‘oracle’ user to run the repository creation utility.

[root@fmwtestnode /]# chown oracle:oinstall /Reposit_create_soft/
[root@fmwtestnode /]# chmod -R 755 /Reposit_create_soft/

[root@fmwtestnode Reposit_create_soft]# su - oracle
[oracle@fmwtestnode ~]$ pwd
/home/oracle
[oracle@fmwtestnode ~]$ cd /Reposit_create_soft/
[oracle@fmwtestnode Reposit_create_soft]$ ls -altr
total 389240
-rwxr-xr-x 1 root root 398173821 Jul 26 18:53 ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip
drwxr-xr-x 2 oracle oinstall 4096 Jul 27 10:36 .
drwxr-xr-x 37 root root 4096 Jul 28 10:26 ..
[oracle@fmwtestnode Reposit_create_soft]$ unzip ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip

[oracle@fmwtestnode /]$ cd Reposit_create_soft/
[oracle@fmwtestnode Reposit_create_soft]$ ls -altr
total 389244
drwxr-xr-x 32 oracle oinstall 4096 Apr 26 05:04 rcuHome
-rwxr-xr-x 1 root root 398173821 Jul 26 18:53 ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip
drwxr-xr-x 37 root root 4096 Jul 28 10:26 ..
drwxr-xr-x 3 oracle oinstall 4096 Jul 28 11:41 .
[oracle@fmwtestnode Reposit_create_soft]$ cd rcuHome/
[oracle@fmwtestnode rcuHome]$ ls
assistants common inventory jdk lib nls oraInst.loc plsql rcu relnotes sqlplus xdk
BC4J css javavm jlib modules oracleRoot.sh owm portal rdbms root.sh srvm
bin instantclient jdbc ldap network oracore perl precomp readme.htm sqlj util
[oracle@fmwtestnode rcuHome]$ cd bin


Go to path ‘/Reposit_create_soft_/rcuHome/bin’ as seen in the screenshot.

$ export Display

On Linux(UNIX):
./rcu

Give all the permission to the ‘rcu’ file to launch the installation:

Note: During installation, give the details of the Oracle database created in step 2, select all the SOA schemas to install and select default settings for all other options during the installtion.

Login as ‘root’ user:
#xhost +
To set display correctly and for avoiding java related errors:


$./rcu =>For installing repository Creation Utility.



On the welcome screen, click Next
Select Create

Click Next
Enter the database information
Before that:
[oracle@fmwtestnode admin]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 29 18:19:44 2011

Copyright (c) 1982, 2009, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter user sys identified by fmwsysdba;

User altered.


Enter the information as above.

Click Next

When complete, click OK. The utility moves to the next page – with a slight delay, just wait for it.

On the Select Components screen, enter DEV in the field for creating a new prefix.
Select the component SOA,DATA INTEGRATOR and BPM Infrastructure and all the components for our Oracle Fusion Middleware setup..
Dependent schemas are selected automatically.


Click Next
The pre-requisites for this step are checked.


Please do below step in Database side and click ok:

Conn “/as sysdba” in Database.

SQL> alter system set open_cursors=1000;

System altered.

SQL> show parameter open_cursors

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
open_cursors integer 1000

When completed, click OK



Select the radio button to Use the same password for all schemas.
Enter a schema password. The password welcome123 is assumed in this document, but we should choose your own secure password or a different one for each schema and be sure to record your passwords as you will need them later


Click Next

Accepting the defaults, click Next


When the pre-requisites for this step are completed, click OK

Click Create to create the tables. This takes about 60 minutes,as we are creating the repository
For all the fusion middleware products. ‘Portal’ repository creation take more than 30 minutes.

I took screenshots of this step:


COMPLETION SUMMARY :

When completed, click Close
Our Repository Creation for All fusion Middleware product is Completed…

4)Install SOA Suite 11g:


1. Download the software from here:
http://download.oracle.com/otn/nt/middleware/11g/ofm_soa_generic_11.1.1.5.0_disk1_1of1.zip
Also present in our shard drive:
\\bmh2fs01\bmhapp01_projects\Ebs1_Vss\DB_services\FMW\FMW_SOFTWARES\ORACLE_SOA_SUITE_INSTALL_SOFT

Once the schema has been created, you are ready to install the SOA server.
Login as ‘root’ user:

#xserver +
#xclock

Perform the following:
unzip ofm_soa_generic_11.1.1.5.0_disk1_1of2.zip

[root@fmwtestnode /]# cd SOA_SUITE_11g_soft/
[root@fmwtestnode SOA_SUITE_11g_soft]# unzip ofm_soa_generic_11.1.1.5.0_disk1_2of2.zip
[root@fmwtestnode SOA_SUITE_11g_soft]# ls
Disk1 Disk2 Disk3 Disk4 Disk5

Give 'Oracle' user ownership and permission to install Oracle SOA Suite software.
root@fmwtestnode /]#chown Oracle:ointall /SOA_SUITE_11g_soft/Disk*
Login as ‘oracle’ user and do the Oracle SOA software installation:

[oracle@fmwtestnode Disk1]# cd /SOA_SUITE_11g_soft/Disk1/
[oracle@fmwtestnode Disk1]# ls -altr
total 108
-rwxrwxr-x 1 root root 73728 Aug 21 2009 setup.exe
-rwxrwxr-x 1 root root 11460 Oct 28 2009 runInstaller
drwxrwxr-x 10 root root 4096 Nov 4 2009 install
drwxr-xr-x 5 root root 4096 Nov 4 2009 .
drwxrwxr-x 9 root root 4096 Nov 4 2009 doc
drwxr-xr-x 13 root root 4096 Nov 4 2009 stage
drwxr-xr-x 5 oracle oinstall 4096 Aug 1 13:59 ..

Login as ‘root’ user:
#xhost +
To set display correctly and for avoiding java related errors:

$./runInstaller -jreLoc /Middleware/SOASuite11gR1/jdk160_24


When the install wizard welcome screen comes up, click Next

Now ,All Prerequistics checks are passed…With no errors……..

Click Next


On the Specify Installation Location screen, select the Middleware home:
/Middleware/SOASuite11gR1/
Accept the default Oracle home: Oracle_SOA1

Click Next

I created one response file to see the installation flow,Before going for install.

Click Install

Thats it SOA Installation started Successfully,

click Next…
Very much happy to see below screen.Our Oracle SOA suite 11g installation finished successfully.

Click Finish………


Create the SOA domain:


1. Perform the following:
$cd /Middleware/SOASuite11gR1/Oracle_SOA1/common/bin
$./config.sh


Choose Extend to existing Weblogic domain
Click 'Next'



Select Generate a domain configured automatically to support the following products:
Check all to select all the products…
Domains

Click 'Next'


Name:weblogic
Pass:weblogic123


Click ‘Next’


Select the JRocket SDK as it will yield beter performance for Oracle SOA and leave Development Mode checked

Check 'Oracle SOA Suite - 11.1.5.0 [Oracle_SOA1]'
Check 'Oracle Enterprise Manager - 11.1.1.0 [oracle_common]'
Check 'Oracle Business Activity Monitoring - 11.1.5.0 [Oracle_SOA1]'
Click 'Next'
Click 'Next'
User password: welcome123
Confirm user password: welcome123
Click 'Next'
Click 'Next'
Check 'BAM Schema', 'SOA Infrastructure', 'User Messaging Service', 'OWSM MDS Schema', 'SOA MDS Schema'
DBMS/Service: orcl.ipnweb.com
Host Name: oradev.ipnweb.com
Schema Password: welcome1
Click 'Next'
Click 'Next'
Click 'Next'

Click 'Create'

If all are successful, click Next, otherwise click Previous and correct any errors.

Now you must choose whether to have your server run as a managed server or in a single server configuration.
As we have chosen the developer’s configuration, there will be one admin server and one managed server for BAM.
Don’t check any of the boxes here and click Next, unless you want to make changes to the default configuration

Click Next



This is the summary page for the Configuration. Click Extend to extend to the domain.
Wait for the create to finish – takes just a minute

Check the box to start the admin server and Click Done.

Add the machine entry:
We have to add the host entry in windows 'hosts' file.

Internet explorer settings:
Go to Tools=>Internet Options=>Connections=>LAN Settings and Uncheck Use automatic configuration script =>click ok =>click ok

Now access the Admin Server URL:

Admin Server URL:
http://fmwtestnode.apac.abc.com:7001

Note:We have to use compatible version of Oracle Repository creation utility and Oracle SOA i.e If rcu is 11.1.1.5.0 than use SOA also with the same version
11.1.1.5.0

Happy Oracle SOA learning...

Best regards,

Rafi.

5 comments:

  1. Hi Rafi,

    The blog is excellent and awesome.
    Its really helpful. I assume the steps are
    followed for the latest Oracle SOA Suite11gR1(11.1.1.5.0)on Linux 64 bit vm machine.

    Thanks
    Shahshidhar

    ReplyDelete
  2. Hi Shashi,
    Thanks for the compliments.Yes your assumption is correct.This steps
    are implemented on RHEL 5.4(64-bit).I installed Oracle SOA suite 11.1.1.5.0.



    Best regards,

    Rafi.

    ReplyDelete
  3. Hi Rafi,

    I will appreciate if you could help me out in where do we need to set language and AL32UTF8 as environment for linux
    before proceeding Oracle SOA Suite11gR1 Installation

    I assume it is with /etc/profile but not sure,
    can you give the path information and variable information

    Thanks
    Shashi

    ReplyDelete
  4. Excellent information with unique content and it is very useful to know about the information based on blogs.this is valuable information for learners.thanks
    Online Data Scientist

    ReplyDelete
  5. I have read your blog its very attractive and impressive. I like it your blog.

    Oracle SOA Online Training Hyderabad

    ReplyDelete