Search This Blog

Oracle weblogic 10.3. Silent mode Installation through Script Windows / Linux

Oracle weblogic 10.3. Silent mode Installation through Script Windows / Linux 


Oracle weblogic Silent mode Installation :

               Most of the developers  use GUI mode to create domain during their initial days , but when the doing it regularly get bored to do the GUI installation .what is the alternative solution ??


Scripting  !!!!!!.........


But how to start ??? ... Every one knows Script work in Linux / UNIX / AIX  / Solaris ...

Scripting works in windows ??????

Answer Yes ....


Way to create :

 1. GUI
 2. Installation though Console mode
 3. Silent mode (   script  )


Always you 64 bit version JDK ..use generic .jar weblogic installer ....

>> java -d64  -jar wls1033_generic.jar -mode=silent -silent_xml=path_to_silent.xml
  
if you want additional Logs use below

–log=path_to_logfile.



or  only with mode=silent to enter manually 

>> java -d64  -jar wls1033_generic.jar -mode=silent

The installation can end with 3 different exit codes:

0: Successful installation.

1: Installation failed due to a fatal error.

Could be a missing directory or missing permissions to the file locations,
which you specified in your XML.

• 2: Installation failed due to an internal XML parsing error.

This is normally a typo or a missing quote in your XML files.
** Error during execution, error code = 65280"


Installation Script :



<?xml version="1.0" encoding="UFF-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="C:\Java\jdk1.6.0_38"/>
</input-fields>
</bea-installer>



Create Domain using silent script :



WSTL ( Weblogic Script Tool Language )

Python + Java = Jython




No comments:

Post a Comment