ORA-00020 maximum number of processes exceeded

ORA-00020 maximum number of processes exceeded.
========================================

  this situation happen when maximum number of processes exceeded than present database process settings.

  usually this case have multiple scenario.
 scenario 1:- error persist with sudden spike and reduce level than database settings, so you still can logon database as normal.

  in this case you have to trouble shoot the cause, incase some went wrong from application sudden increase session check/verfiy with them and incase it happen by mistake from app to reduce it avoid in future from app to take preventive action.

(or)

  Per requirement need more number in setting change the setting in database level with proper down time.

 To check Current Parameter Settings
show parameter sessions
show parameter processes
show parameter transactions

when you try to increase above parameter should fallow best practice to increase by using below formula.

processes=x
sessions=x*1.1+5
transactions=sessions*1.1

How to increase Current Parameter Settings
----please put your values at place of XXXX-----
alter system set processes=XXXX scope=spfile;
alter system set sessions=XXXX scope=spfile;
alter system set transactions=XXXX scope=spfile;
 shutdown abort
 startup


 scenario 2:- In this scenario error producers and still process limit higher and can not logon to database as normal, so in this situation logon as -prelim and do proced next.

sqlplus -prelim / sys/password as sysdba

sqlplus system/password -prelim /nolog
with this login u can not query as normal. this will help to debug.

oradebug setmypid
oradebug hanganalyze 12
oradebug dump systemstate 10
oradebug tracefile_name


Comments

Popular posts from this blog

SQL Tuning Task Creation ORA-13780: SQL statement does not exist.

Shareplex some commands

ORA-1092 : opitsk aborting process