You are on page 1of 13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

OracleWebLogicServer12c:CreatingaBasicCluster

Overview

Purpose
ThistutorialshowsyouhowtousetheOracleWebLogicServer12cadministrationconsoletoconfigureabasiccluster.

TimetoComplete
Approximately1/2hour

Introduction
AWebLogicServerclusterconsistsofmultiplemanagedserversrunningsimultaneously,runningthesameapplications,andworkingtogethertoprovide
increasedscalabilityandreliability.AclusterappearstoaclientasoneWebLogicServerinstance.Webapplicationclientrequestsgototheclusterproxy,
whichpassesthoserequeststooneoftheserversinthecluster.Aclusterproxycanbeawebserver,ahardwareloadbalancer,orevenanotherinstance
ofWebLogicServeritself.Themanagedserversthatmakeupaclustercanrunonthesamemachineorondifferentmachines.Forincreasedreliability,
managedserversinaclustertypicallyrunonmorethanonemachine.
ThistutorialshowsyouhowtousetheOracleWebLogicServer12c(12.1.3)administrationconsoletocreateabasicclusterandaddserverstoit.
Additionaltutorialsextendthiscluster'scapabilitiestosupportloadbalancingandfailoverofJavaPlatform,EnterpriseEditionapplications.

HardwareandSoftwareRequirements
OracleLinux5.6+
OracleWebLogicServer12c(12.1.3)

Prerequisites
Beforestartingthistutorial,youshouldhavecompletedtheOraclebyExampletutorialstitled:
1. OracleWebLogicServer12c:InstallingWebLogicServerandCreatingaDomain
2. OracleWebLogicServer12c:ConfiguringManagedServers

CreatingaClusterofExistingServers

Tocreateaclusterofexistingmanagedservers,performthefollowingsteps:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

1/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

1. Iftheadministrationserverofthedomainisnotalreadyrunning,startit.
a. OpenaTerminalwindowandnavigatetothedomaindirectory.Inthistutorial,thedomaindirectoryis/scratch/domains/mydomain.
b. Inthedomaindirectory,enterthefollowingcommand:$>./startWebLogic.sh.

c. Attheprompt,enterthecredentialsofthedomainadministrator.Inthistutorial,theusernameisweblogicandthepasswordis
Welcome1.
Note:Thepasswordisnotdisplayed.

2. Ifanyofthemanagedserversofthedomainarerunning,shutthemdown.
a. OpenawebbrowserandentertheURLfortheadministrationconsole:http://hostname:port/console.Inthistutorial,theURLis
http://<ip_address>:7001/console.
Note:Replace<ip_address>withthehostnameorIPaddressofyouradministrationserver.
b. OntheWelcomescreen,loginwiththeusernameandpasswordthatyouenteredtostarttheadministrationserver.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

2/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

c. Intheadministrationconsole,underDomainStructure,expandEnvironment,andthenclickServers.
d. OntheControltab,underSummaryofServers,selectthecheckboxforeachrunningmanagedserver,andthenselectForceShutdown

NowfromtheShutdownlist.
e. Attheprompttoconfirmtheforcedshutdown,clickYes,refreshyourbrowser,andensurethatallmanagedserversshowthe

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

3/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

SHUTDOWNstate.
3. Creatingaclusterisachangetothedomain'sconfiguration,soyoumustfirstlocktheconfiguration.IntheChangeCenter,clickLock&Edit.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

4/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

4. UnderDomainStructure,expandEnvironment,clickClusters,andthenselectClusterfromtheNewlistabovetheClusterstable.

5. OntheCreateaNewClusterpage,entercluster1forthename,selectUnicastforthemessagingmode,leaveUnicastBroadcastChannel
blank,andthenclickOK.
Note:BecauseUnicastisselected,thetwoMulticastfieldsaredisabled.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

5/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

Amessageindicatesthattheclusterwascreatedsuccessfully.
6. IntheClusterstable,clickcluster1(thenameofthenewcluster).In"Settingsforcluster1,"clicktheConfigurationtabandtheServerssubtab,
andthenclickAddintheServerstable.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

6/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

7. OntheAddaServertoClusterpage,ensurethatSelectanexistingserver,andadditasamemberofthisclusterisselected,selecta
managedserver,andthenclickFinish.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

7/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

8. Repeatstep7toaddthetworemainingmanagedserverstothecluster.

9. IntheChangeCenter,clickActivateChanges.

Thefollowingmessageisdisplayed:"Allchangeshavebeenactivated.Norestartsarenecessary."

StartingtheClusteredServers

Tostartthemanagedserversthatarenowpartofacluster,performthefollowingsteps:
1. Startserver1.
a. OpenaTerminalwindowandnavigatetothebindirectoryunderyourdomaindirectory.Inthistutorial,thedomaindirectoryis
/scratch/domains/mydomain.
b. Enterthefollowingcommand:startManagedWebLogic.sh.
Thiscommandtakestwoarguments:
Thenameofthemanagedserverthatyouwanttostart
TheURLoftheadministrationserver
Inthistutorial,thoseargumentsare:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

8/13

8/4/2015

Inthistutorial,thoseargumentsare:

OracleWebLogicServer12c:CreatingaBasicCluster

server1
http://<ip_address>:7001
Note:Replace<ip_address>withthehostnameorIPaddressofyouradministrationserver.

c. Atthepromptforausernameandpassword,enterthecredentialsofthedomainadministrator.
Note:Thepasswordisnotdisplayed.
2. IntheTerminalwindow,lookformessagesfromthe<Cluster>subsystem,andnoticethemessagethatindicatestheserverislisteningfor
communicationfromotherclustermembers.Toensurethattheserverstartssuccessfully,waitforthefollowingmessage:Theserverstarted
inRUNNINGmode.

3. IntwootherTerminalwindows,repeatsteps1and2tostarttheserver2andserver3managedservers.

MonitoringtheCluster
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

9/13

8/4/2015

MonitoringtheCluster

OracleWebLogicServer12c:CreatingaBasicCluster

TomonitortheclusterbyusingtheWebLogicServeradministrationconsole,performthefollowingsteps:
1. Intheadministrationconsole,underDomainStructure,expandEnvironment,clickClusters,andthenclickcluster1intheClusterstable.

2. Under"Settingsforcluster1,"clicktheMonitoringtabandtheSummarysubtab.

3. ThetableundertheSummarysubtabindicatesthatallthreemanagedserversarecurrentlyparticipatinginthecluster.Otherclusterinformation
isalsodisplayed.Toseeevenmoreinformationinthetable,clicktheCustomizethistablelink.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

10/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

4. IntheAvailablearea,selectcolumnsofinterest,clicktherightarrowtoaddthemtotheChosenarea,andthenclickApply.
YoucanalsomovecolumnsthatdonotinterestyoufromChosentoAvailable.

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

11/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

Summary

Inthistutorial,youlearnedhowto:
Usetheadministrationconsoletodefineanewcluster
Addserverstoacluster
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

12/13

8/4/2015

OracleWebLogicServer12c:CreatingaBasicCluster

Addserverstoacluster
Useserverlogmessagestoconfirmaserver'sparticipationinacluster
Usetheadministrationconsoletomonitoracluster

Resources
FordocumentationonOracleWebLogicServer12c(12.1.3),visittheOracleWebLogicServerDocumentationLibrary.
Formoreinformationoncreatingandconfiguringclusters,seetheCreateandconfigureclusterssectionoftheadministrationconsoleonlinehelp.
Formoreinformationonclustersingeneral,seetheAdministeringClustersforOracleWebLogicServerdocument.
TolearnmoreaboutOracleWebLogicServer,refertoadditionalOBEsintheOracleLearningLibrary.

Credits
LeadCurriculumDeveloper:BillBell
OriginalOraclebyExampletutorialforversion11gcreatedby:TJPalazzolo
OtherContributors:SusanMoxley

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/05/05CreateCluster/createcluster.html

13/13