INSTALLING OHS 12C BINARIES IN SILENT MODE + CREATING STAND ALONE INSTANCE USING PYTHON SCRIPT

ENVIRONMENT: LINUX  Red Hat Enterprise Linux Server release 7.5 (Maipo)

WILL BE INSTALLING OHS 12.2.1.3.0

Make sure you take care of all the OS level prerequisite before moving forward with OHS installation.

Below screen shot is providing listing of each folder that will be use in this silent install.

software folder only contain ohs 12.2.1.3.0 installation binaries file

scripts  folder contain the script which will start installer. Name of the script is weblogic_12.2.1.3.0_binaries_installation_script.sh 

Below is the content of weblogic_12.2.1.3.0_binaries_installation_script.sh 

[oracle@host01 stage]$ cat /scripts/weblogic_12.2.1.3.0_binaries_installation_script.sh
export JAVA_HOME=/u01/app/jdk1.8.0_171
/software/fmw_12.2.1.3.0_ohs_linux64.bin -silent -responseFile /stage/ohs.rsp -invPtrLoc /stage/oraInst.loc

stage folder contains two files oracle inventory location file that is oraInst.loc and ohs response file ohs.rsp as shown in below screen shot.  I have posted the content of ohs.rsp below so you can copy and paste.  OraInst.loc contain only two lines so you can simply type. Make sure you have correct ORACLE_HOME set in your response file.  My is /u01/domains/OHS_Web

Response File Version=12.2.1.3.0
[GENERIC]
ORACLE_HOME=/u01/domains/OHS_Web
INSTALL_TYPE=Standalone HTTP Server (Managed independently of WebLogic server)
DECLINE_SECURITY_UPDATES=true
MYORACLESUPPORT_UNSERNAME=
MYORACLESUPPORT_PASSWORD=
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
COLLECTOR_SUPPORTHUB_URL=

Now we have everything align to start the process to initiate installation of ohs binaries.

Let’s move forward with executing

/scripts/weblogic_12.2.1.3.0_binaries_installation_script.sh  

As you can see in blow output that installation processor has stated and finish with successful message.  That’s it…  IN NEXT POST I WILL SHOW HOW TO CREATE A STANDALONE OHS 12C INSTANCE USING PYTHON SCRIPT AND WLST

[oracle@host01 scripts]$ sh weblogic_12.2.1.3.0_binaries_installation_script.sh
Launcher log file is /tmp/OraInstall2018-10-01_02-37-10PM/launcher2018-10-01_02-37-10PM.log.
Checking if CPU speed is above 300 MHz. Actual 2601.000 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 3071 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 6383 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-10-01_02-37-10PM
Log: /tmp/OraInstall2018-10-01_02-37-10PM/install2018-10-01_02-37-10PM.log
Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of redhat-7, redhat-6, oracle-6, oracle-7, SuSE-11, SuSE-12
Actual Result: redhat-7.5
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.

Starting check : Packages
Checking for binutils-2.23.52.0.1; found binutils-2.27-28.base.el7_5.1-x86_64. Passed
Checking for compat-libcap1-1.10; found compat-libcap1-1.10-7.el7-x86_64. Passed
Checking for compat-libstdc++-33-3.2.3-x86_64; found compat-libstdc++-33-3.2.3-72.el7-x86_64. Passed
Checking for libgcc-4.8.2-x86_64; found libgcc-4.8.5-28.el7_5.1-x86_64. Passed
Checking for libstdc++-4.8.2-x86_64; found libstdc++-4.8.5-28.el7_5.1-x86_64. Passed
Checking for libstdc++-devel-4.8.2-x86_64; found libstdc++-devel-4.8.5-28.el7_5.1-x86_64. Passed
Checking for sysstat-10.1.5; found sysstat-10.1.5-13.el7-x86_64. Passed
Checking for gcc-4.8.2; found gcc-4.8.5-28.el7_5.1-x86_64. Passed
Checking for gcc-c++-4.8.2; found gcc-c++-4.8.5-28.el7_5.1-x86_64. Passed
Checking for ksh-…; found ksh-20120801-137.el7-x86_64. Passed
Checking for make-3.82; found make-1:3.82-23.el7-x86_64. Passed
Checking for glibc-2.17-x86_64; found glibc-2.17-222.el7-x86_64. Passed
Checking for glibc-devel-2.17-x86_64; found glibc-devel-2.17-222.el7-x86_64. Passed
Checking for libaio-0.3.109-x86_64; found libaio-0.3.109-13.el7-x86_64. Passed
Checking for libaio-devel-0.3.109-x86_64; found libaio-devel-0.3.109-13.el7-x86_64. Passed
Check complete. The overall result of this check is: Passed
Packages Check: Success.

Starting check : Kernel
Checking for VERSION=3.10.0; found VERSION=3.10.0-862.9.1.el7.x86_64. Passed
Checking for hardnofiles=4096; found hardnofiles=4096. Passed
Checking for softnofiles=4096; found softnofiles=4096. Passed
Check complete. The overall result of this check is: Passed
Kernel Check: Success.

Starting check : TotalMemory
Expected result: 1024MB
Actual Result: 2784MB
Check complete. The overall result of this check is: Passed
TotalMemory Check: Success.

Starting check : CheckJDKVersion
Expected result: 1.8.0_131
Actual Result: 1.8.0_131
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 HTTP Server 12.2.1.3.0 completed successfully.
Logs successfully copied to /home/oracle/oraInventory/logs.

IN SECOND PART OF THIS DOCUMENT I WILL SHOW YOU PYTHON SCRIPT TO CREATE A OHS STAND ALONE INSTANCE.  THIS INSTANCE WILL BE CREATED USING DEFAULT TEMPLATE THAT COMES WITH ORACLE BINARIES INSTALLATION.  THE TEMPLATE NAME IS ohs_standalone_template.jar and will be place under $ORACLE_HOME/ohs/common/templates/wls/ohs/ohs_standalone_template.jar               Below is the content of my python script which i named  create_ohs_stand_alone.12.2.1.3.0.py

# Directories
domainName =’ohs1′
domainDir = ‘/u01/OHS_WEB1’

# Read OHS Standalone template
readTemplate(‘/u01/domains/OHS_Web/ohs/common/templates/wls/ohs_standalone_template.jar’)

# Configure Nodemanager

cd(‘/’)
create(domainName, ‘SecurityConfiguration’)
cd(‘SecurityConfiguration/’ + domainName)
set(‘NodeManagerUsername’,’weblogic’)
set(‘NodeManagerPasswordEncrypted’,’Welcome1′)
setOption(‘NodeManagerType’, ‘PerDomainNodeManager’)

cd(‘/’)
create(‘localmachine’, ‘UnixMachine’)
cd(‘UnixMachine/localmachine’)
create(‘localmachine’, ‘NodeManager’)
cd(‘NodeManager/localmachine’)
set(‘ListenAddress’, ‘localhost’)

cd(‘/OHS/ohs1’)
cmo.setAdminHost(‘localhost’)
cmo.setAdminPort(‘7001’)
cmo.setListenAddress(‘localhost’)
cmo.setListenPort(‘7777’)
cmo.setSSLListenPort(‘4443’)

writeDomain(domainDir)
closeTemplate()

NOW RUN THIS python script using wlst.sh script. Here is how you will run it. Navigate to $ORACLE_HOME/oracle_common/common/bin/wlst.sh  and run the command as shown in below syntax, please note i have place my python script under /stage/create_ohs2.12.1.3.standalone.py

/u01/domains/OHS_Web/oracle_common/common/bin/wlst.sh /stage/create_ohs2.12.1.3.standalone.py

Once the script is complete you will see a folder by then name of OHS_WEB1 under /u01/

that’s  All.