WebLogic 11g: Install in Silent Mode

Overview

* Install parameters are provided in an XML file, i.e. silent.xml.
* Must uninstall before reinstall.

Create silent.xml File

* The XML definition (<?xml version=”1.0″ encoding=”UTF-8″?>) must be at the very beginning of the silent.xml file. Do not enter a space or line breaks before the XML definition.
* Create silent.xml file with the following sample content:

<?xml version="1.0" encoding="UTF-8"?>
<bea-installer> 
	<input-fields>
		<data-value name="BEAHOME" value="D:\Oracle\Middleware_Home" />
		<data-value name="WLS_INSTALL_DIR" value="D:\Oracle\Middleware_Home\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 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|Oracle Coherence/Coherence Product Files" />
		<data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes" />
		<data-value name="NODEMGR_PORT" value="5559" />
		<data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
		<!--
		<data-value name="LOCAL_JVMS" value="D:\jrockit_160_05|D:\jdk160_11"/>
		-->
 
	</input-fields> 
</bea-installer>

* Edit values for the data-value names to reflect your configuration.
* Available data-value names:

# Middleware home:
BEAHOME

# WebLogic home:
WLS_INSTALL_DIR

# Use if your computer connects to the internet via a proxy server.
OCM_PROXY_HOST 
OCM_PROXY_PORT
OCM_PROXY_USER
OCM_PROXY_PASSWORD

# Use if you have My Oracle Support account 
# and want to receive security updates from oracle.
OCM_SUPPORT_EMAIL
OCM_SUPPORT_PASSWORD

COMPONENT_PATHS
# Omit to install all components.
# Accepted values are (make sure not spaces before or after the pipe character, i.e. |):
	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

	Oracle Coherence/Coherence Product Files
	|Oracle Coherence/Coherence Examples

	Oracle Enterprise Pack for Eclipse

# Windows platforms only
INSTALL_NODE_MANAGER_SERVICE 
NODEMGR_PORT (default to 5556)
INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER

LOCAL_JVMS
BEA_BUNDLED_JVMS

Silent Mode Commands

Windows

* Command:

wls1034_win32.exe -mode=silent -silent_xml=path_to_silent.xml -log=full_path_to_log_file

* Example:
silent.xml
:

<?xml version="1.0" encoding="UTF-8"?>
<bea-installer> 
	<input-fields>
		<data-value name="BEAHOME" value="C:\prog\Oracle\Middleware" />
		<data-value name="WLS_INSTALL_DIR" value="C:\prog\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 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|Oracle Coherence/Coherence Product Files" />
		<data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes" />
        <!--
		<data-value name="NODEMGR_PORT" value="5556" />
        -->
		<data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
        <data-value name="LOCAL_JVMS" value="C:\prog\Oracle\Middleware\jrockit_160_22_D1.1.1-3|C:\prog\Oracle\Middleware\jdk160_21"/>
	</input-fields> 
</bea-installer>

Command:

wls1034_win32.exe -mode=silent -silent_xml=silent.xml -log=wl_silent.log

Unix

Use .bin File

chmod a+x file_name.bin

# Launch install:
./file_name.bin -mode=silent -silent_xml=path_to_silent.xml -log=full_path_to_log_file

# If install Server Examples:
./file_name.bin -mode=silent -silent_xml=path_to_silent.xml -Djava.security.egd=file:/dev/./urandom -log=full_path_to_log_file

Use .jar File

# Add Java bin directory to PATH:
JAVA_HOME=path_to_JDK; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH

# For 32 bit Unix or Linux:
java -jar file_name.jar -mode=silent -silent_xml=path_to_silent.xml -log=full_path_to_log_file

# For 64 bit Unix or Linux with 32/64-bit hybrid JDK:
java -d64 -jar file_name.jar -mode=silent -silent_xml=path_to_silent.xml -log=full_path_to_log_file

# For 64 bit Unix or Linux with Sun 64-bit JDK
java -Xmx1024m -jar filename.jar -mode=silent -silent_xml=path_to_silent.xml -log=full_path_to_log_file

Silent Mode Upgrade

* Same as silent mode install except that silent.xml only needs to define BEAHOME value.
* Sample silent.xml file:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<domain-template-descriptor>
	<input-fields>
		<data-value name="BEAHOME" value="c:\Oracle\Middleware" />
	</input-fields>
</domain-template-descriptor>

References

* 5 Running the Installation Program in Silent Mode

This entry was posted in weblogic11g. Bookmark the permalink.

One Response to WebLogic 11g: Install in Silent Mode

  1. Pingback: jar file

Leave a Reply

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


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.