Friday, July 18, 2014

Oracle SOA 12c (12.1.3) silent mode installation on Linux

Step-by-step guide to installing Oracle SOA 12c (12.1.3) in silent mode for Linux, though the same can be used Windows.

Download software

  1. Download fmw_12.1.3.0.0_soaqs_Disk1_1of1.zip bundle from http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html
  2. Download jdk-8u11-linux-x64.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/index.html

Preparation

Setting up user accounts and group.
[root@sandpit ~]# adduser oracle
[root@sandpit ~]# passwd oracle
[root@sandpit ~]# groupadd oinstall 
[root@sandpit ~]# usermod -a -G oinstall oracle

 Create the oraInst.loc file.
[root@sandpit ~]$ cat /etc/oraInst.loc
inst_group=oinstall
inventory_loc=/home/oracle/oraInventory


 Logon as oracle user and unpack the software.
[oracle@sandpit ~]$ su - oracle 
[oracle@sandpit ~]$ tar -xzvf jdk-8u11-linux-x64.tar.gz
[oracle@sandpit ~]$ /home/oracle/jdk1.8.0_11/bin/java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

[oracle@sandpit ~]$ unzip fmw_12.1.3.0.0_soaqs_Disk1_1of1.zip
Archive:  fmw_12.1.3.0.0_soaqs_Disk1_1of1.zip
  inflating: fmw_12.1.3.0.0_soa_quickstart.jar 
  inflating: fmw_12.1.3.0.0_soa_quickstart2.jar


Prepare the Response file, call it say custom_installtype_soa12.1.3.rsp.
[oracle@sandpit ~]$ cat /home/oracle/custom_installtype_soa12.1.3.rsp

[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/fmw12_1_3_0


#Write the complete path to a valid Middleware Home.

MIDDLEWARE_HOME=/home/oracle/fmw12_1_3_0

#Set this to true if typical installation must be done. If this is set to true then variable "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

[SYSTEM]

[APPLICATIONS]

[RELATIONSHIPS]

Dry run test

First run for prerequisite checks.
[oracle@sandpit ~]$ /home/oracle/jdk1.8.0_11/bin/java -jar fmw_12.1.3.0.0_soa_quickstart.jar -silent -responseFile /home/oracle/custom_installtype_soa12.1.3.rsp
Launcher log file is /tmp/OraInstall2014-07-18_11-35-27AM/launcher2014-07-18_11-35-27AM.log.
Extracting files......................................................................
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.999 MHz    Passed
Checking swap space: must be greater than 512 MBChecking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required) 

Checking temp space: must be greater than 300 MB.   Actual 24743 MB    Passed

Some system prerequisite checks failed.
You must fulfill these requirements before continuing with the installation.

Exiting Oracle Universal Installer.
Log(s) for this session can be found in /tmp/OraInstall2014-07-18_11-35-27AM/launcher2014-07-18_11-35-27AM.log.


If the you the prerequisite failed at swap space error, run these additional commands.
[oracle@sandpit ~]$ su - root
[root@sandpit ~]# dd if=/dev/zero of=/swapfile bs=1M count=520
520+0 records in
520+0 records out
545259520 bytes (545 MB) copied, 0.880694 seconds, 619 MB/s
[root@sandpit ~]# mkswap /swapfile
Setting up swapspace version 1, size = 545255 kB
[root@sandpit ~]# swapon /swapfile


Run silent installation

[oracle@sandpit ~]$ /home/oracle/jdk1.8.0_11/bin/java -jar fmw_12.1.3.0.0_soa_quickstart.jar -silent -responseFile /home/oracle/custom_installtype_soa12.1.3.rsp
Launcher log file is /tmp/OraInstall2014-07-18_12-10-26PM/launcher2014-07-18_12-10-26PM.log.
Extracting files.........................................................
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.999 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 532472 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 17987 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2014-07-18_12-10-26PM
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Log: /tmp/OraInstall2014-07-18_12-10-26PM/install2014-07-18_12-10-26PM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Starting check : CertifiedVersions
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11
Actual Result: enterprise-5
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.8.0_11
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Validations are enabled for this session.
Verifying data......
Copying Files...
You can find the log of this install session at:
 /tmp/OraInstall2014-07-18_12-10-26PM/install2014-07-18_12-10-26PM.log
-----------20%----------40%----------60%----------80%--------100%

The installation of Oracle Fusion Middleware 12c SOA Quick Start 12.1.3.0.0 completed successfully.
Logs successfully copied to /home/oracle/oraInventory/logs.


That's all, enjoy!

Next step, creating the domain topology.