How to change OPTIMIZER_MODE setting in oracle?
You can change OPTIMIZER_MODE, with alter command as shown below,
alter session set OPTIMIZER_MODE = RULE;
alter session set OPTIMIZER_MODE = choose;
ALTER SESSION SET OPTIMIZER_MODE = RULE;
or if you need to make changes for all system:
ALTER SYSTEN SET OPTIMIZER_MODE = RULE SCOPE=SPFILE;
Use
SELECT VALUE FROM v$parameter WHERE NAME = 'optimizer_mode'
to check the result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With