SlideShare a Scribd company logo
1 of 7
Tuning for Oracle Row Cache
Lock Waits
By Don Bergal
Confio Software

12/10/2013

1
What are Oracle Row Cache Lock
Waits—Part 1
• To execute, DDL (Data Definition
Language) must acquire a row cache lock to
lock the data dictionary information
• The shared pool contains a cache of rows from
the data dictionary:
– Helps reduce physical I/O to the data dictionary
tables
– Allows locking of individual data dictionary rows

12/10/2013

2
What are Oracle Row Cache Lock
Waits—Part 2
• The locks on the data dictionary rows are
called row cache enqueue locks
• The enqueue lock structures are allocated
from the shared pool as needed
• When these requests wait and time out, the
row cache lock wait event happens

12/10/2013

3
A Closer Look at the Row Cache
Lock Wait Event
• Each row cache lock is on a specific data dictionary object
• Called the enqueue type
• Can be found in the v$rowcache view
– For example, in this sample you can find the enqueue types and the
type of activity being performed within the dictionary cache

12/10/2013

4
Tuning for Oracle Row Cache
Lock Waits
• Waits are associated with a specific enqueue type on a
data dictionary row
• Check activity within the V$ROWCACHE view
– Determine the enqueue type (see next slide)

• If a Trace file is available, you may also see the
following error:
>> WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! <<

• This wait may appear more frequently with Oracle RAC:
– The library cache and the row cache are global in RAC, and
so the row cache lock wait may be more pronounced

12/10/2013

5
Tuning Common Row Cache
Enqueue Lock Types
• Common row cache enqueue lock types include:
– DC_SEQUENCES
• May occur during the use of sequences.
• Tune by checking sequences to see if they have the cache option specified and if that
cache value is reflective of the anticipated simultaneous inserts by the application.

– DC_USED_EXTENTS and DC_FREE_EXTENTS
• May occur during space management operations where tablespaces are fragmented or
have inadequate extent sizes.
• Tune by checking whether tablespaces are fragmented, extent sizes are too small, or
tablespaces are managed manually.

– DC_TABLESPACES
• May occur during the allocation of new extents. If extent sizes are set too low the
application may frequently request new extents which could cause contention.
• Tune by checking for rapidly increasing number of extents.

– DC_OBJECTS
• May occur during the recompilation of objects. If object compiles are occurring this can
require an exclusive lock which will block other activity.
• Tune by examining invalid objects and dependencies.

12/10/2013

6
Find Root Cause of Waits Quickly
with Confio Ignite
• Improve database performance by 65% with
Confio Ignite
– Identify bottlenecks and root causes of waits like
these in minutes
– Installs in minutes
– Puts no load on monitored servers

Download Ignite trial for free
www.confio.com/freetrial
12/10/2013

7

More Related Content

Recently uploaded

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Recently uploaded (20)

Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Tuning for Oracle Row Cache Lock Wait

  • 1. Tuning for Oracle Row Cache Lock Waits By Don Bergal Confio Software 12/10/2013 1
  • 2. What are Oracle Row Cache Lock Waits—Part 1 • To execute, DDL (Data Definition Language) must acquire a row cache lock to lock the data dictionary information • The shared pool contains a cache of rows from the data dictionary: – Helps reduce physical I/O to the data dictionary tables – Allows locking of individual data dictionary rows 12/10/2013 2
  • 3. What are Oracle Row Cache Lock Waits—Part 2 • The locks on the data dictionary rows are called row cache enqueue locks • The enqueue lock structures are allocated from the shared pool as needed • When these requests wait and time out, the row cache lock wait event happens 12/10/2013 3
  • 4. A Closer Look at the Row Cache Lock Wait Event • Each row cache lock is on a specific data dictionary object • Called the enqueue type • Can be found in the v$rowcache view – For example, in this sample you can find the enqueue types and the type of activity being performed within the dictionary cache 12/10/2013 4
  • 5. Tuning for Oracle Row Cache Lock Waits • Waits are associated with a specific enqueue type on a data dictionary row • Check activity within the V$ROWCACHE view – Determine the enqueue type (see next slide) • If a Trace file is available, you may also see the following error: >> WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! << • This wait may appear more frequently with Oracle RAC: – The library cache and the row cache are global in RAC, and so the row cache lock wait may be more pronounced 12/10/2013 5
  • 6. Tuning Common Row Cache Enqueue Lock Types • Common row cache enqueue lock types include: – DC_SEQUENCES • May occur during the use of sequences. • Tune by checking sequences to see if they have the cache option specified and if that cache value is reflective of the anticipated simultaneous inserts by the application. – DC_USED_EXTENTS and DC_FREE_EXTENTS • May occur during space management operations where tablespaces are fragmented or have inadequate extent sizes. • Tune by checking whether tablespaces are fragmented, extent sizes are too small, or tablespaces are managed manually. – DC_TABLESPACES • May occur during the allocation of new extents. If extent sizes are set too low the application may frequently request new extents which could cause contention. • Tune by checking for rapidly increasing number of extents. – DC_OBJECTS • May occur during the recompilation of objects. If object compiles are occurring this can require an exclusive lock which will block other activity. • Tune by examining invalid objects and dependencies. 12/10/2013 6
  • 7. Find Root Cause of Waits Quickly with Confio Ignite • Improve database performance by 65% with Confio Ignite – Identify bottlenecks and root causes of waits like these in minutes – Installs in minutes – Puts no load on monitored servers Download Ignite trial for free www.confio.com/freetrial 12/10/2013 7