oracle weblogic server 12c: seamless oracle database integration (with nec, openworld, 2014)
DESCRIPTION
Oracle WebLogic Server is the application server that offers the best integration with Oracle Database, including strong integration with Oracle Database advanced features. This session covers integration in areas such as Oracle Database’s Application Continuity feature and Oracle WebLogic Server’s Active GridLink for RAC feature, which provide mission-critical applications with high availability despite database outages. It reviews test results demonstrating these benefits and discusses how the integration of Oracle WebLogic Server data sources with database-resident connection pooling allows for better sharing and more-efficient use of Oracle Database resources. As always, this presentation and forward-looking statements are protected by the included Safe Harbor slide.TRANSCRIPT
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle WebLogic Server 12c:Seamless Oracle Database Integration
Oracle WebLogic Product ManagementNEC Corporation
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor StatementThe following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
Oracle Confidential – Internal/Restricted/Highly Restricted 3
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Introduction
WebLogic 12c integration to DB12c features
Planned and Unplanned outages WLS and AC
NEC tests and results
What is coming in WebLogic 12.2.1
Q&A
1
2
3
4
5
6
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Introduction to NEC
Yuki Moriyama,Senior ManagerNEC Corporation
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted
WebLogic 12c integration to Oracle DB12c features
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
• High Availability with Application Continuity
• Scalability with Mutitenancy at the Database Tier
• Scalability with Database Resident Connection Pooling
• HA and DR with Global Data Services
Integration
Oracle WebLogic Server Integration with Oracle Database 12c
Application Continuity
Database Resident
Connection Pool
Global Data Services
Multitenant Database
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Insert Picture Here
• Replays WebLogic Application work on recoverable errors
• Masks many hardware, software, network, storage errors and outages
• Oracle RAC, RAC One, & Active Data Guard
• Improves end-user experience
High Availability
Application Continuity
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
PDB1 PDB 2 PDB 3 PDB 4 PDB 5
Container Database
• Consolidate all Databases into one container Database.
• Pluggable databases appear as regular databases to WebLogic
• Database Data isolation
• Better use of resources at the database tier.
Scalability and Better Resource Utilization
WebLogic Integration with Multitenant Database
Data-Source
1
WebLogic Domain
Data-Source
2
Data-Source
3
Data-Source
4
WebLogic Domain
Data-Source
5
Data-Source
6
Container Database
PDB 6
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
DRCP
WebLogic
Busy Idle
Database 12c
WebLogic WebLogic WebLogic
• Better sharing and more efficient use of Database resources
• DRCP pools Database Sessions/Connections
• Added WebLogic deployments use the same number of Database Sessions/Connections
Improved DB Resource Utilization
Database Resident Connection Pooling
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Database Resident Connection Pooling
• DRCP pools database server processes and sessions
• The Connection Broker chooses the connection and hands it off to WLS.
• When the pooled servers are in use, they are equivalent to dedicated sessions.
• Releasing resources leaves the server processes intact, but no longer associated with a connection
WebLogic WebLogic
WebLogic WebLogic
DRCP
Pooled Servers
Connection Broker
Handoff
Handoff
AfterHandoffBefore
Handoff
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Australia Service
WebLogicApplications
South America
WebLogicApplications
Australia
SA Service
Australia Service
• Runtime load balancing of Global Services
• WebLogic reconnects transparently to the available services providing business continuity.
• Failover across the Data Centers
Global Data Services
High Availability of Global Services
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
FeatureWLS 10.3.6/12.1.1/12.1.2
WLS 10.3.6/12.1.
1 WLS 12.1.2 WLS 10.3.6/12.1.1 WLS 12.1.2
11g drivers 11gR2 DB
11g drivers 12c DB
12c drivers 11gR2 DB
12c drivers 11gR2 DB
12c drivers 12c DB
12c drivers 12c DB
Application Continuity No No No NoYes
(Active GridLink only, no XA)
Yes (Active GridLink and
Generic, no XA)
Multitenant Database Support No Yes No No Yes Yes
Multitenant Database w/Dynamic Switching No No No No No Yes
(No XA)
Database Resident Connection pooling No No No Yes No Yes
Global Database Services (GDS) No Yes (Active GridLink) No No Yes
(Active GridLink)Yes
(Active GridLink)
Most Complete DB 12c Support in WebLogic 12.1.2
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Fault Handling
At database outages 5 problems confront users and applications
1. Fault detection2. Recovery within response time targets3. Error Handling 4. Outcome of in-flight work5. Continuation of in-flight work
Maximum Application Availability
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Fast Application Notification
• Down – received in low ms to invoke failover
• Planned Down – drains sessions for planned maintenance with no user interruption whatsoever
• Up – Re-allocates sessions when services resume
• Load % - Advice to balance sessions for RAC locally and GDS globally
• Affinity - Advice when to keep conversation locality
Proven since 10g
12c: Auto-Configuration + Global Data Services
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Unplanned Down Events
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 17
Phases in Application Continuity
1 – Runtime Operation
•Demarcates database requests
• Tracks database operations and results
• Decides if an operation can or can not be replayed
2 – Reconnect
• Checks request has replay enabled (and not disabled by operations)
• Reserves a new session
3 – Replay
• Replays tracked operations
• Continues replay, if user visible results match, based on validations
• Continues request
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
WebLogic Server Integration to Application Continuity
• WebLogic DataSource marks request boundaries
• Database calls are “remembered” through commit
• On failure, the invalid DB session is replaced
• If it is safe and same results are returned to the application, operations are replayed
• Transparent to application!
RACNode 2
Listener
ONS
RACNode 3
Listener
ONS
RAC Cluster
Generic, Active GridLink Data Source
WebLogic Server
Application
RACNode 1
Listener
ONS
1. Request
2. Request
RACNode 1
Listener
ONS
3. Node 1 Down
RACNode 1
Listener
ONS
4. Init Callback
5. Replay
6. Response
7. Response
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Planned Down Events
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 20
Transparent Planned Outages with Active GridLink• When WLS receives FAN events
indicating Planned Down it will
– Redirect new work to other RAC instances
– Clean all idle connections in the pool
– Connections borrowed by applications are marked for cleanup
– Wait for work to complete ( drain work)
– After work is complete clean up connections
Get connection
Application Instance2
RAC DB
Instance1
Instance3
WebLogic Server
Instance Down
Get new connection
Drain Work
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – internal only, Restricted | 21
Transparent Planned Outages Across Data Centers
WebLogic Server
Webogic Domain
Active GridLink
RAC Node 1 RAC Node 2 RAC Node 3 RAC Node 1 RAC Node 2 RAC Node 3
Transaction DataJMS Store Data
Application Data
Transaction DataJMS Store Data
Application Data
DataGuard
SCAN
RAC Cluster RAC Cluster
•Do a graceful shutdown of the entire RAC cluster.•A FAN event is sent to Active GridLink.•Active GridLink will allow work to drain. •With no configuration changes required to WLS and no interruption to applications failover to secondary DB.•Upgrade primary DB•In the same fashion failback.
Primary Secondary
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
NEC’s WebLogic/RACIntegration Test
Yuuki Makita,Senior Software EngineerNEC Corporation
© NEC Corporation 2014 Page 23
Purpose of Our Test
High AvailabilityHigh Availability□ No service down in failure□ No service stop for
maintenance
NEC’s expectation to new functions
Easy to UseEasy to Use □ No code change□ No additional cost
Customer's request to NEC
© NEC Corporation 2014 Page 24
…
Oracle WebLogic Server 12c
Test items1. Unplanned Outages
2. Planned Outages Node maintenance RAC maintenance
3. MeasuringApplication Continuity Overhead
Varioushttpworkload
Oracle Database RAC 12cData Guard 12c
Active GridLink
andApplication Continuity
DataGuard
Test Items and Environment
Application Server
Database Servers
TEST RESULTSWebLogic/RAC Integration Test
© NEC Corporation 2014 Page 26
Test Items
1. Unplanned Outages
2. Planned Outages
3. Measuring Application Continuity Overhead
© NEC Corporation 2014 Page 27
The Expectation of Unplanned Outages Test
New technology:RAC 12c +
Active GridLink
Current technology:RAC 11gR2 +
Generic Datasource
SQL
Replay
SQL
• Long wait for Timeout• Error returns
• Prompt failure detection• No error and SQL replay
:: FAN
(Fast Application Notification)
:
measured measured
© NEC Corporation 2014 Page 28
Result of Unplanned Outages Test
1
2
WebLogic3,4
Oracle RAC
Application receives errors.
No error and SQL replay.
Public network failure1
Interconnect network failure2
Process down3
Process hang-up4
RAC 12c +Active GridLink
RAC 11gR2 +Generic Datasource
…can't detect in some situation.
30 sec
1 sec
1 sec
30 sec
1 sec
900sec (timeout)
Case:
© NEC Corporation 2014 Page 29
Solution for Process Hang-up Detection
Oracle RAC
Oracle RAC
WebLogic
FAN
EXPRESSCLUSTER
Process hang-up4
No error and SQL replay.
118 sec
EXPRESSCLUSTER
Application Continuity replays with no errorby NEC EXPRESSCLUSTER
Replay
SQLDetect hang-up and force OS shutdown
Detect node down and send FAN
hang-up
failure RAC server
available RAC server
RAC 12c + Active GridLinkwith EXPRESSCLUSTER
© NEC Corporation 2014 Page 30
Test Items
1. Unplanned Outages
2. Planned Outages
3. Measuring Application Continuity Overhead
© NEC Corporation 2014 Page 31
The Expectation of Planned Outages Test▌ Following two type of maintenance are tested.
We expect both case of maintenance are free from application stop and error. RAC shutdown
Grid Infrastructure maintenance Storage maintenance
Primary
Standby
Active
Active
Multi-RAC(Data Guard)
Node shutdown Applying Patch Set Update Configuration change Hardware maintenance
MaintenanceMaintenance DataGuard
© NEC Corporation 2014 Page 32
Results of Planned Outages Test
Both case of maintenance are freefrom application stop and error
120sec< 1sec
FAN
Connection retry toupgraded cluster
FAN
RAC sends FANwhen service stops.
DataGuard
Upgraded
Node shutdown RAC shutdown
© NEC Corporation 2014 Page 33
Details of Node Shutdown Case
Node#1
WebLogic
Only Node#2 Both Nodes
FANFAN
Node#2
Both Nodes
StopService
1 StopInstance
3 RestartInstance
4: request and response
No need to stop application by Active GridLink
Maintenance
RestartService
5
DrainSession
2
<1sec <1sec
© NEC Corporation 2014 Page 34
Details of RAC Shutdown Case
FAN
WebLogic
Stop Service1
FAN
StartInstance
120 secMaintenance
No need to stop application by Active GridLink and DataGuard
Connection retry by JDBC(RAC 12.1.0.2 new function)
Primary
Standby Primary
Standby
Swichover
RAC#1
RAC#2
Updated
Maintenance
4 StartService
5
2
3
: request and response
DrainSession
© NEC Corporation 2014 Page 35
1. Unplanned Outages
2. Planned Outages
3. Measuring Application Continuity Overhead
Test Items
© NEC Corporation 2014 Page 36
Measuring Application Continuity Overhead
▌We expected that Application Continuity overhead is small.
WebLogicOracle RAC
Application: Medrec(sample application of WebLogic)
Select andUpdate
Compared Test Cases:• Application Continuity ON OFF
Measured items:Response time, ThroughputCPU, Memory, Network I/O, Disk I/O
Client
25 threads10 min
© NEC Corporation 2014 Page 37
Result of Application Continuity Overhead Test
■ AC OFF■ AC ON
select & update05
101520
Response time (ms)
AP server CPU DB server CPU0.00
0.04
0.08
0.12
CPU per one transaction(%)
Memory (number of GC)0.000.050.100.150.200.25
Memory per one transaction
select & update0
200
400
600
Throughput (tx/s)
Application continuity overhead is very small.
5% 5%
8%
3%
2%
SUMMARYWebLogic/RAC Integration Test
© NEC Corporation 2014 Page 39
Summary of the Test
No service down in failure No service stop for
maintenance
No code change No additional cost
High AvailabilityHigh Availability
Easy to UseEasy to Use
NEC EXPRESSCLUSTER is necessary in some hang-up cases.
2. Planned Outages
1. Unplanned Outages
3. Measuring Application Continuity Overhead
NEC believes that high availability systemwill be easily built by WebLogic 12c and Database 12c.
© NEC Corporation 2014 Page 40
Future Plans
▌Making best practiceDetailed test
• Workload characteristics suitable for Application Continuity• Assessment, Sizing
Actual customer case▌Test in future
Active GridLink and RAC with clustering of WebLogic for system availability.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted
What is coming in WebLogic 12.2.1
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 44
WebLogic Server Roadmap
2009-2010 2011 2012 2013 2014 2015
WebLogic 11gR1 (10.3.1-6)
Oracle FMW 11g & Apps Manageability, Active GridLink,
Messaging, Coherence, OVAB Engineered Systems, Cloud JDK 6 and JDK 7 (WLS 10.3.6)
WebLogic 12c (12.1.2)
FMW 12c Infrastructure Mission Critical Cloud Platform Native Cloud Management Modern Development Platform JDK 7
WebLogic 12c (12.1.1)
Java EE 6 Developer Productivity, Oracle Traffic
Director, Disaster Recovery JDK 6 and JDK 7
WebLogic 12c (12.1.3) – June 2014 FMW 12c Infra, SOA, BPM, ODI XATransaction without Tlog feature with one participant TM Mission Critical Cloud Platform Native Cloud Management JDK 7 (post-GA JDK 8)
WebLogic 12cR2 (12.2.1) – CY2015
FMW 12c Platform WLS MultitenancyONS thread and socket optimizations Exalogic, HA and MAA XATransaction without Tlog feature with multiple participant TMs JDK 8
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.2.1 Multitenancy Concepts
• Introduce domain partition into WebLogic domains
• Apps and resources deployed for each partition (tenant)
• No application changes required
• Appropriate levels of end to end partition isolation:
• WebLogic infrastructure is shared among partitions
Managed Server/Cluster
Container Database
PDB1 PDB2
Virtual Host
App
App
JMS
Datasource
JNDI
Virtual Host
App
App
JMS
Datasource
JNDI
Partition 1 Partition 2
Web Tier
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
WebLogic 12.2.1 – JTA and Database Integration
• JTA and High Availability – Support “XATransactions without TLOG”
option for multi-TM participants– Expand support for DR configurations
• Density for GridLink deployments– ONS is reducing the number of sockets and
threads needed to manage FAN events.
• Application Continuity– Optimize connection harvesting on down
events
DeterminerRM 1
RM 2
TLog
4. ok
2. ok
8. okWLS Server Coordinator
(TM)
3. prepare
7. commit
1. prepare
6. ok
5. commit
No Transaction entry
WLS Server SubCoordinator
(TM)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – internal only, Restricted | 47
LLB/OTD
MS1 MS2 MS3
WLS Cluster 2MS1 MS2 MS3
WLS Cluster 1WLS
Admin
WebLogic Domain
C C CCoherence
File Store(Site Local Binaries, Config Data)
OHSWeb Tier
Management Console
Global Load Balancer
LLB/OTD
MS1 MS2 MS3
WLS Cluster 2MS1 MS2 MS3
WLS Cluster 1WLS
Admin
WebLogic Domain
C C CCoherence
File Store(Site Local Binaries, Config Data)
OHSWeb Tier
File Replication Technology
RAC Node 1 RAC Node 2 RAC Node 3 RAC Node 1 RAC Node 2 RAC Node 3
Transaction DataJMS Store Data
Application Data
Transaction Data
JMS Store DataApplication Data
Golden Gateor DataGuard
Site 1 Site 2
Session Replication
Active GridLink and SCAN
WebLogic 12.2.1 MAA - Active-Active Use Case
RAC Cluster RAC Cluster
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 48