OFMW - 12c Infrastructure Installation
The aim of this post is to show how to install the Oracle Fusion Middleware Infrastructure
in a fast and easy way - this approach could be also used for the automation
1 - Download Software
The Oracle Fusion Middleware Infrastructure software is available in the usual places
The download steps are pretty strait forward - create a account with Oracle, accept Oracle terms and download the software
Java SE :
jdk-8u181-linux-x64.tar.gz
http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Oracle Fusion Middleware Software:
fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip
https://edelivery.oracle.com
2 - Mount the windows forder in to Oracle Linux 7.1
I did the downloaded the about files to my laptop - I shared the local disc with my VM, If you havent read my post about how to share files between host and guest VM have a look in this post
I will only mount a new FS
[root@wls1 ~]# mkdir -p /shared ; chmod 777 /shared
[root@wls1 ~]# cp /etc/fstab /etc/fstab.original
[root@wls1 ~]# echo "WINDOWS_SHARE /shared vboxsf defaults 0 0" >> /etc/fstab
[root@wls1 ~]# mount -a
[root@wls1 ~]# cd /shared
[root@wls1 shared]# df .
Filesystem 1K-blocks Used Available Use% Mounted on
WINDOWS_SHARE 105366524 87688320 17678204 84% /shared
[root@wls1 ~]# ls -ltr jdk-8u181-linux-x64.tar.gz fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip
-rwxrwxrwx. 1 root root 185646832 Dec 13 21:31 jdk-8u181-linux-x64.tar.gz
-rwxrwxrwx. 1 root root 1627141097 Jan 11 16:11 fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip
3 - Prepare the environment
This is simultaneous one of the easiest and key step in any Linux/Unix installation
I will create a wls.env file with the variables I will need
[weblogic@wls1 ~]$ export ENV_ID=dev;
[weblogic@wls1 ~]$ export ORACLE_BASE=/u01/$USER/${ENV_ID}
[weblogic@wls1 ~]$ export ORACLE_HOME=${ORACLE_BASE}/middleware
[weblogic@wls1 ~]$ echo "export ENV_ID=${ENV_ID}
export ORACLE_BASE=${ORACLE_BASE}
export ORACLE_HOME=${ORACLE_HOME}
export MW_HOME=${ORACLE_HOME}
export JAVA_HOME=$ORACLE_BASE/jdk
export PATH=$JAVA_HOME/bin:$PATH" > ~/wls.env
[weblogic@wls1 ~]$ cat ~/wls.env
export ENV_ID=dev
export ORACLE_BASE=/u01/weblogic/dev
export ORACLE_HOME=/u01/weblogic/dev/middleware
export MW_HOME=/u01/weblogic/dev/middleware
export JAVA_HOME=/u01/weblogic/dev/jdk
export PATH=/u01/weblogic/dev/jdk/bin:/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
Some point in time - the wls.env file may be included in the profile files
#Linux
cp ~/.bash_profile .bash_profile.original
echo ". ~/wls.env" >> ~/.bash_profile
. ~/.bash_profile
#HP-UX / AIX
cp ~/.profile .profile.original
echo ". ~/wls.env" >> ~/.profile
4 - Java Installation
It's really important install a Java version compatible / certified / supported
Bellow I'm showing how to install java for your environment
[weblogic@wls1 fmw_12.2.1]$ mkdir -p ${ORACLE_BASE}
[weblogic@wls1 fmw_12.2.1]$ tar -xvf jdk-8u181-linux-x64.tar.gz -C ${ORACLE_BASE}
[weblogic@wls1 fmw_12.2.1]$ ls $ORACLE_BASE
jdk1.8.0_181
[weblogic@wls1 fmw_12.2.1]$ ln -s ${ORACLE_BASE}/jdk1.8.0_181 ${ORACLE_BASE}/jdk
[weblogic@wls1 fmw_12.2.1]$ ls -l $ORACLE_BASE
total 4
lrwxrwxrwx. 1 weblogic oinstall 26 Mar 3 13:41 jdk -> /weblogic/dev/jdk1.8.0_181
drwxr-xr-x. 7 weblogic oinstall 4096 Jul 7 2018 jdk1.8.0_181
At this point I would sugest to start a new session and valadate the environmnt variables
Make sure the right Java version is in place
[weblogic@wls1 fmw_12.2.1]$ . ~/wls.env
[weblogic@wls1 fmw_12.2.1]$ type java
java is /weblogic/dev/jdk/bin/java
[weblogic@wls1 ~]$ java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
5 - Installation Oracle Fusion Infrastructure in silent mode
Install - create a Response file and Install Oracle Fusion Infrastructure in silent mode.
I will create a response file
[weblogic@wls1 ~]$ echo "[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=${ORACLE_HOME}
INSTALL_TYPE=Fusion Middleware Infrastructure
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
COLLECTOR_SUPPORTHUB_URL=" > ${ORACLE_BASE}/fmw_infa.rsp;
[weblogic@wls1 ~]$ cat ${ORACLE_BASE}/fmw_infa.rsp;
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=/weblogic/dev/middleware
INSTALL_TYPE=Fusion Middleware Infrastructure
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
COLLECTOR_SUPPORTHUB_URL=
Install - and run the install
[weblogic@wls1 ~]$ export SW_REPO=/shared/fmw_12.2.1
[weblogic@wls1 fmw_12.2.1]$ unzip fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip
Archive: fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip
inflating: fmw_12.2.1.3.0_infrastructure.jar
inflating: fmw_12213_readme.htm
[weblogic@wls1 ~]$ java -jar $SW_REPO/fmw_12.2.1.3.0_infrastructure.jar -silent -responseFile ${ORACLE_BASE}/fmw_infa.rsp
Launcher log file is /tmp/OraInstall2019-03-03_02-24-44PM/launcher2019-03-03_02-24-44PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2095.240 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 1023 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 3058 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-03-03_02-24-44PM
Log: /tmp/OraInstall2019-03-03_02-24-44PM/install2019-03-03_02-24-44PM.log
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12
Actual Result: oracle-7.1
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Starting check : CheckJDKVersion
Expected result: 1.8.0_131
Actual Result: 1.8.0_181
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100
The installation of Oracle Fusion Middleware 12c Infrastructure 12.2.1.3.0 completed successfully.
Logs successfully copied to /u01/app/weblogic/oraInventory/logs.
Quick - Validation
[weblogic@wls1 ~]$ ls -ltra $MW_HOME
total 32
drwxr-xr-x. 4 weblogic oinstall 71 Mar 3 14:25 ..
-rwx------. 1 weblogic oinstall 10 Mar 3 14:26 root.sh
drwxr-x---. 5 weblogic oinstall 58 Mar 3 14:26 coherence
drwxr-x---. 7 weblogic oinstall 76 Mar 3 14:26 wlserver
drwxr-x---. 8 weblogic oinstall 81 Mar 3 14:27 em
drwxr-x---. 19 weblogic oinstall 4096 Mar 3 14:27 oracle_common
drwxr-x---. 11 weblogic oinstall 4096 Mar 3 14:27 OPatch
drwxr-x---. 8 weblogic oinstall 4096 Mar 3 14:29 oui
-rw-r-----. 1 weblogic oinstall 136 Mar 3 14:29 oraInst.loc
drwxr-x---. 11 weblogic oinstall 4096 Mar 3 14:29 .
drwxr-x---. 19 weblogic oinstall 4096 Mar 3 14:30 inventory
drwxr-x---. 4 weblogic oinstall 33 Mar 3 14:30 cfgtoollogs
drwxr-x---. 7 weblogic oinstall 4096 Mar 3 14:31 .patch_storage
Thank you for reading, hope this post was helpful.
Rogerio
Comments