learn oracle weblogic server 12c administration
TRANSCRIPT
Raastech Inc2201 Cooperative Way Suite 600Herndon VA 20171+1-703-884-2223inforaastechcom
Learn Oracle WebLogic Server 12c AdministrationFor Middleware Administrators
Thursday March 3 2016800 - 850 am
Room 304
copy Raastech Inc 2016 | All rights reserved Slide 2 of 81Raastech
Agenda1 Introduction2 Why This Presentation3 Oracle Fusion Middleware Overview4 WebLogic Server Terminology5 Configuration amp Changes6 Configuration Wizard7 Administration Console8 WebLogic Scripting Tool (WLST)9 Verification10 Targeting11 ServerService Auto-Migration12 Live Walkthrough13 Recap
copy Raastech Inc 2016 | All rights reserved Slide 3 of 81Raastech
INTRODUCTION
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
WHY THIS PRESENTATION
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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 2 of 81Raastech
Agenda1 Introduction2 Why This Presentation3 Oracle Fusion Middleware Overview4 WebLogic Server Terminology5 Configuration amp Changes6 Configuration Wizard7 Administration Console8 WebLogic Scripting Tool (WLST)9 Verification10 Targeting11 ServerService Auto-Migration12 Live Walkthrough13 Recap
copy Raastech Inc 2016 | All rights reserved Slide 3 of 81Raastech
INTRODUCTION
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
WHY THIS PRESENTATION
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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 3 of 81Raastech
INTRODUCTION
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
WHY THIS PRESENTATION
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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WHY THIS PRESENTATION
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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WHY THIS PRESENTATION
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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 6 of 81Raastech
WHY THIS PRESENTATION
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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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-1391360pdfhttpwwworaclecomtechnetworkmiddlewareweblogicoverviewweblogic-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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 OBIEE
Access Manager SOA Suite WebCenter
PortalData
Integrator
Oracle WebLogic ServerClustering 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
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 9 of 81Raastech
ORACLE FUSION MIDDLEWARE OVERVIEW
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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 15 of 81Raastech
WEBLOGIC SERVER TERMINOLOGY
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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 23 of 81Raastech
base_domainDomainbull Logically related group of WebLogic Server instances
that can be managed from a single set of configuration files
bull Domain consists of
ndash Servers
ndash Clusters of servers
bull Each Domain requires an Administration Server
bull All managed servers in a cluster must be part of same domain
bull 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)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 24 of 81Raastech
Administration Server (aka AdminServer)bull Controls configuration for the domain
bull Only one AdminServer per domain
bull AdminServer can only control one domain
bull Hosts the Administration Console
bull Enables you to start and stop servers from a central location
bull Enables you to migrate servers and services within the domain
bull Enables you to deploy applications within the domain
soa_server1
osb_server1AdminServer
configxml
Admin Console
soa_server2
osb_server2
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 25 of 81Raastech
Managed Serverbull Managed Servers host business applications
application components web services and their associated resources
bull Each Managed Server can function independent of other Managed Servers in the domain
bull Managed Servers do not share resources such JDBC JMS and connection factories
bull Individual Managed Servers are typically added for capacity and application isolation
bull 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
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 26 of 81Raastech
Clusterbull A cluster is a group of Managed Servers running
simultaneously and working together to provide
ndash Scalability through parallelism
ndash ReliabilityAvailability through replication and redundancy
bull A Cluster is part of a single domain and each domain can contain multiple clusters
bull Domain can contain clustered and non-clustered managed servers
bull 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
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 27 of 81Raastech
Load Balancing in a Cluster
bull JSPs and Servlets load balancing is external
ndash Web server proxy plug-in (round robin)
ndash HTTP proxy servlet (ie using WLS as a load balancer)
ndash 3rd party hardware or software load balancer (F5 Big IP LTM or Cisco CSM)
bull EJBs and RMI Objects load balancing is done at connection
ndash Objects are cluster-aware
ndash Load balancing algorithm is stored in the clustered objectrsquos stub
ndash Objects are available on all cluster members remote objects connectuse according the LB algorithm in the stub
ndash Load balancing algorithms Round robin weighted random server affinity
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 28 of 81Raastech
Failover in a Cluster
bull Servlets and JSPsndash HTTP session state is replicated to a secondary
server in the cluster or to a database
bull EJBs and RMI Objectsndash Replicas available throughout the cluster
ndash Exceptions caught and retried on another instance
ndash For Stateful Session Beans state is replicated on a secondary server
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 29 of 81Raastech
Node Managerbull Process running on a physical server that enables you
to start stop suspend and restart WebLogic Server instances remotely
bull Runs on each physical server that hosts WebLogic Server instances
bull Not associated with a domain Can start any server instance that resides on the same physical server
bull Node Manager is optional but required to startstop servers using the Administration Console
bull 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
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 30 of 81Raastech
Machinebull A definition that identifies a particular
physical piece of hardware
bull A machine definition is used to associate a computer with the Managed Servers it hosts
bull Used by Node Manager in restarting a failed Managed Server
bull 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 32 of 81Raastech
CONFIGURATION amp CHANGES
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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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-sourcegtltnamegtexamples-demoltnamegtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-driver-paramsgtltjdbc-data-source-paramsgtltjdbc-data-source-paramsgt
ltjdbc-data-sourcegt
hellipreferences to other files
bull Central configuration file for a domainbull 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 Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 34 of 81Raastech 34
Two-Phase Configuration Changesbull Changes activated in batches for reliability amp consistency
ndash Make (related) changes as a group
ndash Validate before making the change
ndash Activate or rollback as a single unit (all changes on all servers)
bull General process
1 ldquoLock amp Editrdquo
2 Make changes
bull Changes are stored in the pending directory
3 Activate your changes (with implicit validation through the Admin Console or WLST)
bull Changes are distributed to servers in the domain
bull Two phases prepare amp commit
bull Prepared on all servers any failures will cause total rollback
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 35 of 81Raastech
CONFIGURATION WIZARD
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 36 of 81Raastech
Configuration Wizard1 Install software
u01apporaclefmw12c
2 Create domain using ldquoconfiguration wizardrdquo
u01apporaclefmw12cuser_projectsdomainsdevdomain
3 (optional) Create another domain using configuration wizardu01apporaclefmw12cuser_projectsdomains
testdomain
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 37 of 81Raastech
Configuration Wizard File system
u01apporaclefmw12coracle_common
commonnodemanager
user_projectsdomains
devdomaintestdomain
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
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 38 of 81Raastech 38
Configuration Wizard
bull Wizard that walks you through domain creation offline
ndash Not intended to run against a running domain
bull WLS ships with a default template and templates for samples domains
bull Customers and layered products can create their own templates
bull Domain creation can be automated using WLST Scripts
bull Platform or Operating System Independent
bull Is used for creation of clustered and non-clustered domains
bull 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 41 of 81Raastech
ADMINISTRATION CONSOLE
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 42 of 81Raastech
Administration Console
bull Administration console can be accessed through httphostname7001console
bull Administration Console is used for
ndash Configure start and stop Managed Server instances
ndash Configure WebLogic Server clusters
ndash Configure WebLogic Server services such as database connectivity (JDBC) and messaging (JMS)
ndash 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 45 of 81Raastech
WEBLOGIC SCRIPTING TOOL (WLST)
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 46 of 81Raastech
WebLogic Scripting Tool (WLST)bull Scripting tool for administering a domain (create configure manage monitor deploy applications)
bull Based on Jython which is a pure Java implementation of Python
bull Great for automating repetitive tasks
bull WLST online commands do not require a WebLogic Installation
bull 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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_HOMEcommonbinwlstshwlsofflinegt startNodeManager()
$WL_HOMEcommonbinwlstshstartServer(AdminServer soa_domain t3adminhost7001 weblogic welcome1 u01oracleproductsfmw12cuser_projectsdomainsmy_domain true 60000 false)
$WL_HOMEcommonbinwlstshwlsofflinegt 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
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 48 of 81Raastech
VERIFICATION
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 49 of 81Raastech
Node Manager VerificationCheck 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 startNodeManagershoracle 24083 24081 0 0538 pts1 000000 binsh u01sharemiddlewareoraclewlserverserverbinstartNodeManagershoracle 24122 24083 25 0538 pts1 000023u01sharemiddlewarejdk170_15binjava -client -Xms32m -Xmx200m-XXMaxPermSize=128m -DweblogicnodemanagerJavaHome=u01sharemiddlewarejdk170_15 weblogicNodeManager -v
Confirm a log entry similar to the following in the NodeManagerout log fileltAug 25 2014 53847 AM EDTgt ltINFOgt ltSecure socket listener started onport 5556 host localhost127001gt
Check port listeningnetstat -an | grep LISTEN | grep 5556 | grep -v greptcp 0 0 ffff1270015556 LISTEN
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 50 of 81Raastech
Managed Server (and AdminServer) VerificationCheck 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 u01sharemiddlewarejdk170_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 LISTENtcp 0 0 17001 LISTENtcp 0 0 ffff1270017001 LISTENtcp 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) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 51 of 81Raastech
Managed Server (and AdminServer) VerificationCheck state through WLST
$WL_HOMEcommonbinwlstshwlsofflinegt 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 53 of 81Raastech
TARGETING
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 54 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Host UNIXDEVSID ORCLPort 1521
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 55 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 56 of 81Raastech
TargetingData SourceEbizDS
Min Connections 30Max Connections 30
Data SourceEbizDS
Min Connections 30Max Connections 30
30 connections
30 connections
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 57 of 81Raastech
TargetingApplication
MOUS-BottomUp
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 58 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 59 of 81Raastech
TargetingApplication
MOUS-BottomUp http1270018001MOUS-BottomUpindexjsp
ApplicationMOUS-BottomUp http1270018003MOUS-BottomUpindexjsp
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 60 of 81Raastech
SERVERSERVICE AUTO-MIGRATION
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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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 publishes 100 messagesto 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 72 of 81Raastech
ARCHITECTURE
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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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)
Domain partitions to support multi-tenancy
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 76 of 81Raastech
LIVE WALKTHROUGH
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 77 of 81Raastech
QUIZ TIME
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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- 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
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-
copy Raastech Inc 2016 | All rights reserved Slide 81 of 81Raastech
QampA
- Slide 1
- Agenda
- Slide 3
- About Me
- About Raastech
- Slide 6
- Oracle WebLogic Server
- Oracle WebLogic Server (2)
- Slide 9
- Understanding Oracle Fusion Middleware
- Oracle Fusion Middleware Overview
- Oracle WebLogic Server (3)
- Current Releases and Installers
- Installer Types
- Slide 15
- Components
- Components (2)
- Components (3)
- Components (4)
- Components (5)
- Components (6)
- Components (7)
- Domain
- Administration Server (aka AdminServer)
- Managed Server
- Cluster
- Load Balancing in a Cluster
- Failover in a Cluster
- Node Manager
- Machine
- Administration Console
- Slide 32
- Main Configuration Files (configxml)
- Two-Phase Configuration Changes
- Slide 35
- Configuration Wizard
- Configuration Wizard (2)
- Configuration Wizard (3)
- Configuration Wizard (4)
- Configuration Wizard (5)
- Slide 41
- Administration Console (2)
- Administration Console
- Administration Console (3)
- Slide 45
- WebLogic Scripting Tool (WLST)
- WebLogic Scripting Tool (WLST) (2)
- Slide 48
- Node Manager Verification
- Managed Server (and AdminServer) Verification
- Managed Server (and AdminServer) Verification (2)
- Administration Console Verification
- Slide 53
- Targeting
- Targeting (2)
- Targeting (3)
- Targeting (4)
- Targeting (5)
- Targeting (6)
- Slide 60
- Whole Server Migration
- Whole Server Migration ndash UselessSucks
- Whole Server Migration (2)
- Whole Server Migration (3)
- Whole Server Migration (4)
- Whole Server Migration (5)
- Without JMS Server Migration
- Without JMS Server Migration (2)
- Without JMS Server Migration (3)
- With JMS Server Migration
- ServerService Migration
- Slide 72
- WebLogic Server Architectural Considerations
- Key Things to Consider
- Oracle WebLogic Server 12c R2 New Features
- Slide 76
- Slide 77
- Recap Questions
- References and Useful Resources
- Contact Information
- QampA
-