Thursday , March 28 2024

The index “Index_name” (partition ) on table “Table_name” cannot be reorganized because page level locking is disabled

 

ERROR MESAGGE:

“The index “Index_name” (partition ) on table “Table_name” cannot be reorganized because page level locking is disabled”

EXPLANATION:

If the Index in which you are performing the Reorganization process is “Disabled” or “ALLOW_PAGE_LOCKS” is set to “OFF”, you will see this error message and the Reorganization process will fail.

SOLUTION:

If your index is “Disabled”, you must set it to “Enabled”.

You can use the following code to enable Index:

Note: If the version you are using supports online index rebuild , I recommend that you run the script as follows.

If the “ALLOW_PAGE_LOCKS” option of your Index is set to “OFF”, then you must set it to “ON”.

You can use the following code to change the status of ALLOW_PAGE_LOCKS option:

Loading

About Ekrem Önsoy

The original article was written in Turkish by Ekrem Önsoy and translated to English by dbtut with the consent of the author. The copyright of the article belongs to the author. The author shall not be liable in any way for any defect caused by translation.

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories