
388 OnDemand SQL Performance Analysis Simplified on DB2 for i5/OS in V5R4
INSENSITIVE
– Specifies that once the cursor is opened, it does not have sensitivity to inserts,
updates, or deletes performed by this or any other activation group. If INSENSITIVE is
specified, the cursor is read-only and a temporary result is created when the cursor is
opened. In addition, the SELECT statement cannot contain a FOR UPDATE clause
and the application must allow a copy of the data (ALWCPYDTA(*OPTIMIZE) or
ALWCPYDTA(*YES)).
For example, a sensitive cursor declared as “SELECT * FROM orders” would return all the
current orders as well as any new orders inser ...