1. 程式人生 > >ORA-00020: maximum number of processes (500) exceeded

ORA-00020: maximum number of processes (500) exceeded

今天登陸BPM測試系統報ORA-00020: maximum number of processes (500) exceeded,

檢查系統pfile檔案*.open_cursors=300,*.processes=500

但查了網上資料說遊標數小.但感覺是processes偏小.由於對oracle不是很熟悉,故先修改open_cursors=800進行測試

操作如下:
C:\Users\Administrator>set oracle_sid=djbpm

C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 11月 29 10:25:45 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> connect sys/1 as sysdba
ERROR:
ORA-00020: maximum number of processes (500) exceeded


SQL> show parameter open_cursor
SP2-0640: 未連線
SQL> connect sys/123456 as sysdba
已連線到空閒例程。
SQL> startup pfile='D:\DJBPM\initdjbpm.ora';
ORACLE 例程已經啟動。

Total System Global Area 1603411968 bytes
Fixed Size                  2176168 bytes
Variable Size             939527000 bytes
Database Buffers          654311424 bytes
Redo Buffers                7397376 bytes
資料庫裝載完畢。
資料庫已經開啟。
SQL> show parameter open_cursor

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_cursors                         integer     300

SQL> alter system set open_cursors=800 scope=both;
alter system set open_cursors=800 scope=both
*
第 1 行出現錯誤:
ORA-32001: 已請求寫入 SPFILE, 但是沒有正在使用的 SPFILE

--直接修改pfile檔案的*.open_cursors=800,然後重新啟動資料庫

SQL> create spfile from pfile;
create spfile from pfile
*
第 1 行出現錯誤:
ORA-01078: 處理系統引數失敗
LRM-00109: could not open parameter file
'E:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\INITDJBPM.ORA'


SQL> create spfile from pfile='D:\DJBPM\initdjbpm.ora';

檔案已建立。

SQL> show parameter open_cursor

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_cursors                         integer     300

SQL> shutdown immediate
資料庫已經關閉。
已經解除安裝資料庫。
ORACLE 例程已經關閉。
SQL> startup pfile='D:\DJBPM\initdjbpm.ora';
ORACLE 例程已經啟動。

Total System Global Area 1603411968 bytes
Fixed Size                  2176168 bytes
Variable Size             939527000 bytes
Database Buffers          654311424 bytes
Redo Buffers                7397376 bytes
資料庫裝載完畢。
資料庫已經開啟。

SQL> show parameter open_cursor

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_cursors                         integer     800
SQL>