Thursday, December 11, 2014

WebLogic Server silent install

If you are not a fan of the GUI installer or if you have to install WLS on multiple instances, then the silent install mode is really interesting.

Note that there is a big difference in the install method between 11g and 12c.
In this post, I will explain the difference.


11g

In 11g, you must create a silent xml-file.

(1)
Create a xml file (e.g. silent.xml) with this content:

<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
<input-fields>
<data-value name="BEAHOME" value="/opt/oracle/Oracle/Middleware" />
<data-value name="WLS_INSTALL_DIR" value="/opt/oracle/Oracle/Middleware/wlserver_10.3" />
<data-value name="COMPONENT_PATHS" value="WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic SCA|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|WebLogic Server/Evaluation Database|Oracle Coherence/Coherence Product Files|Oracle Coherence/Coherence Examples" />
<data-value name="LOCAL_JVMS" value="/opt/jdk/jdk1.6.0_27" />
</input-fields>
</bea-installer>


(2)
Execute the (generic) installer in silent mode:

java -d64 -jar wls1035_generic.jar -mode=silent -silent_xml=silent.xml -log=silent.log


12c

12c does not work with a xml-file but with a response file which can be generated for the very first time by executing the GUI installer: when already passed some steps in the wizard, you can generate the response file by clicking on the "Save Response File" button in the "Installation Summary" screen.

If you really don't want to use the GUI installer, you can copy the content of the response file from here. :-)

(1)
Generate a response file with this content:

(2)
If this installation is the first Oracle installation on your system, then you must create as well the oraInst.loc file to define the directory and permission for the Oracle Inventory.
The user root has to create this file with this content:
inventory_loc=/u01/weblogic/OracleInventory
inst_group=oinstall

(3)
Execute the silent installer.
If this is the first installation:
java -jar /u01/software/fmw_12.1.3.0.0_wls.jar -silent -responseFile /u01/weblogic/wls12c.rsp -invPtrLoc /u01/weblogic/oraInst.loc

If you have already installed Oracle products:
java -jar /u01/software/fmw_12.1.3.0.0_wls.jar -silent -responseFile /u01/weblogic/wls12c.rsp


No comments:

Post a Comment