Tuesday, January 26, 2010

Updating Weblogic License

Updating License file when it expires or moved from one version to another version of weblogic server and Installation of Patches Plugins :
[1] Install and configure WebLogic Server service packs (old versions) and patches

http://download.oracle.com/docs/cd/E14759_01/index.htm

[2] Install Web Server plug-ins if required on supported platforms

http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs81/81_over/add-ons.html

[3] Updating WebLogic License file

#This below info is written by pavan
WebLogic License Updating
Here we go to update the BEA License file ...

What happens if it is not updated?

1. We cannot have more instances on the same domain it is limiting to 5 instances only.

2. If you had the 5th instance including your Admin in RUNNING state but, you cannot access the console.

What is the resolution for this situation?

Update your BEA/Oracle Licence as per the given steps.

Stop all server instances which are already running.

Update this on every machine.

Remove "servers" folder

1. Click the license link:http://licensecodes.oracle.com/bea.html

choose here "BEA WebLogic Server Products" As per your operating environment you can choose the update.zip file.

2. Download you application suitable license zip file I have choosen version as "9.2 - 9.2mp3" -- LIC-WLSP92

3. Take a backup of the old license file

cp license.bea license.bea_bkp

4. Place the downloaded new license file (license.bea_new) in the BEA_HOME

4. Run the following command.
$ ./UpdateLicense.sh license.bea_new


Here it will apply the new lincense modifications on to the license.bea file directly.

If this command failed revert back to the old backup.


Now your license is ready to use more than 5 users (Clustered environment).

Start the servers and check for availability of new license.

Weblogic UnInstallation in Solaris

Continuation of Weblogic Server Installation under Solaris 5.10 box
Weblogic Server Uninstallation in 3 Modes:
1.GUI
2.Console
3.Silent


2.Console Mode uninstallation of Weblogic Server in Solaris Box

1. Go to the following directory:
WL_HOME/uninstall
Here WL_HOME represents the directory in which you installed
WebLogic Server.
2. At the prompt, enter the following command:
 
bash-3.00$ cd bea
bash-3.00$ ls -l
total 40
-rwxr-xr-x 1 wluser beaproject 851 Dec 17 10:51 UpdateLicense.sh
-rw-r--r-- 1 wluser beaproject 23 Dec 17 10:51 beahomelist
drwxr-xr-x 6 wluser beaproject 512 Dec 17 10:51 jdk150_10
-rw-r--r-- 1 wluser beaproject 12081 Dec 17 10:51 license.bea
drwxr-xr-x 2 wluser beaproject 512 Dec 17 10:52 logs
drwxr-xr-x 3 wluser beaproject 1024 Dec 17 10:51 modules
-rw-r--r-- 1 wluser beaproject 917 Dec 17 10:52 registry.xml
drwxr-xr-x 3 wluser beaproject 512 Dec 17 10:51 utils
drwxr-xr-x 10 wluser beaproject 512 Dec 17 10:54 weblogic92
bash-3.00$ uninstall.sh -mode=console

<----------------------- BEA Uninstaller - BEA Products ---------------------->

Welcome:


Welcome to the BEA Products uninstaller. If you wish to
proceed with the uninstallation type Next, otherwise, please type
Exit to cancel.

Enter [Exit][Next]>

<----------------------- BEA Uninstaller - BEA Products ---------------------->

Choose Components to uninstall:

-------------------------------

Check the BEA Products components you want to uninstall.

Release 9.2.2.0

|_____WebLogic Server [1] x
|_____Server [1.1] x



Enter number exactly as it appears in brackets to toggle selection OR

[Exit][Previous][Next]>



<----------------------- BEA Uninstaller - BEA Products ---------------------->

Setting Up



<----------------------- BEA Uninstaller - BEA Products ---------------------->

Removing Files

<----------------------- BEA Uninstaller - BEA Products ---------------------->

Removing BEA Registry Entries

<----------------------- BEA Uninstaller - BEA Products ---------------------->

Uninstall Completed Successfully!

<----------------------- BEA Uninstaller - BEA Products ---------------------->

Uninstallation Complete

Uninstallation of selected components has completed successfully.

Press [Enter] to continue

bash-3.00$ cd bea

bash-3.00$ ls -la
total 42
drwxr-xr-x 6 wluser beaproject 512 Dec 18 06:41 .
drwxr-xr-x 6 wluser beaproject 512 Dec 17 10:50 ..
-rwxr-xr-x 1 wluser beaproject 851 Dec 17 10:51 UpdateLicense.sh
-rw-r--r-- 1 wluser beaproject 23 Dec 17 10:51 beahomelist
drwxr-xr-x 6 wluser beaproject 512 Dec 17 10:51 jdk150_10
-rw-r--r-- 1 wluser beaproject 12081 Dec 17 10:51 license.bea
drwxr-xr-x 2 wluser beaproject 512 Dec 17 10:52 logs
drwxr-xr-x 3 wluser beaproject 1024 Dec 17 10:51 modules
-rw-r--r-- 1 wluser beaproject 324 Dec 18 06:40 registry.xml
drwxr-xr-x 3 wluser beaproject 512 Dec 17 10:51 utils

Note: Weblogic92 folder disappear.


3.Uninstalling the Weblogic Server in Silent Mode

Go to the following directory: WL_HOME/uninstall Here WL_HOME represents the directory in which you installed WebLogic Server.
At the prompt, enter the following command:
bash-3.00$ sh uninstall.sh -mode=silent -log=/export/home/wluser/logs/uninstall.log

Weblogic Installation on Sun Solaris

When I was preparing for the WebLogic Certification there is a dedicated topic for Installing WebLogic. If you wish to prepare for the same, Let me share you my experiance with the Installation on Sun Solaris SPARC machine. You, smart WLA need to choose what kind of installation required for the environment first. Normally for the Developer who want to test their application frequently they don't need a Production installation,  At a given point of time you will get one or two hits to the application so the Development mode is sufficient. The Performance Engineer, work for pre-production environment tests requires Production installation. In the production environment the user hits to the application could be thousands at a any given time. So the need is huge you need Production mode installation. I hope, you should understand the basic differences between Development and Production mode installation perfectly then go ahead for the next section for experimenting. Here my focus on console type of installation which is most of the non-GUI environments requires and most of the WebLogic Administrator work from remote locations so this method is suggestable way. Other option GUI you can choose X11 forwarding with X emulator softwares.

Product Installation
[1] Install the JDK/JRE if required on supported platforms (if it is not included with jar distribution)
[2] Installing WebLogic Server on supported platforms


Installation Modes:
1. GUI
2. console
3. silent


Installing on Sun Solaris 5.10

When you are on the oracle download page you need to choose proper installer that should match your platform. If your system uses Sun Solaris 5.10, your installer could have a
server923_solaris32.bin(WebLogic 9.2 MP3) or wls1033_solaris32.bin (WebLogic 10.3.3/11g) as binary file name. If your installer has the .bin extension,that means the installer includes Java Development Kit (JDK).

To run the installer you need to use .bin file if you have it available on a CD or on Disk then , follow
these steps:

1.Logon to the system as the user whoever have previllages to work as WebLogic System Administrator.
2.Open a command-line shell.
3.Insert the WebLogic CD in the CD-ROM drive or disk where the bin file is located.

Change to the weblogic_platform directory on the CD or disk.
and Invoke the following command:


./server923_solaris32.bin -mode=console -Djava.io.tmpdir=/tmp -log=/export/home/wluser/logs/BEA_install.log

Note: Don't Copy the commands directly from pdf/webpage files to Unix/sunsolaris
console this may cause problem (Symbols can not be identified)


Sample installation Run given for your reference:

