Complete-Connection Level Settings

The SET LOCK MODE statement supports complete-connection level settings. This means that values in the local session environment at the time of connection are propagated to all new or resumed transactions. These can include the following types of transactions:
  • transactions within the local database,
  • distributed transactions across databases of the same server instance,
  • distributed transactions across databases of two or more database server instances,
  • global transactions with XA-compliant data sources that are registered in the local database.
If you change the lock mode setting within a transaction, the new value is propagated back to the local environment and also to all subsequent new or resumed transactions.

In releases of HCL OneDB™ earlier than 9.40.UC8, the SET LOCK MODE statement did not support complete-connection level settings. The process waited for the specified number of seconds only if you acquired locks within the current database server and a remote database server within the same transaction.