• Save
Partner DB12c eSeminar: High Availability Features in Oracle Database 12c
Upcoming SlideShare
Loading in...5
×
 

Partner DB12c eSeminar: High Availability Features in Oracle Database 12c

on

  • 646 views

https://blogs.oracle.com/imc/entry/partner_eseminars_oracle_database_12c

https://blogs.oracle.com/imc/entry/partner_eseminars_oracle_database_12c

Statistics

Views

Total Views
646
Views on SlideShare
645
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://www.slideee.com 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Partner DB12c eSeminar: High Availability Features in Oracle Database 12c Partner DB12c eSeminar: High Availability Features in Oracle Database 12c Presentation Transcript

    • 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Audio connection details  Audio will ONLY be provided by Audio Conference  Dial-In (Access Numbers): https://www.intercallonline.com/listNumbersByCode.action? confCode=4339269  Audio Conference code: 4339269  Audio Conference passcode: 1758 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Audio  Dial-In Access numbers  Audio Conference code: 4339269  Audio Conference passcode: 1758 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Austria Belgium Bosnia and Herzegovina Bulgaria Croatia Czech Republic Denmark Egypt France Germany Greece India Italy Jordan Kuwait Lebanon Netherlands Poland Portugal Russian Federation South Africa Spain Sweden Switzerland Turkey United Arab Emirates United Kingdom United States +43 19286512 +32 24010528 +387 3395 8990 +359 24917464 +385 1 632 3299 +420 239014995 +45 32729222 +202 3535 0766 +33 176728936 +49 69222216106 +302 106 789 370 180030109800 +39 0236008198 +962 6 520 0897 +965 2292 1229 +961 1 963 288 +31 207143543 +48 222120167 +351 217616495 +7 499 270 0356 +27 11 319 4506 +34 914143755 +46 856619465 +41 445804003 +902 123 296 776 800035702926 +44 20 8118 1001 8666824770
    • Oracle Database 12c New High Availability Features – 24 January 2014 François Pons Senior Principal Technologist Oracle PTS / Server Technologies francois.pons@oracle.com 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Oracle Maximum Availability Architecture Enterprise Manager Cloud Control Production Site – Coordinated Site Failover RAC Application Continuity – Scalability – Server HA – Application HA Flashback – Service Failover / Load Balancing Global Data Services – Human error correction Active Replica Active Data Guard – Data Protection, DR – Query Offload GoldenGate – Active-active – Heterogeneous ASM storage – Stripe and Mirror Everything Edition-based Redefinition, Online Redefinition, Data Guard, GoldenGate – Minimal downtime maintenance, upgrades, migrations 5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. RMAN, Oracle Secure Backup – Backup to disk, tape or cloud
    • Agenda  Flex ASM and other cool ASM new features  Application Continuity  Data Guard new features and enhancements 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Agenda  Flex ASM and other cool ASM new features  Application Continuity  Data Guard new features and enhancements 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • The History of ASM Why Oracle Developed ASM  Pre-Oracle Database 10g storage management was provided by 3rd parties  Customer challenges – Large databases required considerable storage management – Best performance required raw storage – NFS solutions, while simple, did not perform as well as raw – For RAC, cluster file systems were not available  With Oracle 10g, ASM provided – Simplicity of management, even better than NFS solutions – Performance equal to raw disks 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • The History of ASM The Simple Idea  Integrated volume manager and file system  Stripe and mirror files across disks in a ASM Disk Group  Automatic “Rebalance”  Built on the Oracle instance architecture  Manage storage as a global cluster “shared Disk Groups” 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • ASM Overview Simplify the Stack Oracle Database Oracle Database ASM Operating System File System and Volume Management File System Logical Volume Manager Server 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Operating System Server
    • ASM Overview Oracle Database 11.2 or earlier RAC Cluster Database Instance One to One Mapping of ASM Instances to Servers DBA DBA DBB DBB DBB DBC ASM Instance Node1 ASM Node2 ASM Node3 ASM Node4 ASM Node5 ASM ASM Cluster Pool of Storage Shared Disk Groups Disk Group A Wide File Striping 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Disk Group B ASM Disk
    • Oracle ASM 12c – Overview Oracle ASM 12c Standard Deployment RAC Cluster Database Instance One to One Mapping of ASM Instances to Servers DBA DBA ASM Instance DBB DBB DBB DBC ASM Instance Node1 ASM Node2 ASM Node3 ASM Node4 ASM Node5 ASM ASM Cluster Pool of Storage Shared Disk Groups Disk Group A Wide File Striping 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Disk Group B ASM Disk
    • Introducing Oracle Flex ASM Removal of One to One Mapping and HA RAC Cluster Database Instance Databases share ASM instances DBA DBA ASM Instance DBB DBB DBB DBC ASM Instance Node1 Node2 ASM Node3 ASM Node4 Node2 Node1 runs as runs as ASM ASM Client to Client to Node3 Node4 Node2 ASM Cluster Pool of Storage Shared Disk Groups Disk Group A Wide File Striping 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ASM Node5 Node5 runs as ASM Client to Node4 Disk Group B ASM Disk
    • Flex ASM Remote Access  In previous versions, ASM clients use OS-authentication to connect to ASM – This works because ASM clients and servers are always on the same server  With Oracle Database 12c, ASM clients and ASM servers can be on different servers – A default configuration is created when the ASM cluster is configured  Benefits of providing a shared password file in ASM Disk Group 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Supporting Pre-Oracle 12c Databases Pre-Oracle 12c Databases require a local ASM instance RAC Cluster Database Instance Databases share ASM instances DBA ASM Instance Node1 11g DB ASM DBA Node2 DBB ASM DBB Node3 ASM DBB Node4 ASM 11g DB Node5 DBC ASM ASM Cluster Pool of Storage Shared Disk Groups Disk Group A Wide File Striping 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Disk Group B ASM Disk
    • Cloud FS Introducing Oracle Cloud Filesystem  Cloud FS support as a store for all Oracle Database files – Use a snapshot as a point-in-time for backup – Quickly reset a database from a snapshot  High Availability NFS (HANFS) – Exported filesystems are exposed by using Highly Available Virtual IPs – Oracle Clusterware manages the NFS export and HAVIPs 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Agenda  Flex ASM and other cool ASM new features  Application Continuity  Data Guard new features and enhancements 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Sounds Familiar? 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Problems To Solve Maximum Application Availability At database outages 5 problems confront users and applications 1. Hang/Fault detection 2. Recovery within response time targets 3. Error Handling 4. Outcome of in-flight work 5. Continuation of in-flight work 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Pre-12c Situation HA Mechanisms and Limitations Hang ‒ Fast Application Notification (FAN) / Fast Connection Failover (FCF)  Recovery time? Zero brownout not fully formalized  Error Handling? Errors and actions not fully formalized  In-Flight Work? Likely lost!  Replay of In-Flight Work? N/A! 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Application Continuity Phases 1-Capture • Demarcates Unit of Work • Holds original calls with binds & validation • Manages queues 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2-Reconnect • Checks Tx has replay enabled • Handles timeouts • Creates a new connection • Validates target database • Check Outcome of last COMMIT 3-Replay • Replays held calls • Continues replay, if user visible results match, based on validations • Continues request
    • Application Continuity Architecture • JDBC replay driver – The JDBC replay driver intercepts execution errors and, when these errors are recoverable, automatically replays the user calls from the beginning of the request. When successful, the replay appears to the application as a delayed database interaction. • Continuity Director – The continuity director directs the run time and replay. The director knows what is repeatable and how to repeat it.  Replay Context – Context information that the database returns to the client driver during normal runtimes to be held by the JDBC replay driver in case a replay is required  Transaction Guard 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Application Continuity A reliable replay of in flight work User selects product from application and purchases it from the web checkout End User Application Servers Network Switches Database Servers 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. User transaction arrives at application infrastructure. It makes it’s way through the application tiers and results in a database transaction being created
    • Application Continuity A reliable replay of in flight work End User Application Servers Network Switches Database Servers 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The infrastructure hosting the database fails just before the transaction is committed to the database.
    • Application Continuity A reliable replay of in flight work End User Application Servers Network Switches Database Servers 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. If the transaction needs to be replayed, “Application The jdbc driver detects the of the Continuity” will submit all failure and checksawith an node inflight work to surviving availableclusterin theperform a in the node and cluster, using “Transaction happens commit. This all Guard”, whether the transaction transparently to the application committed or needs to be replayed
    • Application Continuity A reliable replay of in flight work End User Application Servers Network Switches Database Servers 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The user receives confirmation that his order has been successfully completed.
    • When is Application Continuity for Java transparent  Application uses J2EE or JPA (Java Persistence API) that uses the standard JDBC API  Application uses Universal Connection Pool (UCP) or WebLogic Server and return connections to pool  Application does not have external actions that cannot be replayed. 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • How do TAF and Application Continuity differ ?  Transparent Application Failover  OCI, OCCI  Replays open SELECT statements on-demand  Validates on client Application Continuity  JDBC Thin  Replays in-flight request on-demand (SQL, PL/SQL, RPC, local calls)  “At-most-once” for transactions with Transaction Guard  Mutable replacement  Hardware for validation at DB, when available 38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Configuration at Database Grant Mutables  GRANT [KEEP DATE TIME | KEEP SYSGUID].. [to USER]  REVOKE [KEEP DATE TIME | KEEP SYSGUID][from USER]  GRANT KEEP SEQUENCE.. [to USER] on [sequence object];  REVOKE KEEP SEQUENCE [from USER] on [sequence object];  If owned, ALTER SEQUENCE.. [sequence object] [KEEP|NOKEEP]; CREATE SEQUENCE.. [sequence object] [KEEP|NOKEEP]; 39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Setting up Application Continuity with UCP 12.1 software is required on client and server • Check ONS is running on the server $ srvctl config nodeapps -s • Use a db service supporting AC $ srvctl add service -d fp12c -s tgac -r FP12C1,FP12C2 -clbgoal SHORT -rlbgoal SERVICE_TIME -failoverretry 30 -failoverdelay 10 commit_outcome TRUE -failovertype TRANSACTION -replay_init_time 1800 -retention 86400 -notification TRUE • Add to client CLASSPATH – – 43 ons.jar ucp.jar Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Setting up Application Continuity with UCP Creating a UCP connection pool with support for AC public void createPool(){ // Configure Replay Driver for Application Continuity pds.setConnectionFactoryClassName("oracle.jdbc.replay.OracleDataSourceImpl"); pds.setUser("demo"); pds.setPassword("demo"); String dbURL = "jdbc:oracle:thin:@//myscan:1521/tgac.oracle.com"; pds.setONSConfiguration("nodes=ruby1.oracle.com:6200,ruby2.oracle.com:6200"); // Enable Fast Connection Failover and use remote ONS pds.setFastConnectionFailoverEnabled(true); pds.setInitialPoolSize(10); pds.setValidateConnectionOnBorrow(true); } 44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • WebLogic Server uses Application Continuity Application Improved Resiliency 1. Request WebLogic Server  Simple configuration. Generic, Active GridLink Data Source  Benchmarks show ~5% CPU client uplift and indiscernible response change for AC and no impact for TG. 7. Response 3. Node 1 Down 2. Request 4. New Connection  Transaction Guard integration will 6. Response 5. Replay facilitate continuity at the mid-tier.* Listener Listener Listener FAN FAN FAN RAC Node 1  Benefit: Better end user experience RAC Node 2 RAC Node 3 RAC Cluster 45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Easy configuration from WebLogic console 46 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Agenda  Flex ASM and other cool ASM new features  Application Continuity  Data Guard new features and enhancements 47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Zero Data Loss Challenge Synchronous Communication Leads To Performance Trade-Offs Commit Ack Network Ack Network Send Commit Primary Standby The longer the distance, the larger the performance impact 48 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Data Guard Async – Before 12c Some Data Loss Exposure Upon Disaster ASYNC Primary 49 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Standby
    • Active Data Guard Far Sync Operational Flow Standby Primary SYNC ASYNC Commit Ack Far Sync Instance No Compromise Between Availability and Performance! 51 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Data Guard Far Sync No Compromise Between Availability and Performance Standby Primary async sync Far Sync Instance (Active) (Idle) 52 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Far Sync Instance (Active) (Idle) Standby Primary
    • Data Guard Far Sync Standby between continents with zero data loss Far Sync Instance (Idle) Far Sync Instance (Active) async London Primary Reading sync Bridgeport New York 53 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Standby
    • Active Data Guard Real-Time Cascading Eliminates Propagation Delay  Prior to 12.1, Standby 1 waits till log switch before forwarding redo from archived logs to Standby 2 Primary SYNC or ASYNC Standby 1 ASYNC Standby 2  In 12.1, Standby 1 forwards redo to Standby 2 in real-time, as it is received: no propagation delay for a log switch  Standby 2 (Active Data Guard Standby) is up-to-date for offloading read-only queries and reports 55 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • Data Guard Fast Sync Reduced Primary Database Impact for Maximum Availability Primary Standby LGWR RFS NSS Commit Commit Acknowledge Redo Logs Standby Redo Logs  For SYNC transport: remote site acknowledges received redo before writing it to standby redo logs  Reduces latency of commit on primary  Better DR – increased SYNC distance Acknowledge returned on receipt Primary Standby LGWR NSS RFS Commit Commit Acknowledge 56 Redo Logs Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Standby Redo Logs  If network round-trip latency less than time for local online redo log write, synchronous transport will not impact primary database performance
    • Data Guard Other New Features in Oracle Database 12c Rolling Upgrade With Active Data Guard  Automate complexity through simple PL/SQL Package: DBMS_ROLLING (12.1.0.1 onwards), with simple Init, Build, Start, Switchover, Finish procedures  Additional Data Type Support: XML OR, Binary XML, Spatial, Image, Oracle Text, DICOM, ADTs (simple types, varrays), … Validate Role Change Readiness  Ensure Data Guard configuration ready for switchover with automated health checks – verify no log gaps, perform log switch, detects any inconsistencies, ensures online log files cleared on standby, … 57 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. DML on Global Temporary Tables  Temporary undo is not logged in redo logs  Enables DML on global temporary tables on Active Data Guard: more reporting support  Set by default on Active Data Guard standby Unique Sequences  Primary allocates a unique range of sequence numbers to each Standby  Enables more flexible reporting choices for Active Data Guard
    • Questions & Answers 58 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
    • 59 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.