bash-3.00$ ls -lrt
-rwxr-xr-x 1 wluser beaproj 608240443 Dec 16 10:53 server922_solaris32.bin
bash-3.00$ ./server922_solaris32.bin mode=console
Invalid command line argument: [mode]. //Refer Note
#ERROR due to - missed before mode
2.Console Mode Installation
bash-3.00$ ./server922_solaris32.bin -mode=console
Extracting
0%....................................................................................................100% <----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Welcome:
--------
This installer will guide you through the installation of BEA Products. Type
"Next" or enter to proceed to the next prompt.
If you want to change data entered previously, type "Previous". You may quit the
installer at any time by typing "Exit".

Enter [Exit][Next]>


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY UNDER
LICENSE FROM BEA. PLEASE READ THE FOLLOWING
LICENSE CAREFULLY AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX.
CERTAIN CAPITALIZED TERMS ARE DEFINED IN
SECTION 11.

1. LICENSE TERMS
a. WebLogic SDK Use. The terms of this Section 1(a) are applicable to you if
you have registered as a WebLogic SDK
customer. Subject to the terms of this Agreement, BEA grants to you a
non-exclusive, non-transferable, royalty-free license
to use WebLogic SDK solely for Development Use and Scale-Limited Personal Use for
the number of users and/or developers and
the number of CPU's, Servers and/or at the Sites, as specified at the time of
registration. Third party software products or
modules supplied by BEA, if any, may be used solely with the Software. All rights
not specifically granted to you herein are
retained by BEA.
b. WebLogic SDK Pro Use. The terms of this Section 1(b) are applicable to you if
you have registered as a WebLogic SDK Pro
customer. Subject to the terms of this Agreement, BEA grants to you a
non-exclusive, non-transferable, fee-bearing license to use WebLogic SDK Pro
solely for Development Use and Scale-Limited Commercial Use for the number of
users and/or developers
and the number of CPU's, Servers and/or at the Sites, as specified on BEA's
invoice. Third party software products or modules supplied by BEA, if any, may be
used solely with the Software. All rights not specifically granted to you herein
are retained by BEA.
c. Evaluation Use. The terms of this Section 1(c) are applicable to you if you
have registered as an Evaluation Use
customer. Subject to the terms of this Agreement, BEA grants to you a
non-exclusive, non-transferable, license to use the
Use above value or select another option:
1 - Yes, I agree with the terms of the license
2 - No, I do not agree with the terms of the license

Enter option number to select OR [Down][Exit][Previous]> 1


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Choose BEA Home Directory:
--------------------------
"BEA Home" = [Enter new value or use default "/export/home/wluser/bea"]

Enter new BEA Home OR [Exit][Previous][Next]>


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Choose Install Type:
--------------------
Select the type of installation you wish to perform.
->1Complete
Install the following software components and examples:
- WebLogic Server
- Workshop for WebLogic Platform
2Custom
Choose software components to install and perform optional configuration.


Enter index number to select OR [Exit][Previous][Next]> 2


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Choose Components to install:
-----------------------------
Release 9.2.2.0
_____WebLogic Server [1] x
_____Server [1.1] x
_____Server Examples [1.2] x
_____Web Server Plug-Ins [1.3]
_____Workshop for WebLogic Platform [2] x
_____Workshop [2.1] x
_____Workshop Examples [2.2] x

Enter number exactly as it appears in brackets to toggle selection OR
[Exit][Previous][Next]> 2


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Choose Components to install:
-----------------------------
Release 9.2.2.0
_____WebLogic Server [1] x
_____Server [1.1] x
_____Server Examples [1.2] x
_____Web Server Plug-Ins [1.3]
_____Workshop for WebLogic Platform [2]
_____Workshop [2.1]
_____Workshop Examples [2.2]

Enter number exactly as it appears in brackets to toggle selection OR
[Exit][Previous][Next]>


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Choose Product Installation Directories:
----------------------------------------
BEA Home Directory: [/export/home/wluser/bea]
Product Installation Directories:
"Default Product Home" = [Enter new value or use default
"/export/home/wluser/bea/weblogic92"]

