Skip to main content

OFMW - 12c Infrastructure Installation

Versao Portuguesa

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

Popular posts from this blog

DB - How to monitor Oracle datapump jobs

These days there is lot of work around database migrations not only but mainly to cloud providers. One of the ways to migrate Oracle databases is using data pump (expdp/impdp). In general works fine, it allows an easy way to bring the database even different OS. It is always good to monitor the progress, to know where we are and estimate how long we are from the end. In this post, I am sharing some queries to help with database monitoring progress. The queries can be easily tailed to various scenarios. Starting with a simple one - the track the number of objects loaded during an import operation. When there is a massive amount of errors during the import. Drop and run the import again. The bellow query can be useful also to monitor the number of objects if we are dropping the users. Here, I’m making the assumption there were no other database activity in progress on the last 24 hours. select owner, count(0) from dba_objects where owner in ( select username from dba_users where created...

VM - Partilhar Pastas Windows - Linux

Neste post escrevo como partilhar pastas entre Windows (Host) e uma VM Guest, neste caso Linux. Ha algumas formas de fazer isto, esta parece me a mais facil. Seleccionar a Pasta Windows Na consola Virtual Box > Devices > Shared Folder Seleccionar a pasta windows para partilhar no Linux   O   Montar a pasta Windows na VM Ha duas opcoes : 1) Reiniciar a VM (Auto-mount) 2) Linha de comando [root@host ~]# mkdir -p /u01/stage/win_ebs_sw [root@host ~]# chmod 777 /u01/stage/win_ebs_sw [root@host ~]# mount -t vboxsf Oracle_EBS /u01/stage/win_ebs_sw/ [root@host ~]# ls /u01/stage/win_ebs_sw ebs_weblogic_webtier [root@host ~]# df -h /u01/stage/win_ebs_sw Filesystem Size Used Avail Use% Mounted on Oracle_EBS 895G 494G 401G 56% /u01/stage/win_ebs_sw Guardar a Configuracao no /etc/fstab para tornar as alteracoes permanentes. [root@host ~]# echo "Oracle_EBS /u01/stage/win_ebs_sw vboxsf defaults 0 0" >> /etc/fstab [root@host ~]# cat /etc/fstab # /etc/...

DB – How to monitor Oracle database long ops ?

As DBAs, some questions we are often asked and to be fair we ask ourselfs when we are doing massive operations, are : Is the database doing something? How long the database takes to complete the task? There a data dictionary view, GV$SESSION_LONGOPS whom is really usefull for monitoring and to provide estimated time to get the task done. Starting with a first example, a query for general propose . set lines 240 col message form a100 col opname form a50 select * from ( select round(l.sofar/l.totalwork*100,2) as complete, --l.* l.sid, --l.opname, l.message, l.start_time, l.time_remaining/60 "minuts remaining", l.elapsed_seconds from gv$session_longops l where totalwork !=0 ) where complete < 100; The view is also usefull on specific operations such as Oracle Recovery Manager (RMAN) jobs monitoring, this query returns information about backup,restore and recovery. select sid, serial#,opname, context, sofar, totalwork, round(sofar/totalwork*100,2) "%_complet...