Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

latch free , mutex wait

Naresh KumarJul 5 2017 — edited Aug 1 2017

Dear All,

I am facing issue regarding latches , due to multiple latches I am confiused from where I need to start

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Wait Avg(ms)% DB timeWait Class
latch free98,656854.4K866023.1Other
DB CPU 841.4K 22.7
latch: shared pool53,967214.2K39705.8Concurrency
library cache: mutex X96,41181.3K8432.2Concurrency
latch: cache buffers chains2,088,03169.3K331.9Concurrency
latch: row cache objects10,16436.4K35781.0Concurrency
log file sync1,110,36435.1K32.9Commit
db file sequential read14,100,98723.5K2.6User I/O
direct path read17,884,88710.5K1.3User I/O
read by other session491,2579177.619.2User I/O

Based on above stats I checked "Parse CPU to Parse Elapse time is less the 1%.

Time Model Statistics

  • Total time in database user-calls (DB Time): 3702660.6s
  • Statistics including the word "background" measure background process time, and so do not contribute to the DB time statistic
  • Ordered by % or DB time desc, Statistic name
Statistic NameTime (s)% of DB Time
sql execute elapsed time2,605,630.0770.37
DB CPU841,391.6922.72
parse time elapsed241,526.316.52=>
hard parse elapsed time67,879.471.83=>
connection management call elapsed time50,863.351.37
RMAN cpu time (backup/restore)39,768.961.07
PL/SQL compilation elapsed time32,330.400.87
PL/SQL execution elapsed time24,281.430.66
hard parse (sharing criteria) elapsed time5,872.980.16
sequence load elapsed time897.580.02
inbound PL/SQL rpc elapsed time156.190.00
hard parse (bind mismatch) elapsed time64.340.00
repeated bind elapsed time49.920.00
failed parse elapsed time5.960.00
DB time3,702,660.56
background elapsed time123,822.08
background cpu time47,388.92

Latch Sleep Breakdown

  • ordered by misses desc
Latch NameGet RequestsMissesSleepsSpin Gets
cache buffers chains176,297,452,2182,496,743,7722,354,9852,494,760,632
row cache objects1,508,567,4732,609,60310,7422,599,488
simulator hash latch5,862,340,896405,55088,499318,007
shared pool160,588,674293,21572,899235,551
mostly latch-free SCN9,546,962263,181164263,020
messages73,965,95684,37720084,183
redo allocation156,542,91176,93618876,748
process allocation810,40757,969137,8524,553
call allocation1,982,66328,04018,51510,674
object queue header operation601,140,03220,55742420,179
cache buffer handles14,298,84216,0792916,054
active checkpoint queue latch1,676,58715,5502015,530
In memory undo latch320,133,03514,3932,06912,368
simulator lru latch7,896,65712,82148312,342
parameter table management7,552,42812,7239,207

4,801

I need help in identifying root cause for same problem.'

Regards

This post has been answered by Jonathan Lewis on Jul 5 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2017
Added on Jul 5 2017
42 comments
2,480 views