Monday, March 18, 2013

Silent Mode Installation : WebLogic Application server

What is Silent-Mode Installation ?
Silent-mode installation is a way of setting installation configurations only once and then using those configurations to duplicate the installation on many machines. During installation in silent mode, the installation program reads the settings for your configuration from an XML file that you create prior to beginning the installation. The installation program does not display any configuration options during the installation process. Silent-mode installation works on both Windows and UNIX systems.

image

Command to Install weblogic 12c in Silent Mode:
[thiru@localhost]$ java -jar wls1211_generic.jar -mode=silent -silent_xml=/home/thiru/test_scripts/Labs/silent.xml
Extracting 0%....................................................................................................100%

Content of Silent.xml file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<bea-installer>
<input-fields>
<data-value name="BEAHOME" 
value="/opt/thiru/Oracle12c/Middleware1/" />
<data-value name="USER_INSTALL_DIR" 
value="/opt/thiru/Oracle12c/Middleware1/wlserver_12.1" />
</input-fields>
</bea-installer>

Error Message if some other version of weblogic server installed:
[thiru@localhost]$ java -jar wls1211_generic.jar -mode=silent -silent_xml=/home/thiru/test_scripts/Labs/silent.xml
Extracting 0%....................................................................................................100%
All available components of WebLogic 12.1.1.0 have been installed in this Middleware Home. Please select another Middleware Home or uninstall the product

Directory Content:
[thiru@localhost bin]$ cd /opt/thiru/Oracle12c/Middleware1/
[thiru@localhost Middleware1]$ ls
coherence_3.7 domain-registry.xml logs modules ocm.rsp registry.dat registry.xml utils wlserver_12.1
Please let us know if you have any doubts about this post !!

References:
http://docs.oracle.com/cd/E13196_01/platform/docs81/install/silent.html

1 comment:

  1. hi,

    I am trying the same steps but keep getting below error. Why does it need a display?

    [weblogic_user@centos-64-1 opt]$ /opt/jdk1.7.0_55/bin/java -d64 -jar /tmp/weblogic_install.jar -mode=silent -silent_xml=/tmp/silent.xml -log=/tmp/weblogic_server_install.log
    Extracting files...............................
    Starting Oracle Universal Installer

    Checking if CPU speed is above 300 MHz. Actual 2633.135 MHz Passed
    Checking monitor: must be configured to display at least 256 colors Failed <<<<
    Checking swap space: must be greater than 512 MB. Actual 2621432 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 177207 MB Passed

    Some requirement checks failed.
    You must fulfill these requirements before continuing with the installation.

    Continue? (y/n) [n]
    y

    ReplyDelete