SQL/MX 2.x Installation and Management Guide (H06.04+)

Reorganizing SQL/MX Tables and Maintaining Data
HP NonStop SQL/MX Installation and Management Guide540436-001
10-9
Structure Changing Operations That Can Run With
Active or Inactive DDL Locks Present
If you attempt to drop or alter an object that a utility operation is using, error 1250 is
returned:
For more information about the error message, see the SQL/MX Messages Manual.
Structure Changing Operations That Can Run With Active or
Inactive DDL Locks Present
Structure changing operations are sometimes allowed to run even with active or
inactive DDL locks present. Examples include:
Creating a view on a table with an active or inactive DDL lock
Dropping a view on table with an active or inactive DDL lock
Creating or dropping views on table that has dependent indexes with active or
inactive locks
Operations are allowed to continue for views because creating and dropping views do
not change the structure of the dependent tables or the dependent table’s indexes.
This contrasts with NonStop SQL/MP, for which structure information is stored about
views in the dependent table’s label.
Structure changing operations are sometimes allowed to run and succeed when
inactive DDL locks are present. Examples include:
Dropping a table with inactive DDL lock
Dropping an index with an inactive DDL lock
Dropping a table that has a dependent index with an inactive DDL lock
An attempt to drop a table with an inactive DDL lock can fail if an inactive DDL lock
exists on another table that has a dependency on the first table. For example, Step 5 in
this sequence would fail and generate a DDL lock error:
1. Create table tab1.
2. Create table tab2.
3. Create an RI constraint on tab2 that references tab1.
4. Run a utility request on tab2 that fails and causes an inactive DDL lock to remain.
5. Attempt to drop table tab1.
Finally, certain ALTER operations are allowed to run and complete successfully when
inactive DDL locks are present. These ALTER operations change attributes in the
labels but do not alter the structure of the object or change its redefinition timestamp:
ALLOCATE and DEALLOCATE option
1250 Operation cannot be performed on object object-name
because a utility operation (operation-type) associated with
DDL_LOCK lock-name is currently running.