How to Perform Silent Installation of WebLogic 12c
I am working on installing WebLogic 12c on another server for a quick Coherence test and I have been scrambling on finding the notes on how to install it in silent mode. Basically you can install it with an installation wizard, but if you’re doing it remotely via X11 it’s going to be painfully slow. So instead of using that, I prefer silent install. That way, I don’t need to set up X11 and work via the command line.
Properties File
After downloading the FMW installer, a response file needs to be created. See below:
[ENGINE]
#DO NOT CHANGE THIS.Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle HomeORACLE_HOME=/u01/app/oracle/middleware
#Set this variable value to the Installation Type selected. e.g. Fusion Middleware Infrastructure, Fusion Middleware Infrastructure With Examples.INSTALL_TYPE=Fusion Middleware Infrastructure
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support PasswordMYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configurationDECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specifiedSECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy HostPROXY_HOST=
#Provide the Proxy PortPROXY_PORT=
#Provide the Proxy UsernamePROXY_USER=
#Provide the Proxy PasswordPROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]COLLECTOR_SUPPORTHUB_URL=
Command
In this case the only thing you need to modify is the ORACLE_HOME
. Make sure that your user has access to create that folder.
Next, run the following commands:
# Set JAVA_HOME and PATHexport JAVA_HOME=/u01/jdk/latestexport PATH=$JAVA_HOME/bin:$PATH
java -jar /tmp/fmw_12.2.1.4.0_infrastructure.jar -silent -responseFile /u01/silent-weblogic.rsp
Console Output
Make sure that when entering the path of the response file (i.e. silent-weblogic.rsp
) you use the absolute path.
And that’s it, you want the prompt (see below sample) and have a sip of coffee.
Launcher log file is /tmp/OraInstall2024-02-14_05-25-08AM/launcher2024-02-14_05-25-08AM.log.Extracting the installer . . . . . . . . . DoneChecking if CPU speed is above 300 MHz. Actual 2245.780 MHz PassedChecking swap space: must be greater than 512 MB. Actual 16141 MB PassedChecking 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 56050 MB PassedPreparing to launch the Oracle Universal Installer from /tmp/OraInstall2024-02-14_05-25-08AMLog: /tmp/OraInstall2024-02-14_05-25-08AM/install2024-02-14_05-25-08AM.logCopyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.Reading response file..Skipping Software UpdatesStarting check : CertifiedVersionsExpected result: One of oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12, SuSE-15Actual Result: oracle-8.5Check complete. The overall result of this check is: PassedCertifiedVersions Check: Success.
Starting check : CheckJDKVersionExpected result: 1.8.0_191Actual Result: 1.8.0_361Check complete. The overall result of this check is: PassedCheckJDKVersion Check: Success.
Validations are enabled for this session.Verifying dataCopying FilesPercent Complete : 10Percent Complete : 20Percent Complete : 30Percent Complete : 40Percent Complete : 50Percent Complete : 60Percent Complete : 70Percent Complete : 80Percent Complete : 90Percent Complete : 100
The installation of Oracle Fusion Middleware 12c Infrastructure 12.2.1.4.0 completed successfully.Logs successfully copied to /scratch/oracle/oraInventory/logs.