RE: Locking issue
Date: Thu, 20 May 2021 07:06:48 +0000
Message-ID: <30c1ae8c16a840b9bc57dd0ea8e2c360_at_vontobel.com>
I traced the row cache locks (event 10222, level 4) for both a select with dynamic sampling and the statistic job:
--select with dynamic sampling
--gather_table_stats
(cid is the rowcache id.)
Only the statistic job acquired the rowcache lock id 63.It’s therefore still unclear what boundary condition caused acquiring the rowcache lock for select.
Lok, you could try to capture the stack trace for the event 10222. Sayan has just published the article on how to do that: http://orasql.org/2021/05/20/oracle-diagnostic-events-cheat-sheet/
Best regards,
Nenad
Important Notice
This message is intended only for the individual named. It may contain confidential or privileged information. If you are not the named addressee you should in particular not disseminate, distribute, modify or copy this e-mail. Please notify the sender immediately by e-mail, if you have received this message by mistake and delete it from your system.
Without prejudice to any contractual agreements between you and us which shall prevail in any case, we take it as your authorization to correspond with you by e-mail if you send us messages by e-mail. However, we reserve the right not to execute orders and instructions transmitted by e-mail at any time and without further explanation.
SQL> !grep cid /u00/oracle/orabase/diag/rdbms/db_site1/DB/trace/DB_ora_15329_0001.trc | grep 'kqrpre:' | awk '{print $4}' | sort -u
cid=0
cid=10
cid=16
cid=2
cid=8
SQL> !grep cid /u00/oracle/orabase/diag/rdbms/db_site1/DB/trace/DB_ora_15329_0002.trc | grep 'kqrpre:' | awk '{print $4}' | sort -u
cid=0
cid=10
cid=11
cid=13
cid=16
cid=17
cid=2
cid=3
cid=61
cid=63
cid=8
Please consider the environment before printing this e-mail.
Bitte denken Sie an die Umwelt, bevor Sie dieses E-Mail drucken.
--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 20 2021 - 09:06:48 CEST