Learn Oracle WebLogic Server 12c Administration
-
Upload
raastech -
Category
Technology
-
view
606 -
download
13
Transcript of Learn Oracle WebLogic Server 12c Administration
Raastech Inc2201 Cooperative Way Suite 600Herndon VA 20171+1-703-884-2223inforaastechcom
Learn Oracle WebLogic Server 12c AdministrationFor Middleware Administrators
Tuesday March 15 2016Session 4 230 - 330 pm
Center Lounge
copy Raastech Inc 2016 | All rights reserved Slide 2 of 81Raastech
Agenda
1 Introduction
2 Why This Presentation
3 Oracle Fusion Middleware Overview
4 WebLogic Server Terminology
5 Configuration amp Changes
6 Configuration Wizard
7 Administration Console
8 WebLogic Scripting Tool (WLST)
9 Verification
10 Targeting
11 ServerService Auto-Migration
12 Live Walkthrough
13 Recap
copy Raastech Inc 2016 | All rights reserved Slide 3 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 4 of 81Raastech
About Me
Ahmed Aboulnaga Ahmed_Aboulnaga
18+ years Oracle experience
Author of ldquoOracle SOA Suite 11g Administratorrsquos Handbookrdquo
Author of ldquoOracle SOA Suite 12c Administratorrsquos Guiderdquo
Technical editor of ldquoOracle WebLogic 11g Administration Handbookrdquo
OCE (SOA Foundation Practitioner)
OCA (Oracle Application Server)
Oracle ACE
copy Raastech Inc 2016 | All rights reserved Slide 5 of 81Raastech
About Raastech
Small systems integrator founded in 2009
Headquartered in the Washington DC area
Specializes in Oracle Fusion Middleware
Oracle Platinum Partner 1 in 3000 worldwide
Oracle SOA Specialized 1 in 1500 worldwide
Oracle ACEs 2 in 600 worldwide
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 2 of 81Raastech
Agenda
1 Introduction
2 Why This Presentation
3 Oracle Fusion Middleware Overview
4 WebLogic Server Terminology
5 Configuration amp Changes
6 Configuration Wizard
7 Administration Console
8 WebLogic Scripting Tool (WLST)
9 Verification
10 Targeting
11 ServerService Auto-Migration
12 Live Walkthrough
13 Recap
copy Raastech Inc 2016 | All rights reserved Slide 3 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 4 of 81Raastech
About Me
Ahmed Aboulnaga Ahmed_Aboulnaga
18+ years Oracle experience
Author of ldquoOracle SOA Suite 11g Administratorrsquos Handbookrdquo
Author of ldquoOracle SOA Suite 12c Administratorrsquos Guiderdquo
Technical editor of ldquoOracle WebLogic 11g Administration Handbookrdquo
OCE (SOA Foundation Practitioner)
OCA (Oracle Application Server)
Oracle ACE
copy Raastech Inc 2016 | All rights reserved Slide 5 of 81Raastech
About Raastech
Small systems integrator founded in 2009
Headquartered in the Washington DC area
Specializes in Oracle Fusion Middleware
Oracle Platinum Partner 1 in 3000 worldwide
Oracle SOA Specialized 1 in 1500 worldwide
Oracle ACEs 2 in 600 worldwide
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 3 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 4 of 81Raastech
About Me
Ahmed Aboulnaga Ahmed_Aboulnaga
18+ years Oracle experience
Author of ldquoOracle SOA Suite 11g Administratorrsquos Handbookrdquo
Author of ldquoOracle SOA Suite 12c Administratorrsquos Guiderdquo
Technical editor of ldquoOracle WebLogic 11g Administration Handbookrdquo
OCE (SOA Foundation Practitioner)
OCA (Oracle Application Server)
Oracle ACE
copy Raastech Inc 2016 | All rights reserved Slide 5 of 81Raastech
About Raastech
Small systems integrator founded in 2009
Headquartered in the Washington DC area
Specializes in Oracle Fusion Middleware
Oracle Platinum Partner 1 in 3000 worldwide
Oracle SOA Specialized 1 in 1500 worldwide
Oracle ACEs 2 in 600 worldwide
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 4 of 81Raastech
About Me
Ahmed Aboulnaga Ahmed_Aboulnaga
18+ years Oracle experience
Author of ldquoOracle SOA Suite 11g Administratorrsquos Handbookrdquo
Author of ldquoOracle SOA Suite 12c Administratorrsquos Guiderdquo
Technical editor of ldquoOracle WebLogic 11g Administration Handbookrdquo
OCE (SOA Foundation Practitioner)
OCA (Oracle Application Server)
Oracle ACE
copy Raastech Inc 2016 | All rights reserved Slide 5 of 81Raastech
About Raastech
Small systems integrator founded in 2009
Headquartered in the Washington DC area
Specializes in Oracle Fusion Middleware
Oracle Platinum Partner 1 in 3000 worldwide
Oracle SOA Specialized 1 in 1500 worldwide
Oracle ACEs 2 in 600 worldwide
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 5 of 81Raastech
About Raastech
Small systems integrator founded in 2009
Headquartered in the Washington DC area
Specializes in Oracle Fusion Middleware
Oracle Platinum Partner 1 in 3000 worldwide
Oracle SOA Specialized 1 in 1500 worldwide
Oracle ACEs 2 in 600 worldwide
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 7 of 81Raastech
Oracle WebLogic Server
Industryrsquos leading Java EE application
server
Over 120000 customers
Leader in Gartnerrsquos Magic Quadrant
for Enterprise Application Servers
httpwwworaclecomusproductsmiddlewareapplication-serveroracle-weblogic-server-ds-1391360pdf
httpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-server-whitepaper-1-134488pdf
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 8 of 81Raastech
Oracle WebLogic Server is also the foundation for most Oracle
products including Fusion Middleware and applications
OEM Cloud
Control OBIEEAccess
Manager SOA SuiteWebCenter
Portal
Data
Integrator
Oracle WebLogic Server
Clustering ndash JNDI ndash Resource Adapters ndash JDBC ndash Security ndash Self Tuning
Oracle WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 10 of 81Raastech
Understanding Oracle Fusion Middleware
ldquoOracle Fusion Middlewarerdquo is a misleading term
Used to describe middleware products such as
Business Intelligence (eg OBIEE Discoverer)
Integration (eg SOA Suite OSB)
Web Center (Web Center Content and Portal)
Identity Management (eg Oracle Access Manager)
Monitoring (eg OEM Grid Control)
But usually used to describe a single product
WebLogic Server
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 11 of 81Raastech
Oracle Fusion Middleware Overview
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 12 of 81Raastech
Oracle WebLogic Server
Java Enterprise Edition (Java EE) application server
Acquired from BEA in 2008
Replaced old school Oracle Application Server
Required for almost all Oracle Fusion Middleware products
Supports the deployment of many distributed applications
Provides a standard set of APIs for creating distributed Java
applications that can access a wide variety of services such as
JMS JDBC RMI Web Services XML EJB etc
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 13 of 81Raastech
Current Releases and Installers
Current releases
Oracle WebLogic Server 12c R2 (1221)
Oracle WebLogic Server 12c (1212 and 1213)
Installers can be downloaded through
Oracle Software Delivery Cloud (httpedeliveryoraclecom)
Oracle OTN Network (httpdownloadoraclecom)
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 14 of 81Raastech
Installer Types
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 16 of 81Raastech
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 17 of 81Raastech
base_domain
Components
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 18 of 81Raastech
base_domain
Components
AdminServer
Port 7001
UnixDev1 UnixDev3UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 19 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
UnixDev1 UnixDev3
Machine Apple
soa_server1
Port 8001
UnixDev2
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 20 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 21 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 22 of 81Raastech
base_domain
Components
Machine BananaMachine Peach
soa_server2AdminServer
Port 7001 Port 8001
Port 5556
UnixDev1 UnixDev3
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
UnixDev2
Node Manager
Unix Server Domain AdminServer Machine Managed Server Node Manager Cluster
soa_cluster
Load Balancer
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomain
Logically related group of WebLogic Server
instances that can be managed from a single
set of configuration files
Domain consists of
Servers
Clusters of servers
Each Domain requires an Administration Server
All managed servers in a cluster must be part of
same domain
Domain can spread across many machines but
the WebLogic version has to be the same
AdminServer
soa_cluster
soa_server1
soa_server2
osb_cluster
osb_server1
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)
Controls configuration for the domain
Only one AdminServer per domain
AdminServer can only control one domain
Hosts the Administration Console
Enables you to start and stop servers from
a central location
Enables you to migrate servers and
services within the domain
Enables you to deploy applications within
the domain
soa_server1
osb_server1
AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Server Managed Servers host business applications
application components web services and their
associated resources
Each Managed Server can function independent
of other Managed Servers in the domain
Managed Servers do not share resources such
JDBC JMS and connection factories
Individual Managed Servers are typically added
for capacity and application isolation
Each Managed Server stores a local copy of its
configuration
JNDI
JMS Queue
JDBC Pool
soa_server1
JNDI
JDBC Pool
osb_server1
configxml
configxml
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Cluster
A cluster is a group of Managed Servers
running simultaneously and working
together to provide
Scalability through parallelism
ReliabilityAvailability through replication
and redundancy
A Cluster is part of a single domain and
each domain can contain multiple clusters
Domain can contain clustered and non-
clustered managed servers
Clusters enable some advanced features
such as Whole Server Migration Service
Migration and clustered JMS destinations
Machine KiwiMachine Apple
osb_cluster
soa_cluster
osb_server1
Port 8011
osb_server2
Port 8011
soa_server2
Port 8001
soa_server1
Port 8001
AdminServer
Port 7001
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
JSPs and Servlets load balancing is external
Web server proxy plug-in (round robin)
HTTP proxy servlet (ie using WLS as a load balancer)
3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
EJBs and RMI Objects load balancing is done at connection
Objects are cluster-aware
Load balancing algorithm is stored in the clustered objectrsquos stub
Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
Servlets and JSPs
HTTP session state is replicated to a secondary server in the cluster
or to a database
EJBs and RMI Objects
Replicas available throughout the cluster
Exceptions caught and retried on another instance
For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Manager
Process running on a physical server that enables
you to start stop suspend and restart WebLogic
Server instances remotely
Runs on each physical server that hosts WebLogic
Server instances
Not associated with a domain Can start any server
instance that resides on the same physical server
Node Manager is optional but required to startstop
servers using the Administration Console
Required for Whole Server Migration and for some
configurations of Automatic Service Migration Machine Banana
soa_server2
Port 8001
Port 5556
Machine Apple
Node Manager
Port 5556
soa_server1
Port 8001
Node Manager
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machine
A definition that identifies a particular
physical piece of hardware
A machine definition is used to associate a
computer with the Managed Servers it hosts
Used by Node Manager in restarting a failed
Managed Server
Used by a clustered Managed Server in
selecting the best location for storing
replicated session data SOAHOST2
soa_server2
unixdev3raastechcom
SOAHOST1
soa_server1
unixdev2raastechcom
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 31 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 33 of 81Raastech
Main Configuration Files (configxml)
ltdomain (schema locations)gt
ltnamegtwl_serverltnamegt
ltsecurity-configurationgtltsecurity-configurationgt
ltjtagtltjtagt
ltservergt
ltnamegtexamplesServerltnamegt
ltservergt
ltapp-deploymentgtltapp-deploymentgt
ltjms-servergtltjms-servergt
ltjms-system-resourcegtltjms-system-resourcegt
ltjdbc-system-resourcegt
ltnamegtexamples-demoltnamegt
lttargetgtexamplesServermanagedServer-0lttargetgt
ltdescriptor-file-namegtjdbcexamples-demoxmlltdescriptor-file-namegt
ltjdbc-system-resourcegt
ltdomaingt
configxml
ltjdbc-data-sourcegt
ltnamegtexamples-demoltnamegt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-driver-paramsgtltjdbc-driver-paramsgt
ltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domain
bull Includes the configuration of each server
instance cluster resource and service in the domain
bull References additional XML files that are stored in subdirectories of the domain config directory
JMS JDBC WLDF and Security
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changes
Changes activated in batches for reliability amp consistency
Make (related) changes as a group
Validate before making the change
Activate or rollback as a single unit (all changes on all servers)
General process
1 ldquoLock amp Editrdquo
2 Make changes
Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin
Console or WLST)
Changes are distributed to servers in the domain
Two phases prepare amp commit
Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard
1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizard
u01apporaclefmw12cuser_projectsdomainstestdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard
File system
u01apporaclefmw12c
oracle_common
common
nodemanager
user_projects
domains
devdomain
testdomain
wlserver
bull AdminServer running on port 7001bull Has its own copy of ldquoconfigxmlrdquo
bull Single Node Manager binaries and logs for this entire host
bull AdminServer running on port 7003bull Has its own copy of ldquoconfigxmlrdquobull This domain is managed completely
independently of the other one but they both share the same WebLogic binariesbull WebLogic binaries
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
Wizard that walks you through domain creation offline
Not intended to run against a running domain
WLS ships with a default template and templates for samples domains
Customers and layered products can create their own templates
Domain creation can be automated using WLST Scripts
Platform or Operating System Independent
Is used for creation of clustered and non-clustered domains
Is also used for extending an existing domain to add new managed servers components and features
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 39 of 81Raastech 39
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 40 of 81Raastech
Configuration Wizard
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
Administration console can be accessed through
httphostname7001console
Administration Console is used for
Configure start and stop Managed Server instances
Configure WebLogic Server clusters
Configure WebLogic Server services such as database
connectivity (JDBC) and messaging (JMS)
Configure security parameters including managing users
groups and roles
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 43 of 81Raastech
Administration Console
Configure and deploy your applications
Monitor server and application performance
View server and domain log files
View application deployment descriptors
Edit selected run-time application deployment descriptor elements
Control (start stop and restart) managed Coherence servers
Create and configure Coherence clusters
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 44 of 81Raastech
Administration Console
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)
Scripting tool for administering a domain (create configure manage monitor deploy applications)
Based on Jython which is a pure Java implementation of Python
Great for automating repetitive tasks
WLST online commands do not require a WebLogic Installation
Can run with little to no change across different operating systems
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 47 of 81Raastech
WebLogic Scripting Tool (WLST)
export ORACLE_HOME=u01oracleproductsfmw12c
export WL_HOME=$ORACLE_HOMEwlserver
$WL_HOMEcommonbinwlstsh
wlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstsh
startServer(AdminServer soa_domain t3adminhost7001 weblogic
welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain
true 60000 false)
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogic welcome1 t3adminhost7001)
wlssoa_domainserverConfiggt start(soa_server1 Server)
wlssoa_domainserverConfiggt start(soacluster Cluster)
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager Verification
Check running processps -ef | grep NodeManager | grep ndashv grep
If nothing is returned then Node Manager is likely not running Otherwise this output will appearoracle 24081 21990 0 0538 pts1 000000 binsh startNodeManagersh
oracle 24083 24081 0 0538 pts1 000000 binsh u01share
middlewareoraclewlserverserverbinstartNodeManagersh
oracle 24122 24083 25 0538 pts1 000023
u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m
-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01share
middlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log file
ltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started on
port 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v grep
tcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) Verification
Check running processps -ef | grep AdminServer | grep -v grep
If nothing is returned then AdminServer is likely not running Otherwise this output will appearoracle 24320 24243 3 0540 pts1 000600 u01sharemiddleware
jdk170_15binjava -client -Xms768m -Xmx1536m -XXPermSize=256m
-XXMaxPermSize=768m -DweblogicName=AdminServer
Check port listeningnetstat -an | grep LISTEN | grep 7001 | grep -v grep
tcp 0 0 ffff721785052157001 LISTEN
tcp 0 0 17001 LISTEN
tcp 0 0 ffff1270017001 LISTEN
tcp 0 0 fe8020c29fffe547c7001 LISTEN
Check nohupout (or serverout) log file should have the following entryltAug 25 2014 54511 AM EDTgt ltNoticegt ltWebLogicServergt ltBEA-000360gt ltThe server
started in RUNNING modegt
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) Verification
Check state through WLST
$WL_HOMEcommonbinwlstsh
wlsofflinegt connect(weblogicwelcome1)
wlssoa_domainserverConfiggt state(soa_server1)
Current state of soa_server1 RUNNING
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 52 of 81Raastech
Administration Console Verification
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData Source
EbizDSMin Connections 30Max Connections 30
Data Source
EbizDSMin Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
Targeting
Application
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
Targeting
Application
MOUS-BottomUphttp1270018001MOUS-BottomUpindexjsp
Application
MOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 61 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 62 of 81Raastech
Whole Server Migration ndash UselessSucks
UnixDev1 UnixDev2
soa_server2
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 63 of 81Raastech
Whole Server Migration
UnixDev1
soa_server1
UnixDev2
soa_server2
Whole server migration allows the failover of a managed server to
another machine
UnixDev3
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 64 of 81Raastech
Whole Server Migration
UnixDev1 UnixDev2
soa_server2
UnixDev3
soa_server1
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 65 of 81Raastech
Whole Server Migration
Lease information can be stored
in a database table
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 66 of 81Raastech
Whole Server Migration
If a lease is expired managed
server can be migrated to an
alternate machine
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 67 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 68 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
Java code publishes100 messages
to a JMS queue
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 69 of 81Raastech
Without JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
100 messages
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 70 of 81Raastech
With JMS Server Migration
soa_server1 soa_server2
JMS2
PersistentStore1sharebase_domainsitejms1dat
PersistentStore2sharebase_domainsitejms2dat
JMS1
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 71 of 81Raastech
ServerService Migration
Configure you cluster
Read up on ldquomigratable targetsrdquo
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 73 of 81Raastech
WebLogic Server Architectural Considerations
Typically fronted by WebTierOHSApache but with with the newer versions you can use web sockets
Requires JDK
Requires shared filesystem or a DB for setting up highly available clusters
WebLogic Server WebLogic Server WebLogic Server
Shared File System
WebTier WebTier WebTier
Single AdminServer to administer entire
cluster Node Manager runs on every
server
Hardware load balancer
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 74 of 81Raastech
Key Things to Consider
Plan your environment based on the key business factors
Functionality
Availability
Throughput
Future Growth Easy Scaling
Implement the best practices starting with lower environments
Automate every task that can be automated
Secure environments to avoid non-functional and human breaches
All environments need to have a backup and recovery plan
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 75 of 81Raastech
Oracle WebLogic Server 12c R2 New Features
New with Oracle WebLogic Server 12c (1221)
Partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 78 of 81Raastech
Recap Questions
What is the latest version of WebLogic Server
What is a managed server
What are some of the disadvantages of Whole Server Migration
What is the main configuration file called
What does WLST stand for
What is a benefit of using WLST
Can you start up a managed server without Node Manager
Why would you want to configure JMS server migration
Does a domain have to have an AdminServer
What problems will happen if AdminServer is down
Must the AdminServer reside on its own separate physical box
What is Oracle Fusion Middleware
Does each managed server maintain itrsquos own copy of ldquoconfigxmlrdquo
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 79 of 81Raastech
References and Useful Resources
httpsdocsoraclecomcdE24329_01web1211e24446introhtmINTRO123
httpsdocsoraclecommiddleware1213wlsINTROadminconsolehtmINTRO146
httpswwwpacktpubcomapplication-developmentoracle-soa-suite-12c-
administrators-guide
httpblograastechcom
httpmiddlewaremagiccomweblogic
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 80 of 81Raastech
Contact Information
Ahmed Aboulnaga
Technical Director
Ahmed_Aboulnaga
ahmedaboulnagaraastechcom
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA