Tuesday, August 18, 2015

SOA 11.1.1.7.0 Silent mode installation - without GUI

This post is continue series of learning SOA 11g Suite installation in non-GUI platform.
We have completed the following:

  1. Install and Run RCU on Vagrant Ubuntu Oracle XE [Done!]
  2. Installation of JDK (JRockit) on Vagrant Ubuntu [Done!]
  3. Install WebLogic 10.3.6.0 on Vagrant Ubuntu [Done!]
  4. Install Oracle SOA Suite 11g on Vagrant Ubuntu [current post]
  5. Configure SOA Domain [Next Post]

Prerequisites for SOA 11g installation:



    1. Memory - 4G [above is fine]
    2. Temp space > 150 MB
    3. Swap space > 512 MB
Installation of Oracle SOA Suite 11g
1) Copy the Oracle SOA Suite 11g files into a directory

  • ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip 
  • ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip

2) Create directory called silent and inside of it create a file name it as "oraInst.loc" file

vi oraInst.loc file
inventory_loc=/home/vagrant/ora
Inventoryinst_group=vagrant

Lets create a reusable shell script, you might suggest more options to give better performing automation script.

#!/bin/bash
# Description   :       This script will take an argument of ofm_ soa files containing directory
# Then these zip files extracted to /tmp path
# copies sampleResponse_wls.rsp file update the ORACLE_HOME, MIDDLEWARE_HOME
# Display the response file after update
# runInstaller executed in silent mode
# Author        :       Pavan Devarakonda
# Filename      :       soa_install.sh
# Date          :       18/08/2015

# silent mode installation of SOA Suite 11g
if [ "$#" -ne 1 ]; then
    echo "Illegal number of parameters"
    exit 1
fi
INST_PATH=$1
TMP_DIR=/tmp
RSPFILE=/home/vagrant/silent/soasuite.rsp
echo "Extracting 1..."
unzip $INST_PATH//ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip -d $TMP_DIR
echo "Extracting 2..."
unzip $INST_PATH//ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip -d $TMP_DIR

if [ $? -eq 0 ]
then
        echo "Unzip successful"

        cp $TMP_DIR/Disk1/stage/Response/sampleResponse_wls.rsp $RSPFILE
        echo "Response file copied..."
        P=home\/middleware
        R=home\/vagrant\/Oracle\/Middleware

        sed -i "s|$P|$R|g" "$RSPFILE"

        cat $RSPFILE
        $TMP_DIR/Disk1/runInstaller -silent -ignoreSysPrereqs \
        -response $RSPFILE \
        -invPtrLoc /home/vagrant/silent/oraInst.loc \
        -jreLoc $JAVA_HOME \

else
        echo "SOA Installation files Extraction failed"
fi



Execution of the SOA installation script worked good on Vagrant Ubuntu as follows:

