Wednesday, 15 July 2015

weblogic installation

Selecting the correct installer to install Oracle Weblogic Server

When ever we start learning about a software product, the first step is to get the software installer and install it.

Before we start with "How to install Oracle Weblogic Server?",
lets understand the different kinds of installers available for Oracle Weblogic Server and select the correct installer.

There are three different kinds of Weblogic server Installers:

1. Package Installer
2. Development-only and supplemental installers
3. Upgrade Installer

1) Package Installer:

If you have never installed Oracle Weblogic Server and this is the first time you are installing it, then what you need is a Oracle Weblogic Server's Package Installer.

Again there are two different kinds of Package Installers:

a) Generic Package installer:

. It does not include JAVA runtime. (When using "Generic Package installer" it is a prerequisite that a supported JDK should be installed)
. If you want to install weblogic server with 64bit JVM, you have to use "Generic Package installer".
. "Generic Package installer" is platform independent and can be used to install weblogic server on any supported 32bit or 64bit platform.

b) OS-specific Package installer

. As the name suggests the installer is platform specific.
. It is meant for installation with a 32 bit JVM only.
. Both SUN and JROCKIT 32bit JDKs come bundled with "OS-specific Package installer", so no need to install the JDK in advance.

2) Development-only and supplemental installers:

. If you have no plans to use there Oracle Weblogic Server in Production and need a simple installer fro testing purpose only, then use this installer.
. Download the zip distribution, unzip it and its ready to use.

3) Upgrade Installer:

. Upgrade installer is used to upgrade a Oracle Weblogic Server installation from one minor version to a higher minor version.
. There are no installers available to upgrade Oracle Weblogic Server Installation from one major version to another, though Domain upgrade is always available.

Note:

Following are the different versions of Oracle Weblogic Server in ascending order (excluding versions before WLS 9.2):

Where "x" denotes the minor version, 9.2,10.0,10.3 and 12.1 are the major versions.

so you may use the upgrade installer to upgrade from WLS 10.3.1 to 10.3.6, or 10.0.1 to 10.0.2 etc.


Steps on how to install Oracle Weblogic Server Installer

Generic Package installation
OS-specific Package installation
Domain creation using configuration wizard

Generic Package Step by Step Installation:

1) Graphical mode:

Step 1: Log in to the target system.
Step 2: Add the bin directory of the appropriate JDK to the beginning of the PATH variable definition on the target system.
Step 3: For example: PATH=$JAVA_HOME/bin:$PATHexport PATH (Unix/Linux) or
set PATH=%JAVA_HOME%/bin;%PATH% (Windows)
Step 4: Go to the directory where you downloaded the installation program.
Step 5: Launch the installation program by entering the following command (this example shows the NET installer):
java -jar net_wlsversion_generic.jar
The installation program begins to install the software.
Step 6: Once the installation preparation is complete you will see the welcome screen
Screen:


Step 7: Click Next

Step 8: If there are existing Middleware Home Directories it will list all of them.
You may either select an existing Middleware Home Directory or create a new one.

Note: It is always recommended to have one Middleware Home Directory per installation, so I'll select "Create a new Middleware Home"

Step 9: Click Next

Step 10: If you want to register for Security updates enter  your My Oracle Support credentials or else un-check the box, it will prompt to bypass click Yes
and then
click Next.

Step 11: Click Next

Step 12: Click Next

Step 13: Click Next to All Users to access the Oracle Weblogic Server Installation.

Step 14: Click Next ( Make sure the more then 1289.8 MB of space is available in the Middleware Home)

Step 15: Wait for the installation to complete.


Click Done. And the installation is complete.

2) Console mode:
Step 1: Log in to the target system.
Step 2: Add the bin directory of the appropriate JDK to the beginning of the PATH variable definition on the target system.
Step 3: For example: PATH=$JAVA_HOME/bin:$PATHexport PATH (Unix/Linux) or
                set PATH=%JAVA_HOME%/bin;%PATH% (Windows)
Step 4: Go to the directory where you downloaded the installation program.
Step 5: Launch the installation program by entering the following command (this example shows the NET installer):

java -jar net_wlsversion_generic.jar -mode=console


The installation program begins to install the software.

OS-Specific Package Installation:

There are 3 types of installations

1. GUI mode.

2. Console mode.

3. Silent mode.

1) GUI Mode: 

Step1: welcome screen

Step2: Accept license agreement.

Step3: Create new BEA home directory

C:\bea10.3

Step4: Choose installation- Complete (or) Custom

Step5: Select complete

Step6: Select product installation directory

          C:\bea10.3\wlserver_10.3

2) Console Mode:

       server10.3_win32.exe  -mode = console

3) Silent Mode:   It is a way of setting installation configuration only once and then using those configurations to duplicate the installation on many machines.

The installation programs read the settings for your configuration from an xml file.(silent.xml)

server10.3_win32.exe -mode=silent -silent.xml=c:\bea10.3\silent.xml  -log=c:\10.3\silent.log


Step 1: Create silent.xml file

<?xml version="1.0" encoding="ISO-8859-1" ?>

<bea-installer>

<input-fields>

<data-value name="BEAHOME" value="C:\bea10.3" />

<data-value name="USER_INSTALL_DIR" value="C:\bea10.3\wlserver_10.3" />

</input-fields>

</bea-installer>

Step 2: Save this file as silent.xml file in C:\bea10.3 folder

Step 3: Copy the WebLogic software under C:\bea10.3 folder

Step 4: Create a sub folder wlserver_10.3 under c:\bea10.3

Step 5: Execute the below command

server103_win32.exe -mode=silent -silent_xml=C:\bea10.3\ silent.xml  -log=C:\10.3\silent.log



Domain creation using configuration wizard:

Step 1: Goto the below path and execute config.cmd script
            C:\bea10.3\wlserver_10.3\common\bin>config.cmd
Step 2: Select - Create new WebLogic domain
Step 3: Select - Base this domain on an existing template
Step 4: Configure Administrator username and password.
Step 5: Configure server start mode and JDK
             Development mode ---- SunJdk
             Production mode ----- Jrocket
             Select development mode and SunJdk
Step 6: Customize environment & services settings
            Select yes if you would like to configure resources
Step 7: Configure Admin server
             Name : AdminServer
             Listen address: localhost
             Listen port : 7001
             SSL listen: None
             Default port number for AdminServer-7001
              Default ssl listen port : 7002
Step 8: Configure managed servers
             name listen address listen port ssl listen port
             ms1 localhost 7003 None
             ms2 localhost 7004 None
Step 9: Configure cluster
            Name Multicast address multicast port cluster address
            c1 239.192.0.0 7010 localhost:7003, localhost:7004
Step 10: Assign servers to clusters
Step 11: Configure machines
               Name NodeManagerListenAddress NodeManagerListenPort
               m1 localhost 5556
Step 12: Assign servers to machines
Step 13: Create WebLogic domain
              Enter the name and location for the domain
              Domain name : dev_domain
              Domain location : c:\bea10.3\user_projects\domains
Step 14: Click on Create

No comments:

Post a Comment