// oracle · timeouts

max_idle_time

Minutes a session may be idle before it is terminated; 0 means no limit.

Predeterminado
0 (no limit)
Range
0 or more minutes
Restart needed
No
Default checked on
Oracle AI Database 26ai / 23ai

Lo que hace

Applies to every session. max_idle_blocker_time is a variant that only terminates idle sessions holding resources other sessions are waiting for.

Valor predeterminado

0 (no limit). 0 (Oracle 23ai/26ai).

Check the current value

SHOW PARAMETER max_idle_time

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

Change it

ALTER SYSTEM SET max_idle_time = 60 SCOPE=BOTH;

No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

When to change it

On databases where abandoned client sessions accumulate. Prefer max_idle_blocker_time if the goal is to clear blockers.

What can go wrong

Pooled connections idle longer than the limit are killed and the pool must detect it.

Questions about max_idle_time

What is the default value of max_idle_time in Oracle?

0 (no limit). 0 (Oracle 23ai/26ai).

Does changing max_idle_time require a restart?

No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

When should I change max_idle_time?

On databases where abandoned client sessions accumulate. Prefer max_idle_blocker_time if the goal is to clear blockers.

Back to all Oracle settings, or check the Oracle manual for every option.

// one client for every engine

Check max_idle_time on your own server

SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.