vagrant@mydev:~$ ./soa_install.sh /u01/app/software/SOA
Extracting 1...
Archive:  /u01/app/software/SOA//ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip
replace /tmp/readme.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: N
Extracting 2...
Archive:  /u01/app/software/SOA//ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip
replace /tmp/Disk4/stage/Components/oracle.edifecs.xengine_solaris_sparc64/11.1.1.7.0/1/DataFiles/filegroup1.jar? [y]es, [n]o, [A]ll, [N]one, [r]ename: N
Unzip successful
Response file copied...
inside the condition
[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=

#Provide the Oracle Home location. The location has to be the immediate child under the specified Middleware Home location. The Oracle Home directory name may only contain alphanumeric , hyphen (-) , dot (.) and underscore (_) characters, and it must begin with an alphanumeric character. The total length has to be less than or equal to 128 characters. The location has to be an empty directory or a valid SOA Oracle Home.
ORACLE_HOME=/home/vagrant/Oracle/Middleware/Oracle_SOA1

#Provide existing Middleware Home location.
MIDDLEWARE_HOME=/home/vagrant/Oracle/Middleware

#Application Server choices are WLS, WAS
APPSERVER_TYPE=WLS

[SYSTEM]


[APPLICATIONS]


[RELATIONSHIPS]


Starting Oracle Universal Installer...

Checking if CPU speed is above 300 MHz.    Actual 2593 MHz    Passed
Checking Temp space: must be greater than 150 MB.   Actual 69116 MB    Passed
Checking swap space: must be greater than 512 MB.   Actual 765 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-08-18_10-08-31AM. Please wait ...

vagrant@mydev:~$ Log: /home/vagrant/oraInventory/logs/install2015-08-18_10-08-31AM.log
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Verifying data......
Copying Files...
-----------20%----------40%----------60%----------80%--------100%


vagrant@mydev:~$ The installation of Oracle AS Common Toplevel Component, Oracle SOA Suite 11g completed successfully.

You can confirm this by listing the directory where Oracle_SOA1 resides:
vagrant@mydev:~/Oracle/Middleware$ ls -l
total 184
drwxrwxr-x  6 vagrant vagrant   4096 Aug 17 16:22 coherence_3.7
-rw-rw----  1 vagrant vagrant    133 Aug 17 16:21 domain-registry.xml
drwxrwxr-x  2 vagrant vagrant   4096 Aug 17 16:21 logs
drwxrwxr-x  7 vagrant vagrant  36864 Aug 17 16:21 modules
-rw-rw-r--  1 vagrant vagrant    624 Aug 17 16:21 ocm.rsp
drwxr-x--- 32 vagrant vagrant   4096 Aug 18 10:17 oracle_common
drwxr-x--- 28 vagrant vagrant   4096 Aug 18 10:17 Oracle_SOA1
-rw-rw-r--  1 vagrant vagrant 108928 Aug 17 16:21 registry.dat
-rw-rw-r--  1 vagrant vagrant   1959 Aug 17 16:21 registry.xml
drwxrwxr-x  8 vagrant vagrant   4096 Aug 17 16:21 utils
drwxrwxr-x  8 vagrant vagrant   4096 Aug 17 16:22 wlserver_10.3


You might also be interested to have a look into :

  1.  SOA 12.1.3.0 Silent mode installation
  2. SOA 12c 

Oracle JRockit installation on Ubuntu- Vagrant box

Hey friends, Here I'm sharing my new experiment installing JRockit JDK on Ubuntu Precise64 vagrant box.

Prerequisites:
  1. Vagrant installed
  2. Oracle VirtualBox
  3. Precise64 vagrant box
This is a disposable model POC. Precise box don't have GUI/X-window support. This could give a scope to install SOA suite 11.1.1.7.0 version.

vagrant@mydev:/u01/app/software/SOA$ cd
vagrant@mydev:~$ /u01/app/software/SOA/jrockit-jdk1.6.0_37-R28.2.5-4.1.0-linux-x64.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Welcome:
--------

This installer will guide you through the installation of Oracle JRockit JDK R28.2.5 for Java SE 6
with JRMC 4.1. Type "Next" or enter to proceed to the next prompt.  If you want to change data
entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

Enter [Exit][Next]>

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">
Choose Product Installation Directory:
--------------------------------------

    "Product Installation Directory" = [Enter new value or use default
"/home/vagrant/jrockit-jdk1.6.0_37-R28.2.5-4.1.0"]


Enter new Product Installation Directory OR [Exit][Previous][Next]> n

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Optional Components 1

Do you want to install Demos and Samples?

    1 - Yes, install Demos and Samples.
  ->2 - No, do not install.

Enter a number or [Exit][Previous][Next]>

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Optional Components 2

Do you want to install Source Code?

    1 - Yes, install Source Code.
  ->2 - No, do not install.

Enter a number or [Exit][Previous][Next]>

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Installing JDK to /home/vagrant/jrockit-jdk1.6.0_37-R28.2.5-4.1.0...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Installing JRE to /home/vagrant/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Installation Complete

Congratulations! Oracle JRockit JDK R28.2.5 for Java SE 6 with JRMC 4.1 has been successfully installed to /home/vagrant/jrockit-jdk1.6.0_37-R28.2.5-4.1.0.

Press [Enter] to continue or type [Exit]> n

<------- data-blogger-escaped--------="" data-blogger-escaped--="" data-blogger-escaped-4.1="" data-blogger-escaped-6="" data-blogger-escaped-for="" data-blogger-escaped-installer="" data-blogger-escaped-java="" data-blogger-escaped-jdk="" data-blogger-escaped-jrmc="" data-blogger-escaped-jrockit="" data-blogger-escaped-oracle="" data-blogger-escaped-r28.2.5="" data-blogger-escaped-se="" data-blogger-escaped-with="">

Clean up process in progress ...
vagrant@mydev:~$


You need to verify the JDK is accessible or not, fof this update the .bash_profile with the following lines:

clear
echo ''
echo 'Welcome to SOA Suite Administration'
echo '==================================='
echo ''
export JAVA_HOME=/home/vagrant/jrockit-jdk1.6.0_37
export PATH=$PATH:$JAVA_HOME/bin
echo $JAVA_HOME
echo $PATH

Welcome to SOA Suite Administration
===================================

/home/vagrant/jrockit-jdk1.6.0_37
/home/vagrant/jrockit-jdk1.6.0_37/bin
vagrant@mydev:~$ java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Oracle JRockit(R) (build R28.2.5-20-152429-1.6.0_37-20120927-1915-linux-x86_64, compiled mode)

Monday, August 17, 2015

Install WebLogic 10.3.6 on Vagrant Ubuntu

This blog post is continuation of previous posts which are used for preparation of installation of SOA suite 11g  "JRockit installation", "Running RCU on Vagrant Ubuntu Oracle XE".


Before you run the following command download the WebLogic 10.3.6 which is part of the prerequisites of SOA 11.1.1.7.0 installation set.
java -jar /u01/app/software/SOA/wls1036_generic.jar
The execution output is as follows:
vagrant@mydev:~$ ls -l /u01/app/software/SOA/
total 8862690
-rwxrwxrwx 1 vagrant vagrant 1904618055 Apr  5  2013 jdevstudio11117install.jar
-rwxrwxrwx 1 vagrant vagrant  130439896 Apr  6  2013 jrockit-jdk1.6.0_37-R28.2.5-4.1.0-linux-x64.bin
-rwxrwxrwx 1 vagrant vagrant 1195403620 Apr  4  2013 ofm_osb_generic_11.1.1.7.0_disk1_1of1.zip
-rwxrwxrwx 1 vagrant vagrant  520548890 Apr 16 17:49 ofm_rcu_linux_11.1.1.7.0_64_disk1_1of1.zip
-rwxrwxrwx 1 vagrant vagrant  520943520 Mar 23  2014 ofm_rcu_linux_11.1.1.8.0_64_disk1_1of1.zip
-rwxrwxrwx 1 vagrant vagrant 1720182214 Apr 16 06:04 ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip
-rwxrwxrwx 1 vagrant vagrant 1292438758 Apr 16 17:04 ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip
-rwxrwxrwx 1 vagrant vagrant  220670896 Aug 17  2014 oracle-xe_10.2.0.1-1.0_i386.deb
-rwxrwxrwx 1 vagrant vagrant  315891481 Apr  6  2013 oracle-xe-11.2.0-1.0.x86_64.rpm.zip
-rwxrwxrwx 1 vagrant vagrant  185747705 Mar 24  2014 p17641297_111180_Generic.zip
-rwxrwxrwx 1 vagrant vagrant 1068506707 Sep 16  2014 wls1036_generic.jar
vagrant@mydev:~$ java -jar wls1036_generic.jar
Unable to access jarfile wls1036_generic.jar
vagrant@mydev:~$ java -jar /u01/app/software/SOA/wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0.
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

Enter [Exit][Next]> n

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default
"/home/vagrant/Oracle/Middleware"]


