Mar 13, 2012

How to install Oracle Service Bus 11.1.1.5 with silent option on Linux Server

How are you today?
Are you OK? -- I hope so
Are you Happy? -- I hope so

Today, I will note another tips for installing an Oracle Fusion Middleware product - that is Oracle Service Bus. Graphical setup is complicated for me, so I will choose silent install with response file method for this product. Now, let's get to work!


Firstly, you have to installed JDK and Oracle WebLogic Server that compatible to the version of this OSB. I think you have to do that step by yourself. If you have any issue for that task, please tell me, I will help you.

Secondly, you have to prepare your Linux system that matches some conditions:
- OS version: One of enterprise-5.4,enterprise-4,enterprise-5,redhat-5.4,redhat-4,redhat-5,SuSE-10,SuSE-11
- install prerequisite package, please note the version, your installed packages have to be equal or higher than required version:
+ gcc-4.1.0-28.4
+ gcc-c++-4.1.0-28.4
+ setarch-1.6-1
+ sysstat-5.0.5-1
+ libstdc++-4.1.0-28.4
+ libstdc++-devel-4.1.0-28.4
+ compat-libstdc++-296-2.96-132.7.2
+ compat-db-4.1.25-9
+ control-center-2.8.0-12
+ glibc-common-2.3.4-2.9
+ binutils-2.16.91.0.5-23.4
+ make-3.80-202.2


- create Linux group and user for installer, for example: oinstall (groupadd oinstall) and oracle (useradd oracle)
- create oraInst.loc file. You can done that mission by your hand or executing the script stage/Response/createCentralInventory.sh with root permission
[oracle@vm1 Disk1]$ mkdir ~/oraInventory
[oracle@vm1 Disk1]$ su
Password:
[root@vm1 Disk1]# sh stage/Response/createCentralInventory.sh /home/oracle/oraInventory/ oinstall
Setting the inventory to /home/oracle/oraInventory/
Setting the group name to oinstall
Creating inventory pointer file in /etc directory
Creating the Oracle inventory pointer file (/etc/oraInst.loc)
Changing permissions of /home/oracle/oraInventory/ to 770.
Changing groupname of /home/oracle/oraInventory/ to oinstall.
The execution of the script is complete
[root@vm1 Disk1]#


Thirdly, you have to prepare a response file for installation options. It's recommend to copy and edit sample files that located in stage/Response directory. In this post, I decide to use custom installation, so I will edit that file to something like this:

