Home / Oracle Errors / ORA-00018

ORA-00018

Maximum number of sessions exceeded

What it means

The instance has reached its SESSIONS limit and cannot accept another connection.

Common causes

How to fix it

  1. Check usage: SELECT COUNT(*) FROM v$session; and compare with SHOW PARAMETER sessions
  2. Find the biggest consumers: SELECT program,machine,COUNT(*) FROM v$session GROUP BY program,machine ORDER BY 3 DESC;
  3. Raise the limits and restart: ALTER SYSTEM SET processes=600 SCOPE=SPFILE; (SESSIONS is derived from PROCESSES)
  4. Fix the leaking application or reduce the connection pool size

How to prevent it

Size connection pools against PROCESSES and monitor v$resource_limit.

Still stuck? Ask the community in Q&A.

Get the weekly Vismo digestNew Oracle articles and Q&A in your inbox. No spam.

One email a week. Unsubscribe any time.