We have completed the following:
- Install and Run RCU on Vagrant Ubuntu Oracle XE [Done!]
- Installation of JDK (JRockit) on Vagrant Ubuntu [Done!]
- Install WebLogic 10.3.6.0 on Vagrant Ubuntu [Done!]
- Install Oracle SOA Suite 11g on Vagrant Ubuntu [current post]
- Configure SOA Domain [Next Post]
Prerequisites for SOA 11g installation:
- Memory - 4G [above is fine]
- Temp space > 150 MB
- Swap space > 512 MB
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 :
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.