[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#Set this to true if you wish to specify a directory where latest updates are downloaded. This option would use the software updates from the specified directory
SPECIFY_DOWNLOAD_LOCATION=false

#
SKIP_SOFTWARE_UPDATES=true

#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true
SOFTWARE_UPDATES_DOWNLOAD_LOCATION=

#Write the name of the Oracle Home directory. The Oracle Home directory name may only contain alphanumeric , hyphen (-) , dot (.) and underscore (_) characters, and it must begin with an alphanumeric character.
ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_OSB1

#Write the complete path to a valid Middleware Home.
MIDDLEWARE_HOME=/home/oracle/Oracle/Middleware

#Set this to true if typical installation must be done. If this is set to true then wariable "CUSTOM TYPE" must be set to false as the variables are mutually exclusive
TYPICAL TYPE=false

#Set this to true if custom installation must be done, all other required variables need to be provided. If this is set to true then variable "TYPICAL TYPE" must be set to false as the variables are mutually exclusive.
CUSTOM TYPE=true

#Set this to true if component Oracle Service Bus Examples must be installed. This input will be needed only in the case of custom installation
Oracle Service Bus Examples=false

#Set this to true if component Oracle Service Bus IDE must be installed. This input will be needed only in the case of custom installation
Oracle Service Bus IDE=false

#Give the complete path to a valid WebLogic Server Home for the corresponding Middleware Home entered.
WL_HOME=/home/oracle/Oracle/Middleware/wlserver_10.3

#Give the complete path to a valid OEPE Home for the corresponding Middleware Home entered. This input will be needed in both typical and custom installations. But in case of custom installation, Oracle Service Bus IDE must be set to true.
OEPE_HOME=

[SYSTEM]
[APPLICATIONS]
[RELATIONSHIPS]


Finally, just execute installation script to invoke installation wizard on silent mode and pass response file to it. While installation running, you have to provide location of JDK home. Look at my installation console screen

[oracle@vm1 Disk1]$ ./runInstaller -silent -responseFile /home/oracle/custom_installtype.rsp
Starting Oracle Universal Installer...

Checking if CPU speed is above 300 MHz. Actual 2660 MHz Passed
Checking Temp space: must be greater than 150 MB. Actual 1661 MB Passed
Checking swap space: must be greater than 512 MB. Actual 2996 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-03-13_02-22-14PM. Please wait ...
Please specify JRE/JDK location ( Ex. /home/jre ), /bin/java should exist :/home/oracle/Oracle/Middleware/jrockit_160_24_D1.1.2-4
[oracle@vm1 Disk1]$ [WARN ][jrockit] MaxPermSize=512m ignored: Not a valid option for JRockit
Log: /home/oracle/oraInventory//logs/install2012-03-13_02-22-14PM.log
Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Expected result: One of enterprise-5.4,enterprise-4,enterprise-5,redhat-5.4,redhat-4,redhat-5,SuSE-10,SuSE-11
Actual Result: redhat-5.4
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Checking for gcc-4.1.0-28.4; found gcc-4.1.2-51.el5-i386. Passed
Checking for gcc-c++-4.1.0-28.4; found gcc-c++-4.1.2-51.el5-i386. Passed
Checking for setarch-1.6-1; found setarch-2.0-1.1-i386. Passed
Checking for sysstat-5.0.5-1; found sysstat-7.0.2-11.el5-i386. Passed
Checking for libstdc++-4.1.0-28.4; found libstdc++-4.1.2-51.el5-i386. Passed
Checking for libstdc++-devel-4.1.0-28.4; found libstdc++-devel-4.1.2-51.el5-i386. Passed
Checking for compat-libstdc++-296-2.96-132.7.2; Not found. Failed <<<<
Checking for compat-db-4.1.25-9; found compat-db-4.2.52-5.1-i386. Passed
Checking for control-center-2.8.0-12; Not found. Failed <<<<
Checking for glibc-common-2.3.4-2.9; found glibc-common-2.5-65.el5_7.3-i386. Passed
Checking for binutils-2.16.91.0.5-23.4; found binutils-2.17.50.0.6-14.el5-i386. Passed
Checking for make-3.80-202.2; found make-1:3.81-3.el5-i386. Passed
Check complete. The overall result of this check is: Failed <<<<

Problem: Some recommended packages are missing (see above).
Recommendation: You may actually have installed packages which have obsoleted these, in which case you can successfully continue with the install. If you have not, it is recommended that you do not continue. Refer to the product release notes to find out how to get the missing packages and update the system.
Warning: Check:Packages failed.
Checking for VERSION=2.6.18; found VERSION=2.6.18-274.el5. Passed
Checking for hardnofiles=4096; found hardnofiles=65536. Passed
Checking for softnofiles=4096; found softnofiles=65536. Passed
Check complete. The overall result of this check is: Passed
Kernel Check: Success.
Expected result: ATLEAST=2.5-12
Actual Result: 2.5-65.el5_7.3
Check complete. The overall result of this check is: Passed
GLIBC Check: Success.
Expected result: 1024MB
Actual Result: 2024MB
Check complete. The overall result of this check is: Passed
TotalMemory Check: Success.
Verifying data......
Copying Files...
-----------20%----------40%----------60%----------80%--------100%

The installation of Oracle AS Common Toplevel Component, Oracle Service Bus completed successfully.

[oracle@vm1 Disk1]$


Notice that on this screen, I missed some required packages, I can install it later. After all, you can have already got a OSB environment. Next step to feeling is create OSB domain and start it.

Have fun.
DoubtMan

No comments:

Post a Comment