Enter new Default Product Home OR [Exit][Previous][Next]>
Dec 16, 2008 11:04:46 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Installing files..
0% 25% 50% 75% 100%
[------------------------------------------------]
[***************************************************]

<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Installing JDK....
0% 25% 50% 75% 100%
[------------------------------------------------]
[***************************************************]
Performing String Substitutions...

Creating Domains...


<----------------------------------------------- BEA Installer - BEA Products ---------------------------------------------->
Installation Complete
Congratulations! BEA Products has been successfully installed to
/export/home/wluser/bea/weblogic92.
Press [Enter] to continue or type [Exit]>
bash-3.00$

2. Silent Mode Installation(Using XML):(Depricated)
Though it is depricated it is simple and smooth to use. That makes still WLA love to use this method, So I want to do an experiment it
Set the classpath in .profile as shown below
export CLASSPATH=/export/home/wluser//bea/jdk150_10/jre/lib/rt.jar:/export/home/wluser/bea/weblogic92/server/lib/weblogic.jar:
export PATH=/export/home/wluser/bea/weblogic92/common/bin:$PATH

bash
1. Log in to the Windows system.
2. Create a silent.xml file that defines the configuration settings normally entered by a user during an interactive installation process, such as graphical-mode or console-mode
Get the sample silent.xml form the below bea site
http://e-docs.bea.com/common/docs92/install/scripts/silent.xml
Note:Please keep (<)open and close(/>) tags in every line in the xml
becuase removed that not displaying the xml content in the blog


?xml version="1.0" encoding="UTF-8"?
bea-installer # open tag
input-fields # open tag
data-value name="BEAHOME" value="/export/home/wluser/bea"
data-value name="USER_INSTALL_DIR" value="/export/home/wluser/bea/weblogic92"
data-value name="INSTALL_MERCURY_PROFILING_TOOLS" value="true"
data-value name="COMPONENT_PATHS" value="WebLogic Server/Server"
data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"
input-fields #close tag
bea-installer #close tag

./server922_solaris32.bin -mode=silent -silent_xml=silent1.xml -Djava.io.tmpdir=/tmp -log=/export/home/wluser/logs/BEA_install.log

To enable NodeManager following silent script can be used:
Note:Please keep (<)open and close(/>) tags in every line in the xml
becuase removed that not displaying the xml content in the blog

?xml version="1.0" encoding="UTF-8"?
bea-installer #open tag
input-fields #Open tag
data-value name="BEAHOME" value="/home/wluser/bea"
data-value name="USER_INSTALL_DIR" value="/home/wluser/bea/weblogic92"
data-value name="INSTALL_MERCURY_PROFILING_TOOLS" value="true"
data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes"
data-value name="NODEMGR_PORT" value="5513"
data-value name="COMPONENT_PATHS" value="WebLogic Server/Server"
data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"
input-fields #closing tag
bea-installer #closing tag

The explanation of the above command:
1.To install the Bea in Silent mode , we need to specify the arguments as "-mode=silent"
2.and Specify the silent.xml path
Silent.xml contains, the BEA Home path,Installation Directory path,Need to specify which component need to install
3.Optionally we can specify the path for the temp directory for extracting the compressed jars
4.Optionally we can specify the log path which can be used for the Tracing the installation errors or exceptions.


Final Overview Steps for installation:
--This is taken from one of blog

Oracle WebLogic Server is J2EE Server (earlier known as BAEWebLogic Server) similar to Oracle Application Server.
This post covers installation of Oracle WebLogic Server with available installation Mode and Components.
You can download Oracle WebLogic Software from here (Currently it is available on Windows, Linux and Solaris and can be installed on Windows Vista also)
A. Installation Mode
BEA products can be installed in following mode
i) Graphical Mode - Interactive GUI based
ii) Console Mode - Interactive Text Based (-mode=console)
iii) Silent Mode- Non Interactive method using XML properties file (-mode=silent -silent_xml=properties_xml_file)
.
B. Installation Type
i) Complete or
ii) Custom
.
C. Installation Component
Depending on type of installer you choose, you get following kind of component
1) WebLogic Server
—Server
—Server Examples
—Server Add-ons
2) Workshop
—Workshop for WebLogic
—Workshop Runtime Framework
3) WebLogic Integration
—Integration Server
—Workshop Integration Extension
—Integration Examples
4) WebLogic Portal
—Portal Server
—Workshop Portal Extension
—Portal Examples
.
D. Installation Requirement

