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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Concurrency waits - Delete & Insert running same time

DBA112Apr 2 2015 — edited Apr 6 2015

Dear DBA Friends,

DB version - 11.1.0.7

We have a table that receives  Inserts 24/7 ( nearly 2 Million rows inserted each day) and we have a purge (Delete  - Row ID based ) that runs every 4 hours and deletes (anything older than 2 days)...Total data volume in this table is always b/w 3 to 4 Million. Table is non-partitioned, but has 3 indices (All indices are Reverse key, partitioned with 128 partitions for each index)


Now the problem is, we are seeing huge concurrency waits whenever the purge is colliding with insert activity. The wait duration is usually b/w 5 - 20 min and is self resolved. But when concurrency occurs, app is seeing failures with data load activity...


Question is - If purge is deleting older data and inserts are new data that is being loaded, why concurrency waits? Table does not acquire an exclusive lock when its deleting rows... so why waits ?


Trying to understand how to troubleshoot the issue and avoid app failures.


Here's how Delete and Insert statements look for our application -








Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 4 2015
Added on Apr 2 2015
19 comments
11,092 views