Oracle Consulting Oracle Training Oracle Support Development
Home
Catalog
Oracle Books
SQL Server Books
IT Books
Job Interview Books
eBooks
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
 Phone
 800-766-1884
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

Privacy Policy

 

 
 

ORA-00060: deadlock detected while waiting for resource
ORA-06512: at

Article by Rampant Author Brian Carr

Whenever you have competing DML running against the same data, you run the risk of a deadlock. This issue it not simply a database configuration problem. If the first two recommendations do not work below then the third option is to tune the application and possibly reschedule updates to run in a batch job in the evenings.

Recommendation:

Modify INITRANS on the affected tables - The INITTRANS setting controls Initial Transaction Slots (ITLs). A transaction slot is required for any session that needs to modify a block in an object. For tables INITRANS defaults to 1 for indexes, 2. If different processes that are accessing the same records could be run concurrently it will also be necessary to increase the INITRANS setting accordingly.

Other options to consider if INITRANS does not resolve the issue: Use smaller blocks with less data - Since the deadlock contention is at the block-level, consider moving these tables and indexes to a super-small blocksize (create a db2k_cache_size), and using a high PCTFREE to space-out the data over MORE blocks.

Tune the application and re-scheduling batch update jobs to low-update times an also help. Some deadlocks are due to user error in the design of an application or from issuing incorrect ad-hoc SQL.

 

 

 

   

 Copyright © 1996 -2016 by Burleson. All rights reserved.


Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks