Task Persistence Database Cleanup SQL Error Resolution - Identity Manager
search cancel

Task Persistence Database Cleanup SQL Error Resolution - Identity Manager

book

Article ID: 210062

calendar_today

Updated On:

Products

CA Identity Governance CA Identity Manager CA Identity Portal CA Identity Suite

Issue/Introduction

The Identity Manager Task Persistence (TP) database may experience performance issues or task execution failures when large volumes of rows accumulate in object12_5 tables. This article provides SQL strategies to resolve Msg 1204 lock resource errors encountered during table cleanup.

Environment

Identity Manager 14.5

Cause

Large datasets in the TP DB can exceed SQL Server lock resources during table cloning or archiving processes, resulting in an inability to obtain the necessary locks (Msg 1204).

Resolution

  1. Apply Table-Level Locking: Use table-level locking (TABLOCKX) instead of the default row-level locking to minimize contention during the insert operation: INSERT INTO archive_object12_5 SELECT * FROM object12_5 WITH (TABLOCKX);

  2. Execute Chunked Cleanup: If table-level locking does not resolve the error, use a chunking strategy to copy data in smaller increments: INSERT INTO archive_object12_5 SELECT * FROM object12_5 WHERE objectid LIKE 'a%' AND objecttype='2';

  3. Repeat step 2 for all hexadecimal ranges (1% through f%) and object types as necessary to complete the migration of data to the archive table.

Additional Information

To speak with a customer representative or a Support Engineer see Contact Support. Scroll to the bottom of the page and click on your respective region.