Oracle’s High-Availability Vision: What’s New in Oracle ...Oracle’s High-Availability Vision:...
Transcript of Oracle’s High-Availability Vision: What’s New in Oracle ...Oracle’s High-Availability Vision:...
Oracle’s High-Availability Vision:What’s New in Oracle Database 11g Release 2Juan LoaizaSenior Vice President, Oracle System Technology
3
Oracle High Availability Architecture
1. Scale-Out & Low-Cost– High-volume hardware– All components active
2. Application Oriented– Protect and recover application objects– Enable online application changes
3. Integrated & Simple– Availability integrated into all components– Automated
4. Complete & Open– Handles all planned and unplanned downtime– Pluggable components
4
Oracle’s Database HA
ServerFailures
DataFailures
SystemChanges
AppChanges
UnplannedDowntime
PlannedDowntime
DataChanges
5
ServerFailures
DataFailures
SystemChanges
AppChanges
UnplannedDowntime
PlannedDowntime
Real ApplicationClusters (RAC)
Best-of-Breed Server ProtectionAt Lowest Cost
DataChanges
6
• Scale workloads across multiple low cost servers• Consolidate into fewer servers and databases• Runs all Oracle database applications• Built-in HA
HR SALES ERP
Real Application Clusters
7
• A virtualized single instance database– Omotion - live migration of instances
across servers• Move services, then shutdown
transactional– Built-in cluster failover for high availability
• Better than OS level virtualization– Rolling database patches– Manage fewer Operating Systems
• 10 DBs on a node does not mean 10Operating Systems to manage
– Rolling OS upgrades
New in 11.2RAC One NodeVirtualization Benefits for Oracle Databases
8
DataCorruptions
StorageFailures
SiteFailures
HumanErrorsServer
Failures
DataFailures
SystemChanges
AppChanges
UnplannedDowntime
PlannedDowntime
DataChanges
Best-of-Breed Data Failure ProtectionAt Lowest Cost
FlashbackRMAN
Oracle SecureBackup
ASMData Guard
Streams
9
0
20
40
60
80
• Flashback revolutionizes error recovery– View ‘good’ data as of a past point-in-time– Simply rewind data changes– Time to correct error equals time to make error
Correction Time = Error Time + f(DB_SIZE)
• Low impact, easy – simple commands, no complex procedure• Flashback Query, Table, Transaction, Database, Drop• SQL> flashback database to <timestamp>;
• Enhancements in 11.2:• Flashback database performance & monitoring optimizations• Flashback archive support for schema evolution
Rec
over
y Ti
me
TraditionalRecovery
Flashback
Flashback TechnologiesError Detection & Correction
New in 11.2
10
Oracle Enterprise Manager
RMAN
Data Files
Fast Recovery Area
Tape Drive
Oracle Secure Backup • Intrinsic knowledge of database
file formats and recoveryprocedures• Block validation• Online block-level recovery• Unused block compression• Online, multi-streamed backup• Native encryption
• Recovery Manager (RMAN) managesDatabase Backup & Recovery
Cloud
Oracle Backup & RecoveryIntegrated Disk, Tape & Cloud Backup
11
• Backup compression: popular way to saveon storage
• Multiple RMAN backup compression levels– Choose between compression levels & backup
throughput• [BASIC] | HIGH | MEDIUM | LOW
New in 11.2Multiple RMAN Compression LevelsMore Cost Savings
12
Oracle EnterpriseManager
Oracle DatabaseOracle Database
RMAN Integration
File System DataFile System Data
Oracle Secure Backup
TapeLibrary
VirtualTape
Library(VTL)
Tape Backup forOracle Environment
• Built-in Oracle Integration
• 25 – 40% faster thanleading competition
• 4X less expensivethan comparable products
• Supports OracleDatabase 11g throughOracle9i
Oracle Secure BackupEnterprise Tape Backup Management
13
Amazon S3
• Oracle Secure Backup Cloud module: Backup databases to AmazonCloud– Complements local disk and/or tape backup– Eliminates IT management overhead of a disaster recovery site
Oracle SecureBackup Cloud
Module
Database Files / Fast Recovery Area
RMAN
Compression /Encryption
Oracle Secure Backup Cloud ModuleOffsite Database Backups in the Cloud
14
3rd Party FSApplicationDatabase
ASM Disk
Group
• ASM dynamic volume manager supports file systems• ASM directly supports Clusterware files – Cluster Repository, Voting Disk• Built-in mirroring protects from disk failures• Enables auto-repair from corrupt blocks using a valid mirror copy
Automatic Storage Management (ASM)Stores & Manages All Data
15
• Manage both database & file system data– E.g.: Oracle & Application binaries, trace
files, alert logs, BFILEs, image files, etc.
• Clustered or local file system– Data stored in ASM– Inherits all ASM manageability benefits
• Online disk add/drop/rebalance• Integrated mirroring• Cross-platform
• Read-Only Snapshots– Up to 63 point-in-time space efficient
copies of file system
• Linux and Windows only in first release
Shared File System
New in 11.2ASM Cluster File SystemOracle Management of File System Data
16
DataCorruptions
StorageFailures
SiteFailures
HumanErrorsServer
Failures
DataFailures
UnplannedDowntime
Active-Active AvailabilityMinimizing Downtime During Site Failures
Data GuardGoldenGate
Streams
17
Network
Broker
ProductionDatabase
LogicalStandby
SQLApply
Open R/O withActive Data Guard
Transform Redo to SQL
PhysicalStandby
DIGITAL DATA STORAGE
DIGITAL DATA STORAGE
Backup
Redo Apply
Sync or Async Redo Shipping
Boston
Chicago
Dallas
Open R/W forperipheral writes
Oracle Data GuardBest Disaster Recovery
18
• Queries on standby database concurrent with apply• Available with Physical Standby in 11.1
– Handles all data types, very fast, operationally simple• Eliminates cost of DR
– All hardware used for production load
PhysicalStandby Database
Primary Database
Real-time Queries
Continuous Redo Shipment and Apply
Concurrent Real-Time
Query
New in 11.1Active Data GuardOffload Queries to Standby
19
ScalableReader
Farm
ProductionDatabase
Updates
Queries
Queries
Queries
Queries
• Up to 30 activestandby databases
• Flexible options toscale readperformance
• Add more activestandby databases
• Scale active standbydatabases usingOracle RAC
New in 11.2Oracle Active Data GuardRead Scalability, with DR
20
Active StandbyDatabase
PrimaryDatabase
Continuous redo shipping validation & apply
• Automatically repair block corruptions online• Primary repaired from standby and vice-versa
New in 11.2Oracle Active Data GuardAuto Block Protection
Read/WriteWorkload
Real-timeReporting
21
• Use Standby Database for testingand development– Eliminates cost of DR– Justify full scale test and DR
environments by combining into one
• Preserves zero data loss while intest/dev mode– But no real time query or fast failover
• Similar to storage snapshots, but:– Provides DR at the same time– Single copy of storage
Physical StandbyApply Logs
SnapshotStandby Perform
Testing
OpenDatabase
Back outChanges
Continuous Redo Shipping
New in 11.1Snapshot StandbyTest with Production Data Before Deployment
22
StandbyDatabase
PrimaryDatabase
FANenabled
JDBCand OCI
clientsWide Area Network (ASYNC)
• Automate client failover with role-based services and FAN
New in 11.2Oracle Data GuardBetter Application Availability
New PrimaryDatabase
Auto-start ofprimarydatabaseservices
Fast notificationof applicationclients
23
Active StandbyDatabase
• Automatically enforce service levels for standby queries
PrimaryDatabase
Read/WriteWorkload
Continuous redo shipping validation & apply
• Query receives error if data delay exceeds SLA
• Applications can redirect query to primary
New in 11.2Oracle Active Data GuardEnsure Service Levels for Query Latency
Real-timeReporting
24
• Additional Data Type support:– Basic Table Compression– OLTP Table Compression– SecureFiles• Without deduplication
– Online Table Redefinition– Extended data type support for SDO_GEOMETRY (SQL Apply)
New in 11.2Additional Data Type SupportBoth Data Guard SQL Apply & Streams
25
• Critical Data Guard metrics reported on HA console
Comprehensive Data Guard MonitoringUsing Enterprise Manager 10g Release 5
26
Apply1Capture
Apply2
RedoLogs
Non-Oracle Database
• Active-active databases with automaticconflict detection & optional resolution
• Provides HA for custom apps whereupdate conflicts can be avoided ormanaged
TransparentGateway
Propagate
Target Database
SourceDatabase
Oracle StreamsBuilt-in Oracle Database Replication Solution
27
• Extended Streams - XStream– API for fast real-time access to changes in Oracle database– Client attaches directly to Streams apply process using OCI/Java
– Outbound server (XStream Out)• Stream changes out of the Oracle database
– Inbound server (XStream In)• Stream changes from external
sources into an Oracle database
XStream
New in 11.2XStreamFast Real-Time Programmatic Access to Data Changes
28
• Performance optimizations of uni-directional Streams extendedto one-to-many
• Faster transformations– Statement DML Handlers
• Up to 4x faster than procedural DML handlers– New Declarative Transformation - Keep Columns
• Extensive tuning throughout Streams
• Improved JMS integration and faster Streams AdvancedQueuing– AQ dequeue is 30%-100% faster than previous releases
New in 11.2Better Streams Performance
29
GoldenGate
• Best-in-class leader in real-time data solutions• Continuous Availability for heterogeneous
systems• Real-time data access for Reporting• Real-time data for BI, EPM, Exadata• Zero-downtime migrations / upgrades to Oracle
Database and Applications
• Over 400 customers with 4,000+ implementationsacross Fortune 500 companies: Financial Services,Communications, Healthcare, Public Sector, Retail &Utilities industries
• Top 3 of 5 largest commercial banks• Top 3 of 3 busiest ATM networks• Top 7 of 10 financial data services companies• Top 4 of 5 telecommunications providers• Top 3 of 5 largest food & drug stores
Real-time information
Real-time Access
30
Databases O/S and PlatformsCapture:
Oracle DB2 Microsoft SQL Server Sybase ASE Teradata Enscribe SQL/MP SQL/MX
Delivery - all listed above, plus: HP Neoview, Netezza, Greenplum, and
any ODBC compatible databases ETL products JMS message queues MySQL TimesTen
• Windows 2000, 2003, XP• Linux• Sun Solaris• HP NonStop• HP-UX• HP TRU64• HP OpenVMS• IBM AIX• IBM z/OS
GoldenGate for Heterogeneous Platforms
31
• GoldenGate is Oracle’s strategic replication solution• Streams continues to be a supported Oracle Database feature• Best Streams technology will be integrated into GoldenGate
GoldenGate and Streams
Oracle StreamsOracle GoldenGate
32
GoldenGate and Data Guard
• Information Distribution & Consolidation, Application Upgrades & Changes– Use GoldenGate - heterogeneous, active-active, transformations, subsetting
• Disaster Recovery / Data Protection / HA– Simple Full Oracle Database Protection
• Use Active Data Guard• High-performance, simple, drop-in solution for HA and DR, readable at standby• Works for all apps and data types, including packaged apps that can’t be changed
– Application desiring flexible HA, active-active, schema changes, platform changes• Use GoldenGate• Avoid or manage active-active conflicts at application level
• Combine the two for full database protection and information distribution
OracleActive
Data Guard
Oracle DB Primary Oracle DB Standby
HeterogeneousDistributedFully-activeSubsetReplicas
OracleGoldenGate
33
ServerFailures
DataFailures
SystemChanges
DataChanges
UnplannedDowntime
PlannedDowntime
AppChanges
Best Online Planned MaintenanceAt Lowest Cost
Online ReconfigurationRolling Upgrades
Online Redefinition
Edition-basedRedefinition
34
• Servers– Add/Remove RAC nodes online– No data movement needed
• Storage– Add/Remove ASM disks or arrays online– Automatically rebalance after storage change
• Clusterware, ASM– Upgrade Oracle Clusterware and ASM (11g)
in an online manner
Database
Storage
Online ReconfigurationScaling on Demand
35
Online Patching and Upgrades• Most one-off patches can be applied to a running Oracle instance
– Linux-x86, Solaris 10, HP-UX 11i– [New in 11.2] Windows 32-bit and Windows 64-bit, AIX v6.1 [TL2 SP1]
• More complex one-off patches can be deployed online using RACrolling patches (available 10g onwards)
• Database release/patchset upgrades, operating systemupgrades, platform migrations can be applied in rolling fashionusing Data Guard / GoldenGate / Streams
• Data Center moves / SAN migration / Technology Refresh etc.can be done with minimal downtime using Data Guard /GoldenGate / Streams
36
• All index changes can be done online– 11gR1 – table is never locked during online index creation
• Tables can be Reorganized & Redefined online– Allows changing location, table type, partitioning, columns, column types– Contents can be transformed as they are copied
SourceTable
UpdateTracking
TransformCopyTable
TransformUpdates
ResultTable
ContinuousQueries &Updates
StoreUpdates
Online Index & Table Redefinition
37
Edition-based RedefinitionOverview
• Enables online application patches and upgrades
• Allows old and new version of application to co-existeven though schema is changed by new version
• Capabilities primarily used by application developers
New in 11.2
38
• Maintains logical versions of changed databaseobjects, through:– Edition– Editioning View– Crossedition Trigger
• PL/SQL code changes and view changes installedin the privacy of a new edition
• New data changes made to newcolumns/tables not seen by old edition
• Editioning view exposes a privateprojection of a table into each edition
• Crossedition trigger propagates changes made byold edition into new edition’s columns, or vice-versa
Pre-upgrade Edition
New in 11.2
Post-upgrade Edition
CrosseditionTriggers
Edition-based RedefinitionHow Does it Work?
39
End-to-End Availability
40
Sun Oracle Database Machine
© 2009 Oracle Corporation - Confidential 40
• Grid is the architecture of the future• Highest performance, lowest cost, incrementally scalable• Redundant and Fault Tolerant
• Sun Oracle Database Machine delivers the first and onlycomplete grid architecture for all data management needs
Exadata Storage Server Grid• 14 High-performance storage
servers• 5TB flash storage• Data is mirrored across storage
servers
Oracle Database Server Grid• 8 High-performance compute
servers
InfiniBand Network• 40 Gb/sec fault-tolerant unified
server and storage network
41
WAN
• Protection from– Server Failures– Storage Failures– Network Failures– Site Failures
• Real-time remote standby open forqueries
• Human error correction– Database, table, row, transaction level
• Online indexing and table redefinition• Online patching and upgrades
RealApplication
Clusters
ASM
FastRecovery Area
ActiveData Guard
OracleSecureBackup
Database Technology Drives Availability
42
• Backup & Recovery– Backup shows extreme performance and scalability using Exadata– Full Database Backup to tape demonstrated at 7.8 TB/hr
Limited by tape performance of 14 tape drives used in test– Incremental backup to tape at 10% change rate: 70TB/hr– Single RMAN backup channel runs full backup to disk at 2.5 TB/hr
• Data Guard– Full DR demonstrated with uncompressed loads over 2TB/hour– Compressed tables reduce redo & net traffic enhancing Data Guard
• 5 TB/hour load rates with Data Guard into compressed tables– 5 customers have implemented Data Guard on a Database Machine in
first year
Database Machine HA Metrics
43
Oracle High Availability Architecture
1. Scale-Out & Low-Cost– High-volume hardware– All components active
2. Application Oriented– Protect and recover application objects– Enable online application changes
3. Integrated & Simple– Availability integrated into all components– Automated
4. Complete & Open– Handles all planned and unplanned downtime– Pluggable components
44
HA Sessions, Labs, & Demos by Oracle DevelopmentSunday, 11 October – Hilton Hotel Imperial Ballroom B 3:45p Online Application Upgrade
Monday, 12 October – Marriott Hotel Golden Gate B111:30a Introducing Oracle GoldenGate Products
Monday, 12 October – Moscone South1:00p Oracle’s HA Vision: What’s New in 11.2, Room 1032:30p Oracle Streams: What's New in 11.2, Room 3014:00p Database 11g: Performance Innovations, Room 1035:30p Comparing Data Protection Solutions, Room 102
Tuesday, 13 October – Moscone South11:30a Oracle Streams: Replication Made Easy, Room 30811:30a Backup & Recovery on the Database Machine, Room 30711:30a Next-Generation Database Grid Overview, Room 103 1:00p Oracle Data Guard: What’s New in 11.2, Room 104 2:30p GoldenGate and Streams - The Future, Room 270 2:30p Backup & Recovery Best Practices, Room 104 2:30p Single-Instance RAC, Room 300 4:00p Enterprise Manager HA Best Practices, Room 303
Tuesday, 13 October – Marriott Hotel Golden Gate B111:30a GoldenGate Zero-Downtime Application Upgrades 1:00p GoldenGate Deep Dive: Architecture for Real-Time
Wednesday, 14 October – Moscone South10:15a Announcing OSB 10.3, Room 30011:45a Active Data Guard, Room 103 5:00p Exadata Storage & Database Machine, Room 104
Thursday, 15 October – Moscone South 9:00a Empowering Availability for Apps, Room 30012:00p Exadata Technical Deep Dive, Room 307 1:30p Zero-Downtime DB Maintenance, Room 103
Demos Moscone West DEMOGroundsMon & Tue 10:30a - 6:30p; Wed 9:15a - 5:15pMaximum Availability Architecture (MAA), W-045
Oracle Streams: Replication & Advanced Queuing, W-043
Oracle Active Data Guard, W-048
Oracle Secure Backup, W-044
Oracle Recovery Manager & Flashback, W-046
Oracle GoldenGate, 3709
Hands-on Labs Marriott Hotel Golden Gate B2Monday 11:30a-2:00p Oracle Active Data Guard, Parts I & IIThursday 9:00a-11:30a Oracle Active Data Guard, Parts I & II
45
Complete List of New HA FeaturesOracle Database 11g Release 2Oracle Database 11g Release 1
46
Data Guard• Active Data Guard:
• Online block repair• Query SLA
• Primary with 30 standbys• Parallel local & remote SYNC
transport• Retrieve remaining redo from
primary before failover• Improved client failover
• Role-based services• Broker support for ONS• Support auto-client failover
for logical standby for JDBC,OCI, ODP.Net
• No shutdown of RAC instancesin old standby for switchover
• No shutdown moving from MaxAvailability to Max Protection
• Comprehensive support forcompressed redo transport
Data Guard (contd.)• SQL Apply support of OLTP
Compression, SecureFiles,XA in RAC, OnlineRedefinition & Edition-basedRedefinition,SDO_GEOMETRY (EDS)
• Use logical standby asStreams source
Streams• XStream IN & OUT• Statement DML Handlers• Better infrastructure to track
changes to table data• New Declarative
Transformation: keep_columns• Optimized one-to-many
propagation• AQ: Improved JMS integration
& performance improvements• Support of OLTP
Compression, SecureFiles,Online Redefinition
RAC• Server pools• RAC One Node• Omotion
ASM• Cluster File System• OCR & Voting Disk in ASM
Flashback• Flashback Database: better
performance for direct loads• Flashback Database: enable
while database is open• Flashback Database: better
monitoring of progress• Flashback Transaction: track
foreign key dependency
Complete List of New HA FeaturesOracle Database 11g Release 2
47
Online Patching & Upgrades• Edition-based Redefinition
using Edition, Editioning Viewand Crossedition Trigger
• Online Patching for Windows& AIX
RMAN• Multiple compression levels• Target-less DUPLICATE• Optimized checks for
DUPLICATE• Expanded DUPLICATE
options• Enhanced tablespace point-in-
time recovery usingtransportable tablespace andData Pump
• Improved flexibility of SETNEWNAME
• Faster transportable database
OSB 10.3• Server-less tape duplication
for VTL using NDMP tapecopy
• Better automation for tapevaulting
• Support for IPv6 as well asIPv4
• Supports LTO-4 tape driveencryption
• Manages encryption keyseamlessly between native orLTO-4 encryption
• More comprehensive backup /restore monitoring
• Verification of tape deviceconfigurations
Grid Control 10.2.0.5• HA Console• MAA Advisor• Minimal downtime ASM
migration & RAC conversion• Streams dashboard and
improved monitoring of Streamsconfigurations.
• Database Clone from existingdatabase backups
• Comprehensive OSBmanagement
• OSB File SystemBackup/Restore and reports
• Task based workflow for miningredo and archived logs
Complete List of New HA FeaturesOracle Database 11g Release 2
48
Clusters• Better performance, failover,
management• Seamless integration with XA
and Microsoft TransactionServer
• Optimized Cache Fusionprotocols
ASM• Temporarily freeze I/O to
unresponsive storage andreplay writes when it returns
• Rolling Upgrade for ASMinstances
Data Guard - GenericŸ Snapshot standbyŸ Fast-Start Failover in secsŸ Fast-Start Failover for
asynchronous modeŸ Fast Redo TransportŸ Redo Transport Compression
for gapsŸ SYS user no longer required for
redo shippingŸ Standby across Linux/Windows
on x86
FlashbackŸ Flashback TransactionŸ Flashback Data Archive
Data Guard SQL ApplyŸ Support XMLType data type
(CLOB)Ÿ Support Transparent Data
Encryption (TDE)Ÿ Apply performance improved
significantlyŸ Support Fine Grained AuditingŸ Support Virtual Private
Database
Data Guard Redo ApplyŸ Active Data GuardŸ New parallel media recovery
doubles redo applyperformance
Ÿ Fast Incremental BackupŸ Better RMAN integration
Complete List of New HA FeaturesOracle Database 11g Release 1
49
Upgrades• Online patching• Transient logical standby
Online Redefinition• Fast add column with default
value• Invisible Indexes prevent
premature use of newlycreated indexes
• Online index build with NOpause to DML
• No recompilation of dependentobjects
• Easier to execute table DDLoperations online
StreamsŸ Support XMLType data type
(CLOB)Ÿ Support Transparent Data
Encryption (TDE)Ÿ Apply performance improved
significantlyŸ Support AWR, ADDM, ASHŸ Streams Performance AdvisorŸ Synchronous captureŸ Table Data ComparisonŸ JMS/AQ performance
improvements
Backup & RecoveryŸ Data Recovery AdvisorŸ Intra-file parallel backup and
restoreŸ Faster backup compressionŸ Duplicate database over the
networkŸ Integration with Windows
Volume Shadow CopyServices (VSS) API
Ÿ Integrated protectionthrough ultra safe mode
Complete List of New HA FeaturesOracle Database 11g Release 1
50
• General – Across the Platforms– Event Marker Infrastructure– Start Delivery as of CSN (Commit Sequence Number) for eff icient instantiation– Enhanced Memory Management– Deferred Apply– Array Fetching to increase initial load performance
• Oracle– Additional data type support – Spatial, IOTs, Sequences, clustered table, object table– Support of Append hints (Apply only)– Increased Oracle DDL text maximum size to 2MB– Filtering by User for more eff icient loop detection and capture task type separation (e.g. batch vs OLTP)– Expanded Support of ALO (Archive Log Only) mode for RAC environments
• SQL Server– SQL Server 2008 Delivery– Capture of tables w ithout primary keys (SQL Server 2005)
• DB2 LUW– Support for Multi Dimensional Clustered Tables (MDC)– Support for Materialized Query Tables (MQT)
• NSK– Support of HP Blades– Support Primary Key Updates from Open Systems (e.g. Oracle to NSK)
• Teradata– Integration of Oracle GoldenGate Director w ith TMSM (Teradata Multi-System Manager)– Support of Teradata v13 – DDL replication– Support for additional platforms: Solaris 10, SUSE 9/10– Full Unicode Support for Linux ODBC
Oracle GoldenGateKey Features in v10
51
• Oracle.com:http://www.oracle.com/ha
• Oracle HA Customer Success Stories on OTN:http://www.oracle.com/technology/deploy/availability/htdocs/HA_CaseStudies.html
• Maximum Availability Architecture (MAA):http://otn.oracle.com/goto/maa
• MAA Assessment:http://www.oracle.com/goto/hasurvey
Resources
52
AQ&Q U E S T I O N SA N S W E R S
53
For More Information
search.oracle.com
ororacle.com
54