1.59 CURSOR_INVALIDATION
CURSOR_INVALIDATION
controls whether deferred cursor invalidation or immediate cursor invalidation is used for DDL statements by default.
Property | Description |
---|---|
Parameter type |
String |
Syntax |
|
Default value |
|
Modifiable |
|
Modifiable in a PDB |
True |
Basic |
No |
Oracle RAC |
Different instances can have different values. |
Deferred invalidation reduces the number of cursor invalidations and spreads the recompilation workload over time. Note that when the recompilation workload is spread over time, a cursor may run with a sub-optimal plan until it is recompiled, and may incur small execution-time overhead.
Prior to Oracle Database 12c Release 2 (12.2.0.1), immediate cursor invalidation was used.
This parameter provides system or session level default for the DEFERRED
or IMMEDIATE
option for the INVALIDATION
clause in DDL statements.
When this parameter is set to DEFERRED
, an application can take advantage of reduced cursor invalidation without making any other application changes.
When this parameter is set to IMMEDIATE
, the application will experience the same cursor invalidation behavior as in Oracle Database 12c Release 1 (12.1).