# optimizer_features_enable

> Umbrella switch that pins the optimizer's behavior and defaults to a named Oracle release.

Source: https://sqlly.app/sql-configuration/oracle/optimizer-features-enable
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).

**Default**

`Set at creation`

**Range**

Valid release identifiers, 8.0.0 up to the current release

**Restart needed**

No

**Default checked on**

Oracle AI Database 26ai / 23ai

## What it does

Values are release identifiers such as 11.2.0.4, 19.1.0 or 23.1.0, each enabling the optimizer features of that release. Changing it invalidates existing cursors, so plans can flip in either direction; per session it is the standard way to compare an upgraded database against its old behavior.

## Default value

`Set at creation`. The release the database was created with: 23.1.0 on a 23ai-created database (Oracle 23ai/26ai).

## Check the current value

```
SHOW PARAMETER optimizer_features_enable

SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable
FROM v$parameter
WHERE name = 'optimizer_features_enable';
```

## Change it

```
ALTER SESSION SET optimizer_features_enable = 19.1.0;   -- this session

ALTER SYSTEM SET optimizer_features_enable = 19.1.0 SCOPE=BOTH;
```

No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. A session can also change its own value with ALTER SESSION. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

## When to change it

After an upgrade whose plans regressed, per session or per service, while baselines and SQL plan management catch up.

## What can go wrong

A value pinned years back hides every fix and better plan since then, and mixed values across sessions make plans hard to compare or reproduce.

## Questions about optimizer_features_enable

### What is the default value of optimizer_features_enable in Oracle?

Set at creation. The release the database was created with: 23.1.0 on a 23ai-created database (Oracle 23ai/26ai).

### Does changing optimizer_features_enable require a restart?

No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. A session can also change its own value with ALTER SESSION. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

### When should I change optimizer_features_enable?

After an upgrade whose plans regressed, per session or per service, while baselines and SQL plan management catch up.

Back to all [Oracle settings](https://sqlly.app/sql-configuration/oracle), or check the [Oracle manual](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/initialization-parameters.html) for every option.

## Related Oracle settings

- [`optimizer_mode` Optimizer goal: total throughput (ALL_ROWS) or fastest first rows.](https://sqlly.app/sql-configuration/oracle/optimizer-mode)
- [`optimizer_adaptive_plans` Allow plans to switch join methods or parallel distribution at run time.](https://sqlly.app/sql-configuration/oracle/optimizer-adaptive-plans)

## Related on SQLly

- [Diagnosing a slow SQL query Performance guide](https://sqlly.app/sql-performance/slow-query)
- [When a fast query turns slow Performance guide](https://sqlly.app/sql-performance/sudden-slowdown)
- [Oracle query performance troubleshooting Performance guide](https://sqlly.app/sql-performance/oracle)
