Professional Documents
Culture Documents
Oracle Weblogic Server Oracle Weblogic Server: Apac Weblogic Suite Workshop
Oracle Weblogic Server Oracle Weblogic Server: Apac Weblogic Suite Workshop
WebLogic Suite
Coherence EE WebLogic WLS Mgmt Pack IAS EE Java SE Suite
Server EE EE
• Data Grid • Active GridLink • Business • Forms & Reports • JRockit Mission
• TopLink Grid Transaction Control
• Active Cache & Management
Coherence*Web • Performance &
Diagnostics
• Lifecycle &
Configuration
Management
2
The 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.
Agenda
• Application Server Infrastructure at Oracle
• WebLogic RAC integration solutions
– WebLogic Multi Data Source
– WebLogic GridLink Data Source
– WebLogic GridLink Data Source Configurations
• WebLogic Active GridLink Features
– Fast Connection Failover
– Runtime Connection Load-Balancing
– Affinities (XA and WebSession Affinity)
– Connection Labeling
• DB Tlog and Proxy Authentication
• WebLogic GridLink Data Source Logging, Monitoring
• Competitive
Application Server Infrastructure at Oracle
Centered on WebLogic Server
Packaged SOA Cloud
Custom App
App Service Service
Application Grid
GlassFish Coherence
Developer WebLogic Enterprise
Tools Server Management
JRockit and HotSpot
3 Coherence
2 1 Integration
• ActiveCache New Jan 2011
Assembly Builder
• Java Virtualization New March 2011
Java SE Suite/EM
• Operations New May 2011 11g
Hardware/
• Exalogic Elastic Cloud New Jan 2011 Software Optimized
6
Extreme Java EE Performance
The power of using Active GridLink with Oracle RAC
250 450
(Higher is better)
400 (Lower latency is Better)
200 350
300
Tx/Sec
150
250
100 200
150
50
100
50
0
Update Insert Delete 0
CreateWS Purchase Manage Browse
Standard WebLogic Server GridLink for Exadata
Standard Platform Exalogic
7
WEBLOGIC & ORACLE RAC
8
Oracle RAC
Seamless Scalability
9
Oracle RAC
Flexibility, High Availability
11
WebLogic Server Multi Data Sources
8.1sp5, 9.x, 10, 10.3
JDBC Driver
Application A Exec
getConnection SQL
C
Data Source B
C C
Application N
Data Source C
C
WebLogic Server RAC
12
High Availability with Failover and Load Balancing
Multi Data Source Algorithms
13
Active GridLink for RAC
• Simpler Configuration: single data source
• Event-Based Model (ONS and FAN) for Adaptive Pool Management
• SCAN Support
• Fast Connection Failover
• Runtime Connection Load Balancing
• Affinities for Connection Routing (XA, Session, Data)
• WebLogic Connection Labeling
• Data Guard Support
• RAC One Node Support
WebLogic Domain Oracle Database
Database Notification
Service
Oracle
WebLogic Cluster Datasource
Node Manager
Managed GridLink
Server1 Data Source RAC Node 1 RAC Node 2
Service
Oracle
Managed RAC Aware
Server2 Connection Pool
RAC Node 3 RAC Node 4
Active GridLink for RAC for Fusion Middleware
Certification Targeted for Fusion Middleware 11g (10.3.6)
RAC (1)
Single WLS connection
Service A
Polling
pool for service A
ONS Daemon
Advisories
ONS Daemon
ONS client
UCP-RAC module
RAC (2)
Service A
SCAN
• A single name for clients to access Oracle Databases
running in a cluster
– Dynamic client configuration with backend changes
– Listener failover
– Connect time load balancing
• WebLogic Data Sources support for SCAN
– Generic Data Source – supports SCAN without runtime failover
and load-balancing
– Multi Data Source – support SCAN configuration, no real
functionalities
– Active GridLink- fully support SCAN
SCAN Configuration
ORCLservice =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sales1
scan.example.com)(PORT = 1521))
(CONNECT_DATA =
SERVER = DEDICATED)
(SERVICE_NAME = MyORCLservice)
))
WebLogic GridLink Configuration
GridLink Data Source SCAN Configuration
SCAN Address
GridLink Data Source SCAN Configuration
ONS Configuration
FAST CONNECTION FAILOVER
22
Customer Pain Points
• Database outages (servers, databases, storage, networks) have
a significant impact on the user experience.
RAC
Fail-over Handler Database
Thread
X
X
X
Start ONS Subscribe
X
Instance1
Instance2
Handle Event ONS Publish
WebLogic RAC Instance3
AwareConnection Pool
RUNTIME CONNECTION
LOAD BALANCING
27
Active GridLink for RAC
Runtime Connection Load Balancing – WebLogic Server 11g(10.3.4)
• Manages pooled connections for high performance and
scalability
• Receives continuous recommendations on the percentage of
work to route to Database instances
• Adjusts distribution of work based on different backend node
capacities such as CPU capacity or response time
• Reacts quickly to changes in Cluster Reconfiguration,
Application workload, overworked nodes or hangs
How RCLB Works
RAC
Database
30% connections
60% connections
Instance3
XA TRANSACTION AFFINITY
30
Active GridLink for RAC
XA Transaction Affinity – WebLogic Server 11g(10.3.4)
RAC
Database
TX Client 2
TX Client 1
Instance1
Instance2
WebLogic Connection
Pool
Connection
Affinity Context Instance3
How Transaction Based Affinity Works
34
Active GridLink for RAC
Web Session Affinity – WebLogic Server 11g(10.3.6)
Data
JSP Source
Instance1
Connect to me
Servlet Data
Source
Instance2
WebLogic Server Web Logic Connection
Pool
Connection
Affinity Context Instance3
How Web Session Based Affinity Works
200
150
100
50
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
30 second interval
38
CONNECTION LABELING
39
Active GridLink for RAC
Connection Labeling – WebLogic Server 11g(10.3.6)
• Database Connections are Expensive to create, setup, warm-up, hold and
destroy
• Performance feature that allows applications to request pre-configured
connections from the pool
• Typically used to offset connection setup and warm-up cost
• A connection label is defined as <key, value> pairs
• WebLogic Connection Pool allows applications to customize connections.
– NLS language
– Transaction isolation level
– ROLE
How Connection Labeling Works
Register Callback
Callback cost
20
10 30
Request Labels
Application
Callback configure
WebLogic Connection Pool
10
Return Connection
DATA GUARD SUPPORT
42
Active GridLink with Data Guard
Global Load Balancer
Active Site Standby Site
Web Tier Web Web Web Web
Web Tier
Server Server Server Server
GridLin
Configuration GridLin
Configuration
k Data k Data
Transaction Sourc
Logs Transaction Logs
Sourc
JMS Messages JMS Messages
46
Web Logic Data Base TLOG (Transaction Log)
• Disaster recovery: A robust site-wide disaster recovery solution is provided
where all data is consistent and synchronized.
• Admin: The Oracle database/data guard is easier to manage than shared
file systems and replication software
• Availability: The db tlogs store is extremely resilient in the face of database
access failures
• Cost: Shared storage, cost efficient solution
• Performance:
– There is no performance loss compare with file-based transaction logs
– optimal configurations a performance advantage may be seen
• Competitive: No other vendor provides database persistent of transaction
logs and the advantages listed
Current Guidance for Disaster Recovery
Architectures
Global Load Balancer
Active Site Standby Site
Web Tier Web Web Web Web
Web Tier
Server Server Server Server
Configuration Configuration
File Replication Technology
Transaction Logs Transaction Logs
Separate replication
JMS Messages JMS Messages
technologies
Hard to keep in sync
Data Tier Possible limited Data Tier
transaction loss
Application Data Datagard or GoldenGate Application Data
New Disaster Recovery Architectures
with WebLogic Server 10.3.6
Global Load Balancer
Active Site Standby Site
Web Tier Web Web Web Web
Web Tier
Server Server Server Server
Configuration
data.
Technology Configuration
No need to struggle to
synchronize file and data
replication
Data Tier Data Tier
Transaction Logs Critical data stored, Transaction Logs
Datagard or GoldenGate
managed, and
JMS Messages JMS Messages
replicated together
Application Data Application Data
PROXY AUTHENTICATION
50
Proxy Authentication
Oracle
Database
Instance1
Authenticate the users and set the user
WebLogic Server roles
Admin Console
Instance2
Runtime Development
Authenticates the users, set
the user roles and pass to
Services Management Monitoring the middletier
Instance3
User Security Storage
Proxy Authentication
• Authorizes the middle-tier server appserve to connect as user bill
activating all roles associated with bill, except payroll.
ALTER USER bill
GRANT CONNECT THROUGH appserve
WITH ROLE ALL EXCEPT payroll;
56
Web Logic Data Source Monitoring
GridLink Data Source Monitoring
GridLink Data Source Monitoring
• Graphical view using
• http://<host>:<port>/console/dashboard
WebLogic GridLink Data Source Debug
Logging
• Start WebLogic Server with specific System Properties
– -Dweblogic.debug.DebugJDBCRAC=true
• Outputs GridLink data source lifecycle, UCP callback,
connection information
– -Dweblogic.debug.DebugJDBCONS=true
• Enabled ONS client logging
• LBA event body
– -Dweblogic.debug.DebugJDBCUCP=true
• Enables UCP Logging at FINEST level
WebLogic Admin Console
• Enabling debug categories
– domain > Environment > Servers > server > Debug > weblogic >
jdbc > rac
• JDBCRAC
• JDBCONS
• Link to console help section on data source statistics
– http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e139
52/pagehelp/J2EEappdeploymentsmonitorjdbctabletitle.html
• Configure WLS logging to send stdout to server log
– domain > Environment > Servers > server > Logging > General >
Advanced > Redirect stdout logging enabled
COMPETITIVE
62
Active GridLink for RAC
Competitive Comparison
App Server Connection Pool RAC Integration Limitations
Frances Zhao
Oracle WebLogic Server Product Management