Tuesday, April 7, 2020

WebLogic 14c silent installation

Installation

oracle@ol8 stage]$ java -jar fmw_14.1.1.0.0_wls.jar -silent ORACLE_BASE=/u01 ORACLE_HOME=/u01/wls14 JAVA_HOME=/usr/java/jdk-11.0.6
Launcher log file is /tmp/OraInstall2020-04-07_12-31-12PM/launcher2020-04-07_12-31-12PM.log.
Extracting the installer . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2112.000 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 4165 MB    Passed
Checking temp space: must be greater than 300 MB.   Actual 29819 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-04-07_12-31-12PM
oraInstFile: /etc/oraInst.loc


You are starting your first installation on this host or you do not have sufficient permission to access current inventory. As part of this install, you need to specify a directory for installer files. This is called the "inventory directory". Within the inventory directory, the installer automatically sets up subdirectories for each product to contain inventory data and will consume typically 150 Kilobytes per product.
It is recommended that this file (oraInst.loc) be created in /etc directory. You need root privileges to do so. You can exit the installer and run the script located in /tmp/createCentralInventory1586233877409.sh to set up the central inventory location.

If you choose not to create the central inventory location pointer file ( /etc/oraInst.loc ) and wish to continue installation you can create a file in any writable location with contents
inventory_loc=
inst_group=
and run the installer with -invPtrLoc flag.

Eg java -jar -silent -responseFile -invPtrLoc

The log(s) can be found here: /tmp/OraInstall2020-04-07_12-31-12PM.



[root@ol8 u01]# /tmp/createCentralInventory1586233877409.sh /u01/app/oraInventory oinstall
Setting the inventory to /u01/app/oraInventory
Setting the group name to oinstall
Creating inventory pointer file in /etc directory
Creating the Oracle inventory pointer file (/etc/oraInst.loc)
Changing permissions of /u01/app/oraInventory to 770.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete


[oracle@ol8 stage]$ java -jar fmw_14.1.1.0.0_wls.jar -silent \
> ORACLE_BASE=/u01 \
> ORACLE_HOME=/u01/wls14 \
> JAVA_HOME=/usr/java/jdk-11.0.6 \
> INVENTORY_LOCATION=/u01/app/oraInventory \
> INSTALL_TYPE="Complete with Examples"
Launcher log file is /tmp/OraInstall2020-04-07_12-59-41PM/launcher2020-04-07_12-59-41PM.log.
Extracting the installer . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2112.000 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 4165 MB    Passed
Checking temp space: must be greater than 300 MB.   Actual 24772 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-04-07_12-59-41PM
Log: /tmp/OraInstall2020-04-07_12-59-41PM/install2020-04-07_12-59-41PM.log
Setting ORACLE_BASE...
Setting ORACLE_HOME...
Setting JAVA_HOME...
Setting INVENTORY_LOCATION...
Setting INSTALL_TYPE...
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
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: oracle-8.1
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.


Starting check : CheckJDKVersion
Expected result: 1.8.0_191
Actual Result: 11.0.6
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 14.1.1 WebLogic Server and Coherence 14.1.1.0.0 completed successfully.
Logs successfully copied to /u01/app/oraInventory/logs.

Configuration


[oracle@ol8 bin]$ cd /u01/wls14/oracle_common/common/bin
[oracle@ol8 bin]$ export MW_HOME=/u01/wls14
[oracle@ol8 bin]$ ./commEnv.sh
[oracle@ol8 bin]$ ./wlst.sh

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate('/u01/wls14/wlserver/common/templates/wls/wls.jar')
WARNING: The readTemplate is deprecated. Use selectTemplate followed by loadTemplates in place of readTemplate.
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','10.0.2.15')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>create('AdminServer','SSL')
Proxy for AdminServer: Name=AdminServer, Type=SSL
wls:/offline/base_domain/Server/AdminServer>cd('SSL/AdminServer')
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>set('Enabled', 'True')
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>set('ListenPort', 7002)
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>cd('/')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('welcome1')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/u01/wls14/user_projects/domains/DEV_DOMAIN')
wls:/offline/DEV_DOMAIN/Security/DEV_DOMAIN/User/weblogic>closeTemplate()
wls:/offline>exit()


Exiting WebLogic Scripting Tool.


Startup


cd /u01/wls14/user_projects/domains/DEV_DOMAIN/bin
./startWebLogic.sh & 
./startNodeManager.sh &



5 comments:

  1. How to reconfigure the existing Weblogic 12c domains using WLST after installed the WL 14c

    ReplyDelete
  2. indeed your screenshoot and logs helped to rehearsal quickly..... lots of thanks

    ReplyDelete
  3. But in virtual box this step is working but in real time it was not opening console

    ReplyDelete