[oracle@db ~]$ sqlplus/as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 16 15:16:06 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-00020: maximum number of processes (150) exceeded
Method 1: Change the processes parameter
To solve the ORA-00020 error, you can increase the parameter value of processes, but you need to start the database normally and log in successfully before you can modify it.
1. Firstly, log in the database successfully by adding the parameter “-prelim”.
1 2 3 4 5 |
[oracle@db ~]$ sqlplus -prelim/as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 16 15:22:07 2020 Copyright (c) 1982, 2013, Oracle. All rights reserved. |
At this point, the database can be closed and opened normally, following the following command to solve the problem.
1 2 3 4 5 6 7 |
SQL> shutdown immediate; SQL> startup; SQL> show parameter processes; SQL> alter system set processes=1000 scope=spfile; SQL> startup force; SQL> show parameter processes; SQL> exit; |
2.Start-up example
1 2 3 4 5 6 7 8 9 |
SQL> startup ORACLE instance started. ORA-01012: not logged on Process ID: 0 Session ID: 0 Serial number: 0SQL> exit Disconnected from ORACLE |
It means that it is already open.
3. Modify the parameters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
[oracle@db ~]$ sqlplus/as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 16 15:22:35 2020 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: SQL> show parameter process NAME TYPE VALUE STATUS SQL> alter system set processes=1000 scope=spfile; System altered. SQL> shutdown immediate; ORACLE instance shut down. |
4. Restart the instance
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[oracle@db ~]$ sqlplus/as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 16 15:24:59 2020 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to an idle instance. SQL> startup Total System Global Area 6313463808 bytes NAME TYPE VALUE |
.
Method 2: Kill all oracle processes
1 2 |
$ ps -ef |grep $ORACLE_SID|grep -v grep|awk ‘{print $2}’ | xargs kill -9 $ ipcs -m | grep oracle | awk ‘{print $2}’ | xargs ipcrm shm |
Read More:
- [Solved] ERROR: child process failed, exited with error number 14 (error number 1, error number 100)
- Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)
- ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number
- [Solved] The number of rows returned by the mybatis UPDATE statement is always 1 or useaffectedrows = true
- [Solved] Windows MYSQL Error: django.db.utils.OperationalError: (2026, ‘SSL connection error: unknown error number‘)
- SQL Server Group sort de duplication row_ number() over ( PARTITION BY t1.col_ 2 ORDER BY 1 )
- [Solved] MySQL Lock error: Lock wait timeout exceeded; try restarting transaction ; Lock wait timeout
- [Solved] ORA-04063: package body “SYS.DBMS_DATAPUMP“ has errors
- How To Change ASM SYS PASSWORD
- Oracle Database AWR error: ORA-06502 [How to Solve]
- [Solved] mysqldump: Error: ‘Access denied; you need (at least one of) the PROCESS privilege(s) for this opera
- [Linux Docker Mirror] MYSQL Run sql Script Error: Failed to open file ‘/home/mydatabase.sql‘, error: 2
- Mysql5.7.18.1 Error 1054 (42S22): Unknown Column’password’ In’field List’ When Changing User Password
- ERROR 1054(42S22) Unknown column ‘password’ in ‘field list’ (Fixed)
- SQL Developer error: Unable to find a Java Virtual Machine solution
- Oracle11g Startup Database Error: ORA-27154: post/wait create failed
- [Solved] Error while trying to retrieve text for error ORA-01019
- [Solved] Running in 64 bit mode with the 32 bit Oracle client installed
- [Solved] EOS7.6 Error: Init DB failed [Specified key was too long; max key length is 767 bytes…
- Elasticsearch imports MySQL data Error when executing the bin/logstash – f command