WebLogic 14c[14.1] silent installation

Weblogic 14c is the latest version and it supports both JAVA 8 and 11 .Refer below Weblogic versions and its supported components.

Weblogic and its component support matrix


In the below section we are going to see Installation ,Creating TESTDomain , starting Admin and console access .

Installation

Run the below command 
/apps/java11_64/bin/java -jar fmw_14.1.1.0.0_wls_lite_generic.jar -silent ORACLE_BASE=/apps ORACLE_HOME=/apps/bea14 JAVA_HOME=/apps/java11_64 INVENTORY_LOCATION=/apps/bea14/oraInventory  INSTALL_TYPE="Complete with Examples"
[wlsuser@localhost apps]$ /apps/java11_64/bin/java -jar fmw_14.1.1.0.0_wls_lite_generic.jar -silent ORACLE_BASE=/apps ORACLE_HOME=/apps/bea14 JAVA_HOME=/apps/java11_64 INVENTORY_LOCATION=/apps/bea14/oraInventory
Launcher log file is /tmp/OraInstall2020-12-24_10-57-24PM/launcher2020-12-24_10-57-24PM.log.
Extracting the installer . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2591.632 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 3071 MB    Passed
Checking temp space: must be greater than 300 MB.   Actual 12621 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-12-24_10-57-24PM
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/createCentralInventory1608821890575.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=<inventory_location>
inst_group=<group_name> 
and run the installer with -invPtrLoc flag. 

Eg java -jar <installer file> -silent -responseFile <response file location> -invPtrLoc <absolute path to the file> 

The log(s) can be found here: /tmp/OraInstall2020-12-24_10-57-24PM.
[wlsuser@localhost apps]$

Create oraInst.loc file with below content and pass the file to -invPtrLoc
Inventory_loc=/apps/oraInventory/
Inst_group=wlsuser

[wlsuser@localhost apps]$ /apps/java11_64/bin/java -jar fmw_14.1.1.0.0_wls_lite_generic.jar -silent ORACLE_BASE=/apps ORACLE_HOME=/apps/bea14 JAVA_HOME=/apps/java11_64 INVENTORY_LOCATION=/apps/oraInventory INSTALL_TYPE="Complete with Examples" -invPtrLoc /apps/oraInst.loc
Launcher log file is /tmp/OraInstall2020-12-24_11-11-18PM/launcher2020-12-24_11-11-18PM.log.
Extracting the installer . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2591.632 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 3071 MB    Passed
Checking temp space: must be greater than 300 MB.   Actual 8674 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-12-24_11-11-18PM
Log: /tmp/OraInstall2020-12-24_11-11-18PM/install2020-12-24_11-11-18PM.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: redhat-7.3
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.9
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 /apps/oraInventory/logs.
[wlsuser@localhost apps]$ 

Domain Creation :Create TESTDomain by executing below commands

readTemplate('/apps/bea14/wlserver/common/templates/wls/wls.jar')
cd('Servers/AdminServer')
set('ListenAddress','127.0.0.1')
set('ListenPort', 7001)
create('AdminServer','SSL')
cd('SSL/AdminServer')
set('Enabled', 'True')
set('ListenPort', 7002)
cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('welcome1')
setOption('OverwriteDomain', 'true')
writeDomain('/apps/TESTDomain')
closeTemplate()
exit()
[wlsuser@localhost 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('/apps/bea14/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','127.0.0.1')
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('/apps/TESTDomain')

wls:/offline/TESTDomain/Security/TESTDomain/User/weblogic>
wls:/offline/TESTDomain/Security/TESTDomain/User/weblogic>closeTemplate()
wls:/offline>exit()

Exiting WebLogic Scripting Tool.

[wlsuser@localhost bin]$ 

starting Admin Server
cd /apps/TESTDomain/bin
nohup ./startWeblogic.sh &

Logs

logs
----
<Dec 24, 2020, 11:35:20,356 PM Singapore Standard Time> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> 
<Dec 24, 2020, 11:35:20,553 PM Singapore Standard Time> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> 
<Dec 24, 2020, 11:35:20,944 PM Singapore Standard Time> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file /apps/TESTDomain/security/DemoIdentity.jks.> 
<Dec 24, 2020, 11:35:21,302 PM Singapore Standard Time> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /apps/bea14/wlserver/server/lib/DemoTrust.jks.> 
<Dec 24, 2020, 11:35:21,307 PM Singapore Standard Time> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /apps/java11_64/lib/security/cacerts.> 
<Dec 24, 2020, 11:35:21,331 PM Singapore Standard Time> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "TESTDomain" running in development mode.> 
<Dec 24, 2020, 11:35:21,340 PM Singapore Standard Time> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 127.0.0.1:7002 for protocols iiops, t3s, ldaps, https.> 
<Dec 24, 2020, 11:35:21,342 PM Singapore Standard Time> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Dec 24, 2020, 11:35:21,343 PM Singapore Standard Time> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 127.0.0.1:7002 for protocols iiops, t3s, ldaps, https.> 
<Dec 24, 2020, 11:35:21,344 PM Singapore Standard Time> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Dec 24, 2020, 11:35:21,348 PM Singapore Standard Time> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> 
<Dec 24, 2020, 11:35:21,377 PM Singapore Standard Time> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 

Access Admin console https://IP:7002/console

See also how to create managed server using WLST ….

http://askmiddlewareexpert.com/2020/12/24/create-a-weblogic-server-using-wlst/

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *