Managing Sequences in RAC Environment

作者: Maclean Liu , post on November 7th, 2010 , English Version
【本站文章除注明转载外,均为本站原创编译】
转载请注明:文章转载自: Oracle Clinic – Maclean Liu的个人技术博客 [http://www.oracledatabase12g.com/]
本文标题: Managing Sequences in RAC Environment
本文永久地址: http://www.oracledatabase12g.com/archives/manage-sequence-in-rac-environment.html

Agenda

  • Introduction
  • Application Sequences with Non-RAC Databases
  • Oracle Sequences with Non-RAC Databases
  • Application Sequence with RAC Databases
  • Oracle Sequences with RAC Databases
  • Sequences and Index Contention
  • Migration Issues for Existing Appplications
  • Sequences and Services
  • Demonstration
  • Questions & Answers

Oracle Sequences with RAC Databases

Created and administered as in a Single Instance
Real Application Clusters allows multiple instances to obtain unique numbers from the same sequence
Sequences in Real Application Clusters:
Have the same options as single-instance databases plus the ORDER and NOORDER options
ORDER and NOORDER options control ordering of generated numbers
The Global Cache Service may need to coordinate sequences across instances
SQ Enqueue will be Global
  • Created and administered as in a Single Instance
  • Real Application Clusters allows multiple instances to obtain unique numbers from the same sequence
  • Sequences in Real Application Clusters:
    • Have the same options as single-instance databases plus the ORDER and NOORDER options
    • ORDER and NOORDER options control ordering of generated numbers
    • The Global Cache Service may need to coordinate sequences across instances
    • SQ Enqueue will be Global

Issues with Application Defined Sequences in Single Instance Databases

  • Problems with this approach

    • Row level locking will cause contention
    • Update of sequence is not a recursive transaction
    • This may be handled by using Autonomous Transactions for the update of the sequence
    • At some level of concurrency contention will be a serious issue
  • Advantages with this approach

    • Gaps may be eliminated by deferring the commit at the risk of additional contention but this can not occur with an Autonomous Transactions

Issues with Application Sequences in RAC Databases

  • Problems with this approach

    • Same issues as with a Single Instance plus:
    • Extra Global Enqueue Services traffic due to Global TX and TM Enqueues for both Transaction and Table
    • Extra Global Cache Services traffic for shipping the dirty table block amongst involved instances
  • Advantages with this approach

    • Same advantages as with a Single Instance


© 2010, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.

相关文章 | Related posts:

  1. Best Practices For Managing Backups In A Streams Environment
  2. 10.2 Best Practices For Streams in RAC environment
  3. Building a RAC Test Environment on VMWare For Free
  4. Creating a RAC Physical Standby for a RAC Primary
  5. ocfs certification with 11gr2 rac
  6. RAC Tuning Tips
  7. Compare and Converge in an Oracle Streams Replication Environment
  8. 9i Best Practices For Streams RAC Setup
  9. Creating a Single Instance Physical Standby for a RAC Primary
  10. RAC Deadlock For Example

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>