You are on page 1of 17

INSTALASI OHS 12.2.1.

 https://docs.oracle.com/middleware/1212/core/ASHIA/webtier.htm#ASHIA4321
 Check version os for install OS Package
command

cat /etc/*release*

Result

Noted : Version OS = 6

 Install OS Packages
Command

yum install binutils –y


yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install libaio -y
yum install libaio-devel -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install ksh -y
yum install make -y
yum install sysstat -y
yum install numactl -y
yum install numactl-devel -y

yum install libXext.i686 -y


yum install libXtst.i686 -y
yum install openmotif -y
yum install openmotif22 -y

 Unzip ohs installation file


Command

unzip fmw_12.2.1.3.0_ohs_linux64_Disk1_1of1.zip

 Running file .bin


Command

./fmw_12.2.1.3.0_ohs_linux64.bin

 Configuration
Create Domain OHS
 Go to

cd /bcaibank/OHS/oracle_home/oracle_common/common/bin
 Running

./config.sh
Configuration
Change “<nm-type>Plain</nm-type>” in config/config.xml dibawah <nodemanager>
Check .jks file
 Check DemoIdentity.jks

cd /bcaibank/OHS/domains/testing/security

 Copy DemoIdentity.jks
Running NodeManager

 Node manager

cd /bcaibank/OHS/domains/testing/bin
./startNodeManager.sh

startComponent,sh
 Start Component

cd /bcaibank/OHS/domains/testing/bin
./startComponent.sh ohs1
NOTED : check your application running in backgrounf
Ps –ef|grep ohs : kill that if running
Kill -9 pid

 Success
Load Balance

Server Port Machine Machine port


192.168.56.23 10103 Machine1 5557
192.168.56.23 10105 Machine1 5557

 Edit file mod_wl_ohs.conf

cd /bcaibank/OHS/domains/testing/config/fmwconfig/components/OHS/ohs1/mod_wl_ohs.conf

# NOTE : This is a template to configure mod_weblogic.

LoadModule weblogic_module "${PRODUCT_HOME}/modules/mod_wl_ohs.so"

<IfModule mod_weblogic.c>
WebLogicCluster 192.168.56.23:10103,192.168.56.23:10105
MatchExpression *.jsp
</IfModule>

<Location /shoppingcart1>
SetHandler weblogic-handler
WebLogicCluster 192.168.56.23:10105,192.168.56.23:10105
DefaultFileName index.jsp
</Location>
Test : 192.168.56.101:7777/shoppingcart1

 startWeblogic.sh & nodemanager : 192.168.56.23

cd /bcaibank/wls/domains/domdm/bin
./startWeblogic.sh
cd /bcaibank/wls/domains/domdm/bin
./startNodeManager.sh
 status machine

 install application
Noted : setting target server you tunning to 192.168.56.23:10103 & 192.168.56.23:10105
 test application on server
192.168.56.23:10103

192.168.56.23:10105

OHS Configuration
 make sure , nodemanager and startComponent have running
 success

 check log

cd /bcaibank/OHS/domains/testing/servers/ohs1/logs
tail -10 access_log
192.168.56.1 - - [11/Apr/2019:16:15:50 +0700]
005XZqXrmggFw00Fzzw0w00005Lk00000J "GET
/OracleHTTPServer12c_files/gradation_header.gif HTTP/1.1" 304 -
192.168.56.1 - - [11/Apr/2019:16:15:50 +0700]
005XZqXrnrYFw00Fzzw0w00005Lk00000O "GET
/OracleHTTPServer12c_files/gradation_header-btm.gif HTTP/1.1" 304 -
192.168.56.1 - - [11/Apr/2019:16:15:50 +0700]
005XZqXrnzRFw00Fzzw0w00005Lk00000K "GET
/OracleHTTPServer12c_files/footer.gif HTTP/1.1" 304 -
192.168.56.1 - - [11/Apr/2019:16:17:29 +0700]
005XZqbmjecFw00Fzzw0w00005Lk00000L "GET / HTTP/1.1" 304 -
192.168.56.1 - - [11/Apr/2019:16:17:39 +0700]
005XZqcMZiLFw00Fzzw0w00005Lk000001 "GET /shoppingcart HTTP/1.1" 404 210
192.168.56.1 - - [11/Apr/2019:16:18:03 +0700]
005XZqdoE3lFw00Fzzw0w00005Lk000002 "GET /shoppingcart HTTP/1.1" 404 210
192.168.56.1 - - [11/Apr/2019:16:18:40 +0700] unknown_ecid "-" 408 -
192.168.56.1 - - [11/Apr/2019:16:22:53 +0700]
005XZqv4fJsFw00Fzzw0w00005g7000000 "GET /shoppingcart HTTP/1.1" 302 277
192.168.56.1 - - [11/Apr/2019:16:22:53 +0700]
005XZqv4iVSFw00Fzzw0w00005g7000001 "GET /shoppingcart/ HTTP/1.1" 200 855
192.168.56.1 - - [11/Apr/2019:16:23:30 +0700] unknown_ecid "-" 408 -
NOTED :
 configuration mod_wl_ohs.conf harus sesuai dengan server 192.168.56.101/localtion => karena
fungsi dari script ini adalah untuk nge mapping.

You might also like