Enter new Middleware Home OR [Exit][Previous][Next]> n


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]

Enter index number to select OR [Exit][Previous][Next]> 3


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

Enter [Yes][No]? No

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? Yes


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]

Enter index number to select OR [Exit][Previous][Next]>

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]

Enter index number to select OR [Exit][Previous][Next]>

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional
    |configuration.


Enter index number to select OR [Exit][Previous][Next]>

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/home/vagrant/jrockit-jdk1.6.0_37[x]

   *Estimated size of installation:  690.2 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> n

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/home/vagrant/Oracle/Middleware]

Product Installation Directories:


   1|WebLogic Server: [/home/vagrant/Oracle/Middleware/wlserver_10.3]
   2|Oracle Coherence: [/home/vagrant/Oracle/Middleware/coherence_3.7]




Enter index number to select OR [Exit][Previous][Next]> n





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 690.3 MB




Enter [Exit][Previous][Next]> n
Aug 17, 2015 4:21:08 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Performing String Substitutions...

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Creating Domains...

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete

Congratulations! Installation is complete.

Press [Enter] to continue or type [Exit]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...
vagrant@mydev:~$

Running RCU silent mode from Custom shell script

Repository Creation Utility for FMW in Silent Mode

Recent developments in Oracle FMW 12.2.1 gives more changes in the RCU execution as well. Here I am using the e-delivery SOA Suite which is hosted on top of Infrastructure.
New Learnings -- The component list increased and changed the sequence MDS, OPSS, IAU_APPEND, IAU_VIEWER, IAU, WLS, UCSUMS, SOAINFRA
Assumptions: Create SOAADM user with SYSDBA role. You might use a different ORACLE_HOME installation path. Instead of entering the many passwords in the passwordfile.txt we can use the same password for all schema users which can be done with -useSamePasswordForAllSchemaUsers option.

The Oracle Fusion Middleware Repository Creation Utility in silent mode
For automation or usage in containerization, this would be preferable option.

