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:
- Best Practices For Managing Backups In A Streams Environment
- 10.2 Best Practices For Streams in RAC environment
- Building a RAC Test Environment on VMWare For Free
- Creating a RAC Physical Standby for a RAC Primary
- ocfs certification with 11gr2 rac
- RAC Tuning Tips
- Compare and Converge in an Oracle Streams Replication Environment
- 9i Best Practices For Streams RAC Setup
- Creating a Single Instance Physical Standby for a RAC Primary
- RAC Deadlock For Example




最新评论