i) Hard Disk- Approx 3.5 GB for complete installation.
ii) Memory - Minimum 1GB as per documentation (will work on 500MB as well)
iii) JDK - JDK (Java Development Kit - Not required on windows on Unix install JDK 4,5 or 6)
iv) BEA HOme Directory - This directory is repository for common files used by multiple BEA products.
v) Product Installation Directory- Specific to particular BEA product like WebLogic Server, Workshop for WebLogic, WEbLogic Integration …
vi) Temp Directory - approx 2.5 times of total installation (this will be cleaned up after installation)
.
E. Things to consider
1. Try NOT to give space in directory for BEA_HOME (like Program Files)
2. Try Not to exceed 12 characters when naming BEA_HOME
3. You can specifiy installation log file during installation like -log=/myinstalllog.log
4. To start installation in console mode use -mode=console
5. To start in silent mode, create silent.xml file containing all values and use -mode=silent -silent_xml=
.
F. Installation Steps
1. Welcome
2. Choose BEA Home
3. Choose Install Type (Complete , Custom). If you selected Custom, Go to 4 else go to 5
4. Choose Product and Component (mentioned in step C above)
5. Choose Product Installation Directories
6.Install Windows SErvice (only if installation is on windows AND You have administrative privileges AND this is first installation AND this is CUSTOM installation)
7. Installation complete
.
Start Installation on Windows/Linux
Go to location where you have download software and start installation as
server1001_win32.exe -mode=console -log=c:\weblogic.log
Replace server1001_win32.exewith executable name on Linux/Solaris and change location to directory as per Unix like /home/bea/weblogic.log (This will install BEA in interactive console mode)
.
References
Oracle WebLogic 10.2 Installation Guide

Saturday, January 9, 2010

JVM Troubleshooting Tools

JVM Troubleshooting Tools:
If you look at Java tools section of the JDK 1.5 documentation page, you will see a group of new experimental tools called
"Troubleshooting Tools":
"jinfo": Prints configuration information for a given JVM process or a Java core file on the local machine or on a remote
machine through a debug server.
"jhat" - Heap Dump Browser: Starts a Web server on a Java heap dump file (eg, produced by "jmap -dump"), allowing the heap to
be browsed.
"jmap" - Memory Map: Prin00:24 10-01-2010ts shared object memory maps or heap memory details of a given JVM process or a Java
core file on the local machine or on a remote machine through a debug server.
"jsadebugd" - Serviceability Agent Debug Daemon: Attaches to a JVM process or a Java core file and acts as a debug server for
remote tools to connect.
"jstack" - Stack Trace: Prints a stack trace of threads for a given JVM process or a Java core file on the local machine or
on a remote machine through a debug server.
Note that not all functions described above are available on Windows systems. See next sections on how to use those tools
provided in JDK 1.6 on a Windows system.
1)'jinfo' - VM Option Value Checker
The first JVM troubleshooting tool I want try is the "jinfo" tool.
The "jinfo" tool included in the Windows version of JDK 1.6 only supports functions to view and modify HotSpot VM options of
the specified JVM process. Here is the "jinfo" command syntax:
C:\Pani>\Progra~1\java\jdk1.6.0_02\bin\jinfo
Usage: jinfo

Types of Clustering and WebLogic