export ORACLE_HOME=/home/oracle/products/12.2.1/Oracle_Home

clear
export RCU_HOME=$ORACLE_HOME/oracle_common
export RCU_LOG_LOCATION=$RCU_HOME/rcu/log
 
CONNSTR='192.168.33.17:1521:orcl12c'
PASS_INPUT="passwdfile.txt"
 
echo "Running RCU for SOA Suite"
$RCU_HOME/bin/rcu -silent -createRepository -useSamePasswordForAllSchemaUsers true -databaseType ORACLE \
-connectString $CONNSTR \
-dbUser SOAADM-dbRole SYSDBA \
 -schemaPrefix DEV \
 -component MDS \
 -component  OPSS \
 -component IAU_APPEND \
 -component IAU_VIEWER \
 -component  IAU \
 -component  WLS \
 -component  UCSUMS \
 -component SOAINFRA \
 -f < $PASS_INPUT
echo $?

RUNNING REPOSITORY CREATION UTILITY on FMW 12.1.3 in Silent mode



First, connect as sys then create the user for SOA as SOADEMO user. then next step is to grant the privileges - connect, resource (optional), SYSDBA(must have) for SOADEMO database user You need the same as SYS Privileges. You cannot proceed without this in most of the Production environments.

When you run rcu utility, it has two options to execute:
1. Silent mode
2. GUI mode

In both cases, it will ask for DB host, port, sid, SYS username, password. Now this RCU is a big giant sql script(s), that creates Schema, Tablespaces, Users, Tables, Views, Sequences, etc. Hence RCU needs SYS details. you can run RCU from any OS like Windows very simple because it uses GUI when you use remote Linux box then you feel OMG!!  Again for this we have two options using Xwindows running remote machine windows in your system using third party software like hamming bird Exceed or XMing, moboXterm. Another option using -silent option.So in your learning purpose or to quickly test for POC use Windows.

Preparation for running RCU
  • Oracle XE on Vagrant Ubuntu box RAM 1024MB with a hostonly IP
  • FMW RCU zip file with enough diskspace minimum 20GB
Here is my Vagrantfile modifications snippet that suites your RCU basic setup needs for you :

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"
  config.vm.hostname = "oracle.vybhava.com"
  config.vm.synced_folder ".", "/home/vagrant/vagrant-ubuntu-oracle-xe", :mount_options => ["dmode=777","fmode=666"]
  config.vm.network "private_network", ip: "192.168.33.115"
  config.vm.network :forwarded_port, guest: 1521, host: 1521

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id,
                  "--name", "oracle",
                  # Oracle claims to need 512MB of memory available minimum
                  "--memory", "1024",
                  # Enable DNS behind NAT
                  "--natdnshostresolver1", "on"]
  end

After the above snippet remaining code in the Vagrant file let it be the same!
Now execute the vagrant up command to keep running the Oracle XE DB on precise Ubuntu.

F:\workspace-wls\vagrant-ubuntu-oracle-xe>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 1521 => 1521 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /tmp/vagrant-puppet-3/modules-0 => F:/workspace-wls/vagrant-ubuntu-oracle-xe/modules
    default: /tmp/vagrant-puppet-3/manifests => F:/workspace-wls/vagrant-ubuntu-oracle-xe/manifests
    default: /home/vagrant/vagrant-ubuntu-oracle-xe => F:/workspace-wls/vagrant-ubuntu-oracle-xe
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: to force provisioning. Provisioners marked to run always will still run.

All you need here  are : db host, port, sid, SYS username, SYS password. Thats all!

sqlplus sys as sysdba manager -- password
SQL> CREATE USER SOADEMO IDENTIFIED BY welcome1;

User created.

SQL> grant connect, resource to SOADEMO;

Grant succeeded.

SQL> grant SYSDBA to SOADEMO;

Grant succeeded.

SQL> Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Now press Ctrl+D - disconnect from the sqlplus
vagrant@oracle:~$ sqlplus soademo as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sun Aug 16 01:56:50 2015

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

Enter password:

Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL> show user
USER is "SYS"
If we want to use Oracle as a database, then we should update the database parameters once after the installation. Set the SESSION, PROCESSES parameter to >=200 using the following instructions.
show parameter session
show parameter processes
alter system reset sessions scope=spfile sid=’*’;
alter system set processes=200 scope=spfile;
shutdown immediate
startup
show parameter session
show parameter processes

Running RCU for SOA Schema from Shell Script

Here is my generic approach for silent mode installation command-line options kept in a shell script.

Unzip RCU file

