WebLogic 12c Silent Installation

2 minute read

Install JDK

# tar -xvf jdk-8u241-linux-x64.tar.gz 
# mkdir -p /usr/java
# mv jdk1.8.0_241 /usr/java/
# alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_241/bin/java 1
# alternatives --config java
# java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

Confirming Host Name Resolution

# hostnamectl status
   Static hostname: ORACLE-212
         Icon name: computer-vm
           Chassis: vm
        Machine ID: e46e35085ec243108381fd151ac72b2a
           Boot ID: 797eacaa8e4d47238a0a8240597d6067
    Virtualization: vmware
  Operating System: CentOS Linux 8 (Core)
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-147.el8.x86_64
      Architecture: x86-64
# ping ORACLE-212
PING ORACLE-212(ORACLE-212 (fe80::cf8a:fc1d:564c:cc8d%ens192)) 56 data bytes
64 bytes from ORACLE-212 (fe80::cf8a:fc1d:564c:cc8d%ens192): icmp_seq=1 ttl=64 time=0.031 ms
#  vi /etc/hosts
增加 ORACLE-212
# ping ORACLE-212
PING ORACLE-212 ( 56(84) bytes of data.
64 bytes from ORACLE-212 ( icmp_seq=1 ttl=64 time=0.051 ms

Create a new group and user

groupadd -g 54321 oinstall
useradd -u 54321 -g oinstall oracle
passwd oracle

Create the directories in which the Oracle software will be installed

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

set environment

vi /home/oracle/.bash_profile
export MW_HOME=/u01/app/oracle/middleware
export WLS_HOME=$MW_HOME/wlserver

export PATH=$JAVA_HOME/bin:$PATH
# unzip V983364-01.zip 
Archive:  V983364-01.zip
  inflating: fmw_12.  
  inflating: fmw_12214_readme.html 

Create Response File

su - oracle

vi /u01/software/wls.rsp

Response File Version=
INSTALL_TYPE=WebLogic Server

vi /u01/software/oraInst.loc


WebLogic Silent Installation

$JAVA_HOME/bin/java -Xmx1024m -jar /jdk8/fmw_12. -silent -responseFile /u01/software/wls.rsp -invPtrLoc /u01/software/oraInst.loc

Launcher log file is /tmp/OraInstall2020-03-28_02-10-06AM/launcher2020-03-28_02-10-06AM.log.
Extracting the installer . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 3600.000 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 8103 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 147579 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-03-28_02-10-06AM
Log: /tmp/OraInstall2020-03-28_02-10-06AM/install2020-03-28_02-10-06AM.log
Copyright (c) 1996, 2019, 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, SuSE-15
Actual Result: redhat-null
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.

Starting check : CheckJDKVersion
Expected result: 1.8.0_191
Actual Result: 1.8.0_241
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 WebLogic Server and Coherence completed successfully.
Logs successfully copied to /u01/app/oraInventory/logs.
[email protected]$. $WLS_HOME/server/bin/setWLSEnv.sh


Your environment has been set.
[email protected]$ java weblogic.version             

WebLogic Server Thu Sep 12 04:04:29 GMT 2019 1974621

Use 'weblogic.version -verbose' to get subsystem information

Use 'weblogic.utils.Versions' to get version information for all modules

Create Domain

$ $ORACLE_HOME/oracle_common/common/bin/config.sh


$ export DOMAIN_HOME=$ORACLE_BASE/config/domains/frsdomain
$ mkdir -p $DOMAIN_HOME/servers/AdminServer/security
$ echo "username=weblogic" > $DOMAIN_HOME/servers/AdminServer/security/boot.properties
$ echo "password=Password1" >> $DOMAIN_HOME/servers/AdminServer/security/boot.properties

$ $DOMAIN_HOME/startWebLogic.sh &



Leave a comment