Clustering With Two Weblogic Machines
Transcript of Clustering With Two Weblogic Machines
-
8/17/2019 Clustering With Two Weblogic Machines
1/17
WebLogic Clustering in Remote Boxes
This document shows how to create a two-node clustered domain using OracleWebLogic 11g (10.3.5). Here we hae setu! with two irtual bo" #les on localmachines to show the demo.
The $ollowing ste!s needs to be $ollowed to create clustered enironment with twodi%erent machines or &emote bo"es.
1. 'nstall an O!erating sstem and other side *+, will install *atabase and& $or their serers
/. 'nstall aa (*) or &oc2it3. 'nstall WebLogic 11g ( O, O+4 O+ can be con#gured in di%erent domain
i$ it is reuired)6. reate the lustered *omain5. tart 7ode 8anager and *omain on 9irst 8achine:. reate a +oot 'dentit 9ile;. &eset 7ode 8anager sername. ?nroll econd 8achine on domain10.hec2 7ode 8anager on ?ach 8achine11.tart ! serers
Install any Operating system
'nstall the o!erating sstem in two machines as !er our reuirement@ in thisdocument $ocusing with Linu" o!erating sstems and create a new se!arate user$or weblogic o!erations li2e installations and creating domains.
'$ ou are installing in local irtual machines4 a$ter installing Linu" O add '< ,ddressor hostname in etchosts #le and disable #rewall or '< tables or securit in bothmachinesbo"es i$ enabled $or communicating
Add IP Address in /etc/hosts
'n Hosts #le
Stop ire!allA serice i!tables sto!
A ch2con#g i!tables o%
"isable Security Protection?dit etcselinu"con#g and set ?L'7BCdisabled
Install #a$a %#"&' or #Roc(it
'nstall Daa $or our o!erating sstem on both machines.
http://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#install-weblogichttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#create-the-clustered-domainhttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#start-node-manager-and-domain-on-first-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#create-a-boot-identity-filehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#reset-node-manager-username-passwordhttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#transfer-domain-to-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#enroll-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#check-node-manager-on-each-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#start-uphttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#create-the-clustered-domainhttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#start-node-manager-and-domain-on-first-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#create-a-boot-identity-filehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#reset-node-manager-username-passwordhttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#transfer-domain-to-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#enroll-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#check-node-manager-on-each-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#start-uphttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#install-weblogic
-
8/17/2019 Clustering With Two Weblogic Machines
2/17
Install Weblogic ))g
'nstall WebLogic in both machines +o"-, and +o"-+ with the same director
structure4 Weblogic 'nstallation !ath o$ +o"-+ must be same as the 'nstallation
-
8/17/2019 Clustering With Two Weblogic Machines
3/17
-
8/17/2019 Clustering With Two Weblogic Machines
4/17
-
8/17/2019 Clustering With Two Weblogic Machines
5/17
Create the Clustered "omain
7ow4 a$ter com!leting the WebLogic installations on both machines4 we can !roceed
with the creation o$ the WebLogic *omain. *omain creation will be created onl on
one machine and same co!ied into second machine $rom installed +o"-,.
tsoaEmachine1A e"ecute FWLGHO8?commonbincon#g.sh
-
8/17/2019 Clustering With Two Weblogic Machines
6/17
T?
-
8/17/2019 Clustering With Two Weblogic Machines
7/17
T?
-
8/17/2019 Clustering With Two Weblogic Machines
8/17
T?
-
8/17/2019 Clustering With Two Weblogic Machines
9/17
Iie the '< ,ddress or Listen ,ddress and
-
8/17/2019 Clustering With Two Weblogic Machines
10/17
T?
T?
-
8/17/2019 Clustering With Two Weblogic Machines
11/17
T?
-
8/17/2019 Clustering With Two Weblogic Machines
12/17
T?
-
8/17/2019 Clustering With Two Weblogic Machines
13/17
Start Admin ser$er and -ode .anager on irst .achine
,$ter starting ,dmin serer and 7ode 8anager4 serer will create necessar #les $orweblogicStart Admin ser$er, *omainGHomebinstartweblogic.sh
Start -ode manager, FWLGHO8?sererbinstart7ode8anager.sh7ow node manager will create #le 7odemanger.!ro!erties4 change below !ro!ertiesin #le?dit FWLGHO8?commonnodemanagernodemanager.!ro!erties
tartcri!t?nabledCtrueto!cri!t?nabledCtrueecureListenerC$alse ('$ L is disabled)rash&ecoer?nabledCtrue
,nd same time change the machinenode manager settings “TYPE” as “plain” $romadmin console i$ ou are not using L to aoid L issues
http://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#start-node-manager-and-domain-on-first-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#start-node-manager-and-domain-on-first-machine
-
8/17/2019 Clustering With Two Weblogic Machines
14/17
Create a Boot Identity ile
&ather than haing to enter the credentials in each time4 create a boot.!ro!erties
#le (an encr!ted !assword #le) $or our ,dmin erer
i F*O8,'7GHO8?serers,dminerersecuritboot.!ro!ertiesedit and sae.usernameCweblogic!asswordCweblogic01
Reset -ode .anager sername/Pass!ord
This ste! is o!tional ste!4 i$ ou want to reset the node manager credentials $or newsetu!. To reset the credentials4 do the $ollowing
• Log in to the administration serer
• 'n the K*omain tructureK tree on the le$t4 clic2 on the domain name(baseGdomain).
• lic2 on the KecuritK tab. This should automaticall !ut ou in the KIeneralK
sub-tab.• lic2 the K,dancedK lin2 towards the bottom o$ the screen.
• '$ ou are running in !roduction mode4 clic2 the KLoc2 J ?ditK button.
• ?nter the K7ode8anager sernameK4 K7ode8anager
-
8/17/2019 Clustering With Two Weblogic Machines
15/17
0rans1er "omain to Second .achine
7ow we need to trans$erco! the domain $rom machine1 to 8achine/4 so sto! allserers or serices running in domain. We can sim!l co! the domain and !asteinto other machine but ou will get ecurit and L issues related errors so
another method is webLogic comes with a pack and unpack utilities that allow outo !ac2 a domain and moe it $rom one machine to another machine.
7aigate to FWLGHO8?commonbin and e"ecute pack command as below4 it willcreate a .Dar #le with gien tem!late name.
o! aboe .Dar #le to second machine where ou want to create a domain4 butremember the director structure or weblogic installation !ath should be same onboth machines.
7aigate to FWLGHO8?commonbin and e"ecute unpack command as below onmachine/.
,$ter this ou can see domain will be created as same as li2e machine1.
+nroll Second .achine domain?nroll or register the domain in node manager to start managed serer remotel$rom machine14 $or this ou need to do below ste! naigate toFWLGHO8?commonbinwlst.sh
connect('weblogic', 'password1', 't3:// 192.168.56.100:700'!n"#nroll('/$01/app/oracle/"iddleware/$ser%pro&ects/do"ains/base%do"ain','/$01/app/oracle/"iddleware/wlserer%10.3/co""on/node"anager'!disconnect(!
http://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#transfer-domain-to-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#enroll-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#transfer-domain-to-second-machinehttp://www.oracle-base.com/articles/11g/weblogic-11g-clustered-domains.php#enroll-second-machine
-
8/17/2019 Clustering With Two Weblogic Machines
16/17
eit(!
hec2 that the domain has been registered correctl with the 7ode 8anagerserices b loo2ing at the $ollowing #leshec2 the KF8WGHO8?domain-registr."mlK #le contains an entr li2e the$ollowing. '$ it doesnt4 add it manuall.
MdomainlocationCKu01a!!oraclemiddlewareuserG!roDectsdomainsbaseGdomainKN
hec2 the KFWLGHO8?commonnodemanagernodemanager.domainsK #lescontains an entr li2e the $ollowing. '$ it doesnt4 add it manuall.
+aseGdomainCu01a!!oraclemiddlewareuserG!roDectsdomainsbaseGdomain
Chec( -ode .anager on +ach .achine
7ow setu! has been com!leted $or both machines4 tart node manager on both
machines $rom command line FWLGHO8?sererbinstart7ode8anger.sh and chec2whether node manager are reachable on each machine $rom Weblogic console
• Log in to the administration serer (htt!1>/.1:=.5:.100;006console).
• 'n the K*omain tructureK tree4 e"!and the K?nironmentK node and clic2 onthe K8achinesK node.
• 'n the right-hand !ane4 clic2 on the #rst machine (mac1nod).
• lic2 on the K8onitoringK tab. be !atient. This ma ta2e a little time the #rsttime ou do it.
• '$ the status is K&eachableK4 eerthing is #ne.
• &e!eat $or the second machines (mac/nod)
) no*$p +-%#/serer/bin/startodeanager.s* /de/n$ll 241 4
-ote,hec2 all serers are started in !roduction mode through serer logs which isstarted $rom machine/4 i$ an serers started in deelo!ment mode then chec2below o!tion whether
-
8/17/2019 Clustering With Two Weblogic Machines
17/17