Introduction to Clustering
The WebLogic Clusters offer a cost-effective, high-performance, and highly available architecture for the cluster-aware applications. There are many types of clusters in various environments, and capacity plannings. Generally, clusters are classified based on their functionality. Here I am breifly discussing about the types of clusters they are:
  1. Failover Clusters
  2. Scalable High Performance Clusters
  3. Application Clusters
  4. Network Load balancing clusters
  5. Other types of clusters
Let us examine the similarities and differences of each class of clusters.

Failover Clusters
This class of cluster is the most widely used in today’s e-commerce environment. Sometimes they are also called HA clusters or segregated clusters. With this type, the emphasis is on complete avoidance of unplanned downtime and also on achieving high availability.

If one of the nodes in a cluster becomes unavailable, due to either planned downtime for maintenance or unplanned downtime due to failure, another node takes over to provide the service to the end-user—a process known as failover. When failover occurs, users who are accessing the cluster service continue to access the service, and are unaware that it is being provided from a different server (node). This architecture emphasizes the availability of the database or application service, rather than performance or load balancing.

High availability clusters
allow multiple servers, in conjunction with shared disk storage units, to quickly recover from failures. Hardware or software failures, affecting either a critical component or an entire system, trigger a failover from one system in the cluster to another. Application processing and access to disk-based data is typically restored within minutes, although recovery times vary depending upon the specific characteristics of the application and the system configuration.

Scalable High Performance Clusters
This class of cluster provides scalability, high-performance, load balancing, and high availability through the use of parallel middleware. These are also sometimes called parallel clusters or high performance computing clusters (HPCC). They provide a single system image, or in other words, the application can be executed on any of the servers within the cluster. They are used to execute compute-intensive and data-intensive problems by running the job on multiple nodes at the same time.

These clusters utilize parallel-aware software that breaks the task down into smaller chunks, which are dispatched across a network of interconnected systems. The network processes the chunks concurrently and communicates with the nodes using message-passing libraries to coordinate and synchronize the results. Cluster-aware applications take advantage of the network architecture in three ways:
  • Parallel Computing, Multi-Threading, and Modularization
  • Load Balancing
  • Automatic Failure
Parallel database clusters like Oracle Real Application Clusters, IBM Sysplex Database Cluster, and Beowulf Computers fit into this group of clusters. Beowulf clusters are of particular interest to the scientific and educational communities. Beowulf clusters are built by using commodity systems – PCs, workstations, or servers running software such as Linux. They feature a parallel computing system consisting of multiple interconnected nodes and are able to execute parallel jobs.
Through message passing, nodes synchronize data and share results. Oracle RAC uses message passing to process requests and update data on each node, resulting in fast data access and a consistent database.

Application Server Clusters
Nodes running application server clusters are connected to provide availability and scalability. In this type of cluster, each node runs an instance of the application server. They run the application server independently from each other’s instance. There is no concept of failover. When clustered in this way, the state of certain objects is maintained synchronously. Web server clients can connect to either of the application server instances. Application servers such as WebLogic Server, Websphere, and Oracle Application server are examples of this category of clusters.

As an example, the WebLogic Server cluster consists of multiple copies of the WebLogic program running simultaneously and working together to provide increased scalability and reliability. The cluster appears to the web server clients as a single WebLogic Server instance. In WebLogic deployment, Servlets, JSPs, EJB, Remote Method Invocation (RMI) objects, Java Messaging Service (JMS) destinations, and Java Database Connectivity (JDBC) connections are usually clustered.

Clustering in J2EE, as in the Oracle Applications server, is implemented across a number of tiers, namely the client tier, Web tier, EJB tier, and EIS tier. Every tier has load balancing and failover.

Other Types of Clusters
The term cluster is loosely used to specify a condition when two networking components or two storage units are joined to provide backup and failover facility. Two or more clusters can also be located at remote locations and be linked to form a global cluster. Some of the other widely known clusters include:
  • NetApp Filer Clusters
  • Network Load Balancing Clusters
  • Global Clusters

Search This Blog

Loading...

Content of System Administration

ITIL V3 Foundation Certification books