The CURRENT OPTIMIZATION PROFILE special register specifies the qualified name of the optimization profile to be used by DML statements that are dynamically prepared for optimization.
The initial value is the null value. The value can be changed by invoking the SET CURRENT OPTIMIZATION PROFILE statement. An optimization profile that is not qualified with a schema name will be implicitly qualified with the value of the CURRENT DEFAULT SCHEMA special register.
SET CURRENT OPTIMIZATION PROFILE = JON.SALES
VALUES (CURRENT OPTIMIZATION PROFILE) INTO :PROFILE