Using special registers to control the statement compilation environment

For dynamically prepared statements, the special registers can be specified to define the statement compilation environment.
Following special registers controls the statement compilation environment:
  • The CURRENT QUERY OPTIMIZATION special register determines which optimization class is used.
  • The CURRENT PATH special register determines the function path used for UDF and UDT resolution.
  • The CURRENT EXPLAIN SNAPSHOT register determines whether explain snapshot information is captured.
  • The CURRENT EXPLAIN MODE register determines whether explain table information is captured for any eligible dynamic SQL statement. The default values for these special registers are the same defaults used for the related bind options.