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.binbash-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