DBA Hub

📋Steps in this guide1/6

WebLogic 12c Silent Installation

This article demonstrates how to perform a silent installation of WebLogic Server 12c on Oracle Linux.

oracle 12cconfigurationintermediate
by OracleDba
14 views
1

Software

Download the WebLogic Server and Java SE software. The examples in this article use the following. If you want a plain WebLogic installation use the WLS download. If you want ADF also, use the FWM infrastructure download. You must pick the infrastructure option if you plan to use the installation for Oracle Forms 12c. The rest of this article assumes the software is present in the "/u01/software" directory.
2

Setup

The following actions should be performed by the "root" user. Make sure the "/etc/hosts" file contains correct entries for both the "localhost" and real host names. Create a new group and user. Create the directories in which the Oracle software will be installed. Run the following commands to set your environment and append them to the "/home/oracle/.bash_profile" file.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
127.0.0.1      localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.56.103 ol6.localdomain ol6

groupadd -g 1000 oinstall
useradd -u 1100 -g oinstall oracle
passwd oracle

mkdir -p /u01/app/oracle/middleware
mkdir -p /u01/app/oracle/config/domains
mkdir -p /u01/app/oracle/config/applications
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

export MW_HOME=/u01/app/oracle/middleware
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
# Set to the appropriate JAVA_HOME.
export JAVA_HOME=/u01/app/oracle/jdk1.8.0_77
export PATH=$JAVA_HOME/bin:$PATH
3

Install JDK

Installing the JDK is simply a matter of extracting it from the tarball.

Code/Command (click line numbers to comment):

1
2
3
4
5
cd /u01/app/oracle/
tar -xvzf /u01/software/jdk-8u77-linux-x64.tar.gz

# It may just have the following extension.
tar -xvzf /u01/software/jdk-8u77-linux-x64.gz
4

Create Response File

There are sample response files in the documentation ( here ), which you will need to adjust to suit your needs. Here is the response file used for WebLogic Server 12c, which should be saved as "/u01/software/wls.rsp". For Fusion Middleware Installer you need a response file like the following, saved as "/u01/software/fmw_infr.rsp". You also need to specify an Oracle inventory location. Create a file called "/u01/software/oraInst.loc" with the following contents.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=/u01/app/oracle/middleware
INSTALL_TYPE=WebLogic Server
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=<SECURE VALUE>
COLLECTOR_SUPPORTHUB_URL=

[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=/u01/app/oracle/middleware
INSTALL_TYPE=Fusion Middleware Infrastructure
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=<SECURE VALUE>
COLLECTOR_SUPPORTHUB_URL=

inventory_loc=/u01/app/oraInventory
inst_group=oinstall
5

WebLogic Silent Installation

The following command shows how to initiate the installation in silent mode. Once extracted, you can test the WebLogic version using the following command.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
# WLS
$JAVA_HOME/bin/java -Xmx1024m -jar /u01/software/fmw_12.2.1.0.0_wls.jar -silent -responseFile /u01/software/wls.rsp -invPtrLoc /u01/software/oraInst.loc

# Infrastructure
$JAVA_HOME/bin/java -Xmx1024m -jar /u01/software/fmw_12.2.1.0.0_infrastructure.jar -silent -responseFile /u01/software/fmw_infr.rsp -invPtrLoc /u01/software/oraInst.loc

. $WLS_HOME/server/bin/setWLSEnv.sh
java weblogic.version
6

Patching WebLogic Server

Applying patches to WebLogic Server 12c is done using the OPatch utility. Make sure any processes running under this WebLogic installation are stopped before applying a patch. Download the latest version of OPatch and the WebLogic updates from Oracle Support and put them into the "/u01/software" directory with the other software. For example. - OPatch : p6880880_132000_Generic.zip *** See Note Below - Updates : p22331568_122100_Generic.zip At the time of writing, the latest version of OPatch (OUI NextGen 13.2) is older than the version of OPatch that ships with WebLogic Server 12.2.1. Assuming you are not using WebLogic Server 12.2.1, unzip the OPatch utility and add it to your path. If you are using WebLogic Server 12.2.1, set the existing OPatch location in your path. Unzip the patch and change to the resulting directory, then apply the patch. Answer any prompts and take appropriate action when required. When the patch is complete, check the WebLogic version using the following command. Depending on the scale of the patch, the version may not have changed. For more information see: Hope this helps. Regards Tim...

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
cd /u01/software
unzip p6880880_132000_Generic.zip
export PATH=/u01/software/OPatch:$PATH

export PATH=$MW_HOME/OPatch:$PATH

unzip -d PATCH_TOP p22331568_122100_Generic.zip
cd PATCH_TOP/22331568
export ORACLE_HOME=$MW_HOME
opatch apply -silent

. $WLS_HOME/server/bin/setWLSEnv.sh
java weblogic.version

Comments (0)

Please to add comments

No comments yet. Be the first to comment!