8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » 11g » Here

WebLogic 11g Silent Installation

This article demonstrates how to perform a silent installation of WebLogic Server 11g on Oracle Linux.

Related articles.

Software

Download the WebLogic Server and Java SE software. The examples in this article use the following.

The rest of this article assumes the software is present in the "/u01/software" directory.

Setup

The following actions should be performed by the "root" user.

Make sure the "/etc/hosts" file contains correct entries for both the "localhost" and real host names.

127.0.0.1      localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.56.103 ol6.localdomain ol6

Create a new group and user.

groupadd -g 1000 oinstall
useradd -u 1100 -g oinstall oracle
passwd oracle

Create the directories in which the Oracle software will be installed.

mkdir -p /u01/app/oracle/middleware
mkdir -p /u01/app/oracle/config/domains
mkdir -p /u01/app/oracle/config/applications
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

Run the following commands to set your environment and append them to the "/home/oracle/.bash_profile" file.

export MW_HOME=/u01/app/oracle/middleware
export WLS_HOME=$MW_HOME/wlserver_10.3
export WL_HOME=$WLS_HOME
# Set to the appropriate JAVA_HOME.
export JAVA_HOME=/u01/app/oracle/jdk1.7.0_79
export PATH=$JAVA_HOME/bin:$PATH

Install JDK

Installing the JDK is simply a matter of extracting it from the tarball.

cd /u01/app/oracle/
tar -xvzf /u01/software/jdk-7u79-linux-x64.tar.gz

# It may just have the following extension.
tar -xvzf /u01/software/jdk-7u79-linux-x64.gz

Create Response File

There is a sample response file in the documentation (silent.xml), which you will need to adjust to suit your needs. Here is the response file used for WebLogic 11g, which should be saved as "/u01/software/silent.xml".

<?xml version="1.0" encoding="UTF-8"?>
   <bea-installer> 
     <input-fields>
       <data-value name="BEAHOME" value="/u01/app/oracle/middleware" />
       <data-value name="WLS_INSTALL_DIR" value="/u01/app/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|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="no"/>
       <data-value name="LOCAL_JVMS" value="/u01/app/oracle/jdk1.7.0_79"/>
   </input-fields> 
</bea-installer>

WebLogic Silent Installation

The following command shows how to initiate the installation in silent mode.

$JAVA_HOME/bin/java -Xmx1024m -jar /u01/software/wls1036_generic.jar -mode=silent -silent_xml=/u01/software/silent.xml

Once extracted, you can test the WebLogic version using the following command.

. $WLS_HOME/server/bin/setWLSEnv.sh
java weblogic.version

Patching WebLogic Server

Applying patches to WebLogic Server is done using the BSU utility. Make sure any processes running under this WebLogic installation are stopped before applying a patch.

Download the latest updates from Oracle Support and put them into the "/u01/software" directory with the other software. Unzip them into the "$MW_HOME/utils/bsu/cache_dir" directory.

mkdir -p $MW_HOME/utils/bsu/cache_dir
cd $MW_HOME/utils/bsu/cache_dir
unzip /u01/software/p21984589_1036_Generic.zip

The zip file contains a JAR file. Make a note of its name.

Archive:  /u01/software/p21984589_1036_Generic.zip
  inflating: README.txt
  inflating: S8C2.jar
  inflating: patch-catalog_23510.xml

Run the patch using the following command, specifying the patchlist, which will match the JAR file name.

cd $MW_HOME/utils/bsu
./bsu.sh -install -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -patchlist=S8C2 -prod_dir=$WLS_HOME

If you get any "Out of Memory" errors, just up the values of the MEM_ARGS setting in the "bsu.sh" file, then run the command again.

#Amend "bsu.sh" to have the following value.
#MEM_ARGS="-Xms1024m -Xmx1024m"
cat bsu.sh | sed 's/256m/1024m/g' | sed 's/512m/1024m/g' > bsu2.sh
mv bsu2.sh bsu.sh
chmod ug+x bsu.sh
chmod o-r bsu.sh

When the patch is complete, check the WebLogic version using the following command.

. $WLS_HOME/server/bin/setWLSEnv.sh
java weblogic.version

For more information see:

Hope this helps. Regards Tim...

Back to the Top.