Oracle Java is installed and downloaded on both the shared storage (for the MidTier installation) and the local storage (for the WebTier installation).
Both Java and Oracle Infrastructure will be installed on shared storage, which is accessible by both the nodes of nodes of the MidTier. The same applies to the installation of the initial Oracle Infrastructure as well:
source envMidTier.sh mkdir -p $JAVA_HOME cd $JAVA_HOME/.. tar -xzvf $SOFTWARE_DIR/jdk-7u55-linux-x64.tar.gz java -d64 -jar $SOFTWARE_DIR/fmw_12.1.3.0.0_infrastructure.jar
/u01/share/oracle/oraInventory
and then click on OK./u01/share/oracle/middleware/products/fmw1213
) and then click on Next.Java and the Oracle Infrastructure will be installed on local storage for the two WebTier servers. The following steps will help you do this:
source envWebTier.sh mkdir -p $JAVA_HOME cd $JAVA_HOME/.. tar -xzvf $SOFTWARE_DIR/jdk-7u55-linux-x64.tar.gz java -d64 -jar $SOFTWARE_DIR/fmw_12.1.3.0.0_infrastructure.jar
/u01/oracle/webtier/oraInventory
and then click on OK./u01/oracle/webtier/products/fmw1213
) and then click on Next.The Repository Creation Utility (RCU) is used to create the relevant database schemas. Go through the following steps to run the RCU:
source envMidTier.sh cd $ORACLE_HOME/oracle_common/bin ./rcu
DEV
.welcome1
) and then click on Next.A WebLogic domain will be created on the shared storage. Follow the given steps to create a new domain:
source envMidTier.sh $ORACLE_HOME/oracle_common/common/bin/config.sh
/u01/share/oracle/middleware/config/domains/soa_domain
) and then click on Next./u01/share/oracle/middleware/config/applications/soa_domain
) and then click on Next.welcome1
) and then click on Next.admin.packt.com
and then click on Next.weblogic
, but for Password, enter a password different from the one we used in the step 5 (for example, welcome2
).wls_wsm1
and wls_wsm2
, with the hostnames soahost1.packt.com
and soahost2.packt.com
, both listening on port 7010
. Select JRF-MAN-SVR, WSM-CACHE-SVR, and WSMPN-MAN-SVR for both records, as shown in the following figure.WSM-PM_Cluster
, then click on Next.9991
and click on Next.soahost1
, soahost2
, and adminhost
with the hostnames of your servers soahost1.packt.com
, soahost2.packt.com
, and adminhost.packt.com
, as shown in the following figure./u01/share/oracle/middleware/config/domains/soa_domain/WSM-PM_Cluster
).Node Manager is started up in the Admin Server domain directory on port 5556
.
On SOAHOST1, start Node Manager in the Admin Server domain:
cd $ASERVER_HOME/bin nohup ./startNodeManager.sh > nm.out&
Create the
boot.properties
file so that you are not prompted for the WebLogic username and password every time the Admin Server and managed servers are started up. Furthermore, this is also required to allow Node Manager to start up the managed server. Follow the next steps to create the boot.properties
file:
boot.properties
file:source envMidTier.sh mkdir -p $ASERVER_HOME/servers/AdminServer/security cd $ASERVER_HOME/servers/AdminServer/security echo "username=weblogic" > boot.properties echo "password=welcome1" >> boot.properties
boot.properties
to the rest of the managed server directories:mkdir -p $MSERVER_HOME/servers/wls_wsm1/security mkdir -p $MSERVER_HOME/servers/wls_soa1/security mkdir -p $MSERVER_HOME/servers/wls_osb1/security mkdir -p $MSERVER_HOME/servers/wls_ess1/security cp boot.properties $MSERVER_HOME/servers/wls_wsm1/security cp boot.properties $MSERVER_HOME/servers/wls_soa1/security cp boot.properties $MSERVER_HOME/servers/wls_osb1/security cp boot.properties $MSERVER_HOME/servers/wls_ess1/security
boot.properties
to the rest of the managed server directories:source envMidTier.sh cd $ASERVER_HOME/servers/AdminServer/security mkdir -p $MSERVER_HOME/servers/wls_wsm2/security mkdir -p $MSERVER_HOME/servers/wls_soa2/security mkdir -p $MSERVER_HOME/servers/wls_osb2/security mkdir -p $MSERVER_HOME/servers/wls_ess2/security cp boot.properties $MSERVER_HOME/servers/wls_wsm2/security cp boot.properties $MSERVER_HOME/servers/wls_soa2/security cp boot.properties $MSERVER_HOME/servers/wls_osb2/security cp boot.properties $MSERVER_HOME/servers/wls_ess2/security
To start up the Admin Server, perform the following steps:
cd $ASERVER_HOME/servers/AdminServer/logs nohup $ASERVER_HOME/bin/startWebLogic.sh > AdminServer.out &
http://admin.packt.com:7001/console
http://admin.packt.com:7001/em
Copy the newly created domain to the local storage for both MidTier nodes:
source envMidTier.sh cd $ORACLE_COMMON_HOME/common/bin ./pack.sh -managed=true -domain=${ASERVER_HOME} -template=soadomaintemplate.jar -template_name=soa_domain_template ./unpack.sh -domain=${MSERVER_HOME} -overwrite_domain=true -template=soadomaintemplate.jar -log_priority=DEBUG -log=/tmp/unpack.log -app_dir=$
source envMidTier.sh cd $ORACLE_COMMON_HOME/common/bin ./unpack.sh -domain=${MSERVER_HOME} -overwrite_domain=true -template=soadomaintemplate.jar -log_priority=DEBUG -log=/tmp/unpack.log -app_dir=${APPLICATION_HOME}
Start up Node Manager in the SOAHOST1 and SOAHOST2 domain directories using port 5557
. To do so, follow the given steps:
vi $MSERVER_HOME/nodemanager/nodemanager.properties
OLD: ListenAddress=adminhost.packt.com NEW: ListenAddress=soahost1.packt.com OLD: ListenPort=5556 NEW: ListenPort=5557
cd $MSERVER_HOME/bin nohup ./startNodeManager.sh > nm.out&
Via the WebLogic Server Administration Console, modify the Node Manager port 5557
to provide the ability to start up the MidTier managed servers from the console. To do so, go through the following steps:
http://admin.packt.com:7001/console
.5557
.The upload
and stage
directories for the WLS_WSM1 and WLS_WSM2 managed servers should be updated to use absolute paths. You can update them using the following steps:
http://admin.packt.com:7001/console
.Start up the WSM Managed Servers and verify that they are installed and running correctly. To do so, follow the given steps:
source envMidTier.sh mkdir -p $MSERVER_HOME/servers/wls_wsm1/logs cd $MSERVER_HOME/servers/wls_wsm1/logs nohup $MSERVER_HOME/bin/startManagedWebLogic.sh wls_wsm1 http://admin.packt.com:7001 > wls_wsm1.out &
source envMidTier.sh mkdir -p $MSERVER_HOME/servers/wls_wsm2/logs cd $MSERVER_HOME/servers/wls_wsm2/logs nohup $MSERVER_HOME/bin/startManagedWebLogic.sh wls_wsm2 http://admin.packt.com:7001 > wls_wsm2.out &
http://soahost1.packt.com:7010/wsm-pm/
http://soahost2.packt.com:7010/wsm-pm/
18.225.57.164