Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 08-10-2024, 07:50 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
ORA-00020: Maximum Number of Processes Exceeded
ORA-00020: Maximum Number of Processes Exceeded


Sometimes you may encounter ” ORA-00020: maximum number of processes exceeded ” error while login oracle database via sqlplus and application may encounter TNS errors.

If you got ORA-00020 error like following, it means process parameter has exceeded its max value.
ORA-00020: maximum number of processes (1000) exceeded

To solve ORA-00020: maximum number of processes exceeded error, You can increase processes parameter in Oracle database as follows.

SQL> alter system set processes=2000 scope=spfile;
System altered.
But this parameter is activated after database restart. If you cannot restart database, then you may solve this problem to kill inactive sessions like following.

SELECT 'kill -9 ' || p.SPID,
s.USERNAME,
'alter system kill session ''' || sid || ',' || s.serial# || ''';',
s.STATUS
FROM v$session s, v$process p
WHERE s.PADDR = p.ADDR(+) AND s.STATUS = 'INACTIVE' AND s.USERNAME = 'TYPE_YOUR_SCHEMA_NAME'
ORDER BY 1;
But If you cannot login database and specify inactive sessions, then you can change processes parameter like following then restart database. You can think that how can you alter process parameter without login database, I just kill some inactive sessions then I login database.

SQL> show parameter processes;

NAME TYPE VALUE
----------------------- ----------- ------------------------------
processes integer 1000
SQL>
SQL> alter system set processes=2000 scope=spfile;
System altered.
Restart database after this operation as follows.

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.
SQL>
SQL> show parameter processes

NAME TYPE VALUE
----------------------- ----------- ------------------------------
processes integer 2000
SQL>
Thats All…
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời



Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 01:52 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.