您的位置:首页 > 其它

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

2012-11-29 11:16 295 查看
今天登陆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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: