Skip to main content

OFMW - 12c Infrastructure Instalacao

EnglishVersion

Este post tem como objectivo mostrar a instalacao de Oracle Fusion Middleware Infrastructure
de uma forma rapida e facil - usando o modo silent - esta abordagem pode ser usada para automacao


1 - Download Software


O software Oracle Fusion Middleware Infrastructure esta disponivel para download nos sites da Oracle
O processo de download e simpes e directo - basta criar uma conta Oracle, aceitar os temos e fazer o download
Vou necessitar do seguinte sw

Java SE :
jdk-8u181-linux-x64.tar.gz
http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Oracle Fusion Middleware:
fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip
https://edelivery.oracle.com

2 - Partilhar ficheiros Windows com a VM Oracle Linux 7.1


Fiz o download para o meu portatil - agora tenho que colcar os ficheiros na VM .
Fiz um post ha uns tempos como partilhar filheiros entre host e uma VM, convem dar uma vista de olhos neste post
Neste caso a parte da configuracao da Oracle VM Virtual Box ja estava feita vou montar o FS no


[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 - Preparar o ambiente


Provavelmente um dos passos mais basicos e mais importantes em qualquer instalacao Linux / Unix
Preparar as variaveis de ambiente - vou criar um fineiro "wls.env" com as variaveis que vou necessitar


[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


Fica o codigo caso queiramos adicionar as variaveis aos *profiles


#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 - Instalacao Java


Installar o java ?!? Mas o Java nao vem c/ os OS ?

Ok - O java vem c/ o OS e cross-platform e verdade - as versoes de java tambem. Mas nao e cross-applicacao
Se nao se tiver a versao certa - e certo que se pode perder muitas horas de - troubleshotting
parat isso e sempre recomendavel ver as matrizes de certificacao dos productos assim como se a se sao compatible / certified / suported
Ficam os commando para instalar a versao java version "1.8.0_181"

O link simbolico e truque - para facilitar em upgrades


[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


Neste ponto vamos abrir uma sessao nova - validar se estamos na versao pretendida do java


[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 - FMW - Instalacao em silent mode


O primeiro passo e criar um response file com as configuracoes que pretendemos.


[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=

Installar


[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

Validar a MW Home


[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

Obrigado pela leitura, espero que este post o tenha ajudado.
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...