In precise Ubuntu unzip command didn't worked, then installed the unzip
sudo apt-get install unzip
Now we can unzip the rcu file...
vagrant@mydev:~$ unzip /u01/app/software/SOA/ofm_rcu_linux_11.1.1.7.0_64_disk1_1of1.zip -d .
Archive:  /u01/app/software/SOA/ofm_rcu_linux_11.1.1.7.0_64_disk1_1of1.zip
  inflating: ./readme.html
   creating: ./rcuHome/

The shell script uses silent mode installation for SOA Suite 11.1.1.7.0 schemas.
#!/bin/bash

# FileName      : createRCU.sh
# Description   :       This script is used to run the rcu in silent mode
# Sample is for SOA product which will work for MDS, ORASDPM, SOAINFRA, BAM
# Author : Pavan Devarakonda
#
clear
export RCU_HOME=/home/vagrant/rcuHome
export RCU_LOG_LOCATION=$RCU_HOME/rcu/log


CONNSTR='192.168.33.115:1521:XE'
PASS_INPUT="passwdfile.txt"

echo "Running RCU for SOA Suite"
$RCU_HOME/bin/rcu -silent -createRepository -databaseType ORACLE \
-connectString $CONNSTR \
-dbUser SOADEMO -dbRole SYSDBA \
-schemaPrefix DEV \
 -component MDS \
 -component ORASDPM \
 -component SOAINFRA \
 -component BAM -f < $PASS_INPUT
echo $?

The passwdfile.txt contains pasword for the SYSBA user then for the remaining component wise passwords given in each line.
welcome1
welcome1
welcome1
welcome1
welcome1

The RCU script execution is as follows:

vagrant@mydev:~$ ./creatercu.sh
Running RCU for SOA Suite
Failed to initialize logger with location :/home/vagrant/rcuHome/rcu/log/logdir.2015-08-16_09-59/rcu.log
Initializing logger using the following location :/tmp/logdir.2015-08-16_09-59/rcu.log

Processing command line ....
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
The database you are connecting is not a supported version. Refer to the certification matrix for supported DB versions.

Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Percent Complete: 0
Percent Complete: 5
Percent Complete: 10
Percent Complete: 10
Percent Complete: 31
Percent Complete: 31
Percent Complete: 34
Percent Complete: 37
Percent Complete: 40
Percent Complete: 40
Percent Complete: 51
Percent Complete: 51
Percent Complete: 54
Percent Complete: 57
Percent Complete: 57
Percent Complete: 69
Percent Complete: 69
Percent Complete: 72
Percent Complete: 75
Percent Complete: 75
Percent Complete: 87
Percent Complete: 100
Repository Creation Utility: Create - Completion Summary
Database details:
Host Name                       : 192.168.33.115
Port                            : 1521
Service Name                    : XE
Connected As                    : SOADEMO
Prefix for (prefixable) Schema Owners : DEV
RCU Logfile                     : /tmp/logdir.2015-08-16_09-59/rcu.log
Component schemas created:
Component                       Status  Logfile
Metadata Services               Success /tmp/logdir.2015-08-16_09-59/mds.log
SOA Infrastructure              Success /tmp/logdir.2015-08-16_09-59/soainfra.log
Business Activity Monitoring            Success /tmp/logdir.2015-08-16_09-59/bam.log
User Messaging Service          Success /tmp/logdir.2015-08-16_09-59/orasdpm.log

Repository Creation Utility - Create : Operation Completed
0

SQL confirmation 

Now its validation time, run the following SQL command to check whether all SOA component schema are created :

SELECT comp_name, owner, version FROM schema_version_registry;

OFMW Product wise RCU component selection


  1. SOA/OSB - SOAINFRA, ORASDPM, BAM by default you will be get MDS 
You can see all RCU schema scripts available 
vagrant@mydev:~/rcuHome/rcu/integration$ ls
activities   biscorecard    commssds               ess     jive-crawler  oid      rtd
apm          biserver       contentserver11        iau     mds           oif      sdpm
bam          bishiphome     contentserver11search  iauoes  oaam          oim      sn
biplatform   common         dc                     ipm     oam           opss     soainfra
bipublisher  commsls        deploymentserver       irm     odi           portal   urm
bischeduler  commspresence  epm                    jive    oes           portlet  webcenter


Troubleshooting RCU issue

You might encounter some of the RCU Level errors. one of them addressed here.
Processing command line ....
Invalid username/password.
Please enter valid username/password
RCU-6090:Skipping Main operation: Failed in Connection step validation
1
Solution:
When connection failed please double check your database user must have SYSDBA role and the passwd for this user can be passed first then for other schemas.

Reference: