Abstract
Some Informix Dynamic Server (IDS) operations, such as altering a table schema, are not allowed if its partition is open in another session, which will not necessarily appear as a lock with the “
onstat -k” command or in the SQL described in a previous article
here. The standard method to list open partitions is the “
onstat -g opn” command, which is not user friendly, and requires operating system command line access. This article describes and provides a
Stored Procedure Language (SPL) function to obtain a list of sessions holding matching table names open, so you know what needs to be terminated.
[Read More…]