Tuesday, May 22, 2012

Web Logic Server Installation


OS Settings
Setup /etc/hosts
127.0.0.1              localhost.localdomain localhost
10.10.0.135         avntest.inboxbizx.com avntest

Setup /etc/sysctl.conf
kernel.shmmax = 4294967295
kernel.shmall = 2097152
kernel.msgmax = 8192
kernel.msgmnb = 65535

kernel.shmmni = 4096
kernel.sem = 256 32000 100 142
fs.file-max = 131072
net.ipv4.ip_local_port_range = 10000 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 4194304
kernel.msgmni 2878

Refresh Settings
/sbin/sysctl –p



gedit etc/resolv.conf
options attempts:5
options timeout:15


gedit /etc/security/limits.conf
* hard nofile 65535
* soft nofile 4096
* hard nproc 16384
* soft nproc 2047

[root@avntest ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=avntest.inboxbizx.com

Linux Packages Installation
rpm -Uvh openmotif22-2.2.3-18.x86_64.rpm                                      installed now
rpm -i xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm                   installed now
rpm -q binutils-2.17.50.0.6                                           already installed
rpm -q compat-glibc-2.3.4                                            already installed
rpm -q gcc-4.1.2-                                                              already installed
rpm -q gcc-c++-4.1.2                                                       already installed
rpm -q glibc-2.5-                                                               already installed
rpm -q glibc-common-2.5-                                           already installed
rpm -q glibc-devel-2.5-                                                  already installed
rpm -q libgcc-4.1.2                                                           already installed
rpm -q libstdc++-devel-4.1.2-                                     already installed
rpm -q libstdc++-4.1.2-                                                  already installed
rpm -q make-3.81-                                                          already installed
rpm -q gdbm-1.8.0-                                                         already installed
rpm -q libXp-1.0.0-                                                          already installed
rpm -q libaio-0.3.106-                                                     already installed
rpm -q libgomp-                                                               already installed
rpm -i sysstat-7.0.0-3.el5.x86_64.rpm                     installed now
rpm -q compat-libstdc++-296                                     already installed
rpm -q compat-libstdc++-33                                        already installed
rpm -q elfutils-libelf-devel-                                         already installed
rpm -q elfutils-libelf-devel-static-                             already installed
rpm -i libaio-devel-0.3.106-3.2.x86_64.rpm          installed now
rpm -i unixODBC-2.2.11-7.1.x86_64.rpm                                installed now
rpm -i unixODBC-devel-2.2.11-7.1.x86_64.rpm   installed now
rpm -q kernel-headers-                                                                already installed

Linking and Unlinking
unlink /usr/lib/libXtst.so.6

ln -s /usr/X11R6/lib/libXtst.so.6.1 /usr/lib/libXtst.so.6


Copy libdb.so.2 file supplied with this package to /usr/lib/ directory

Install JDK 1.6
Download it from internet
File name is jdk-6u18-linux-x64-rpm.bin
Go to downloaded file folder
cd /u1/asif/software/jdk/
Make it execute able
chmod +x jdk-6u18-linux-x64-rpm.bin
run it
./ jdk-6u18-linux-x64-rpm.bin
Rename java and javac files from /usr/bin/ folder
And then create the links of new files
·  ln -s /usr/java/jdk1.6.0/bin/java /usr/bin/java
·  ln -s /usr/java/jdk1.6.0/bin/javac /usr/bin/javac
Check the verison of java using following command
java -version


Create a directory and set permissions
mkdir /var/tmp/.oracle
chmod 777 /var/tmp/.oracle

Create groups and users
groupadd oinstall
groupadd dba
useradd –g oinstall –G dba oracle
mkdir /u1/app
chown root:oinstall /u1/app
chmod 775 /u1/app
mkdir /u1/app/oracle
chown oracle:oinstall /u1/app/oracle

go to weblogic software location and execute following command
java –jar wls1034_generic.jar
To setup the environment
cd server/bin
. ./setWLSEnv.sh
After the installation is complete if you want to start QUICKSTART go to following directory,
cd /u1/app/oracle/middleware/wlserver_10.3/common/quickstart
Enter the following command:
./quickstart.sh
Starting Domain configuration wizard
/u1/app/oracle/middleware/wlserver_10.3/common/bin
. ./config.sh


Starting and Stopping Admin and Managed Servers
AdminServer
cd /u1/app/oracle/middleware/user_projects/domains/base_domain/bin
./startWebLogic.sh
./stopWebLogic.sh

Managed Servers
cd /u1/app/oracle/middleware/user_projects/domains/base_domain/bin
./startManagedWebLogic.sh “ms1” http://localhost:7001
./startManagedWebLogic.sh “ms2” http://localhost:7001
./stopManagedWebLogic.sh “ms1”
./stopManagedWebLogic.sh “ms2”


Configuring boot.properties file
Create a directory named security at /u1/app/oracle/middleware/user_projects/domains/base_domain/servers/ms1/security
Create a file name boot.properties in this folder
Add two entries in it
username=weblogic
password=mypassword
Now shutdown and start the managed server


Configure Node Manager


No comments:

Post a Comment