Oracle Database 11g Release 2 First Experiences S311446

Download Report

Transcript Oracle Database 11g Release 2 First Experiences S311446

© 2009 Oracle Corporation
S311446 : Oracle Database 11g Release 2 First Experiences
Plamen Zyumbyulev, Mobiltel
Philip Newlan, Oracle RAC Pack
Safe Harbor Statement
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.
Introduction to Oracle Database 11g Release 2
Real Application Clusters
In 30 mins
• Features for this session
– RAC One Node
– Instance Caging
– Policy Managed Databases / Server Pools
• New Features not discussed in this session
– ASM Improvements and new features
• ACFS, AVDM, snapshots, …
– Clusterware Improvements
• CTSS, OCR/vote in ASM, …
– Grid Plug and Play (GPnP)
– Install Improvements
RAC One Node
Better Virtualization for Databases
• A virtualized single instance database
• Delivers value of server virtualization
to databases on physical servers
– Live migration of instances across
servers
– Rolling patches for single instance
databases
– Built-in cluster failover for HA
– Online upgrade to RAC
– Standardized deployment across all
Oracle databases
Use Cases
Load balancing
Database + OS patching and
maintenance
Isolation via Instance Caging
• Instance caging enables
administrators to limit cpu
cores by instance
• Protects service levels by
preventing runaway cpu
consumption
• Can be adjusted dynamically,
while databases are online.
– Controlled by cpu_count
parameter
– Supports partitioning and
overprovisioning cpu
RAC One Node D
cpu_count=1
RAC One Node C
cpu_count=1
RAC One Node B
cpu_count=2
RAC One Node A
cpu_count=4
• Works with Resource
Manager
8 core server
Policy-managed database /Server Pools
New in Oracle Database 11gR2
• Policy-based management uses
server pools to
RAC
DB2
RAC
One
Oracle Grid Infrastructure
DB1
FREE
RAC
Oracle RAC DBs
Siebel
App
PSFT
– Enable dynamic capacity assignment when
needed
– Ensure isolation
where necessary (“dedicated servers in a
cluster”)
• In order to guarantee:
– Applications get the required minimum
resources (whenever possible)
– Applications do not “take” resources from
more important applications
Resource
management with
policies
Server Pools
New in Oracle Database 11gR2
• logical grouping of servers in the cluster.
• Managed by Oracle Clusterware and registered in the
OCR.
• One node belongs to one and only one server pool.
• Server pools are created and managed using srvctl
commands or through dbcontrol
• There are 3 key attributes of a Server Pool
– min_size
– max_size
– Importance
• Default server pool – Free
Case Study: M-Tel
• Founded in March 1994
• Part of Mobilcom Austria Group
• Telecom leader in Bulgaria
• First production implementation on Oracle 11g GRID
• Best Exadata v1 Performance Results
• First successful Exadata v1 custom installation
• First Customer to run OLTP on Exadata v1
M-Tel’s vs. DB Admins’ Challenges
• Provide highest quality of service
– Make every application
• highly available
• scalable
• dynamically manage application workload
• Be more flexible
– Online maintenance
– Service relocation
• Do more with less
– Consolidate, simplify, automate
M-Tel’s Grid Architecture 11gR1
2 years ago
Business systems
…
BS 1
BS 2
BS 4
BS 3
BS 7
SOA
Disaster Recovery with real time query
– no idle resources
Resource Manager
DB1 11g
DB3 10g
ASM 11g
CRS 11g
DB2 11g
Continuous Redo
Shipment and Apply
Dedicated and Virtualized Environments
Today
• 40+ Oracle 11g Services consolidated onto 2
Databases and four Linux Servers
– 40% Prod Services
– 60% Test services
• 25% of all Business Systems are “virtualized”
and consolidated
– 21% of Prod env
– 29% of Test env
DB to Server Consolidation
• Classical approach
– Production
• 2 DBs per server
– Test
• 4+ DBs per server
• 11gR1 GRID Environment
– 10+ services per server
M-Tel’s Oracle DB Environment
Clusters with more Clusters with one DB
than one DB
FO Clusters
…
BS 1
BS 2
BS 3
BS 40+
SOA
Resource Manager
Servers running multiple
DBs
…
Servers with more
than one DB
Servers with one
DB
Problems to further adopt Grid Computing
• Unable to load balance between databases on the
same node
• Most applications cannot share the same database
(they aren't 100% isolated)
• Some applications aren’t certified with RAC
• No unified approach for single instance database
failover. Difficult database movement between
servers
• No automatic actions in the event of node failure
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
• Rolling Patches
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
• Rolling Patches DB-C Node 3 and Node 2
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
• Rolling Patches DB-C Node 3 and Node 2
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
• Rolling Patches DB-C Node 3 and Node 2
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
• Omotion DB-A from Node 1 to Node 8
• Failover DB-B from Node 2 to Node 9
• Rolling Patches DB-C Node 3 and Node 2
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
•
•
•
•
Omotion DB-A from Node 1 to Node 8
Failover DB-B from Node 2 to Node 9
Rolling Patches DB-C Node 3 and Node 2
Online Upgrade DB-C to multi-node RAC instances
Oracle Database 11g Release 2
RAC ONE – A grid of virtualized single instance databases
•
•
•
•
Omotion DB-A from Node 1 to Node 8
Failover DB-B from Node 2 to Node 9
Rolling Patches DB-C Node 3 and Node 2
Online Upgrade DB-C to multi-node RAC instances
RAC One Node
Contrasting Failover to Omotion – non FAN aware application
Failover
• Failover
70,000
Transaction Rate
60,000
50,000
40,000
30,000
20,000
10,000
0
60 seconds
• Omotion
OMotion
70,000
Transaction Rate
60,000
50,000
40,000
30,000
20,000
10,000
0
Summary—RAC One Node Benefits:
• Better virtualization for databases
– Consolidation, workload management, Better HA
– Plus, online maintenance, and DB failover
• Better cluster failover
– Additional value (online migration, online maintenance)
– Single-vendor solution
• Ready to scale
– Online upgrade to multi-node RAC
• Standardized Environment
– Common toolset for both single-node and multi-node Oracle
database deployments
Server Pools
Why ?
• Designed to handle dynamic workloads where you
can grow or shrink the pool size as a function of
demand, planned or unplanned
– Clusters host databases and their respective services in
cluster managed server pools.
– Using a cardinality-based approach – nodes become
anonymous.
– Server pools are flexible and scalable. You can move servers
between server pools, if needed, based on SLAs
– Server pool importance, minimum and maximum number of
servers allowed
– Dynamic server pool topology with no down time.
Policy Managed environment
Scenario 1.0 - FO
Default values!!!
min_size=0
min_size=0
max_size=2
max_size=1
importance=0
importance=0
Nothing happens!!!
Policy Managed environment
Scenario 1.1 - FO
min_size=1
min_size=1
Max_size=2
Max_size=1
Importance=0
Importance=0
Policy Managed environment
Scenario 2.0 - Reconfigurations
min_size=1
min_size=1
Max_size=2
Max_size=1
Importance=0
Importance=0
Policy Managed environment
Scenario 2.1 - Reconfigurations
min_size=1
min_size=0
Max_size=3
Max_size=1
Importance=0
Importance=0
Nothing happens!!!
Policy Managed environment
Scenario 2.2 - Reconfigurations
min_size=1
min_size=0
Max_size=3
Max_size=1
Importance=1
Importance=0
Nothing happens!!!
Policy Managed environment
Scenario 2.3 - Reconfigurations
min_size=3
min_size=1
Max_size=3
Max_size=1
Importance=1
Importance=0
Policy Managed environment
Scenario 2.4 - Reconfigurations
min_size=3
min_size=1
Max_size=3
Max_size=1
Importance=1
Importance=1
Nothing happens!!!
Policy Managed environment
Scenario 2.5 - Reconfigurations
min_size=3
min_size=1
Max_size=3
Max_size=1
Importance=1
Importance=2
Policy Managed environment
Scenario 3.0 - Restart
min_size=2
min_size=1
Max_size=2
Max_size=1
Importance=1
Importance=0
Sum(min_size)< number of servers
Conclusion
• RAC One Node and policy based managed
databases enable us to further improve and extend
our consolidation platform
– Better server consolidation
– Enhanced protection from failures
– More flexible and efficient IT environment
– Better Online maintenance
– Better resource isolation
New things in Oracle Database 11gR2
That enable us to move further
• Oracle RAC One Node
• Omotion
• Failover
• Instance Caging
• Policy Managed Databases/Server Pools
QUESTIONS
ANSWERS
For More Information
http://search.oracle.com
Real Application Clusters
or
http://www.oracle.com/clusters
© 2009 Oracle Corporation
Oracle RAC One Node – Omotion
New in Oracle Database 11gR2
• Omotion moves a Oracle RAC One Node instance
from one server to another—without any downtime
• Use Cases
– Load balancing
– Database + OS patching and maintenance
• Oracle supplied tools control migration
– Services are not accepting connections on both nodes at the
same time
– Migrated instance shutdown transactional once services
moved
– A maximum of 30 minutes allowed for connections to migrate
(then shutdown abort)