Home > Database > Mysql Tutorial > ORA-12520 无法为请求的服务器类型找到可用的处理程序

ORA-12520 无法为请求的服务器类型找到可用的处理程序

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:26:00
Original
1046 people have browsed it

ORA-12520听程序无法为请求的服务器类型找到可用的处理程序:

ORA-12520错误解决方法

ORA-12520听程序无法为请求的服务器类型找到可用的处理程序:

1)数据库是专用服务器,但是在tnsname.ora配置中设置了连接方式为shared,这种情况下打开tnsname.ora,

把(server = shared) 改成 (server = dedicate)

2)是由于process不够引起的

后来查看到v$process一直涨到140多,而我的数据库设置的是150.据此大致能断定process不够,用以下语句修改数据库的processes值

alter system set processes=500 scope=spfile(由于processes是静态参数,scope只能为spfile,在v$sgastate条件为'procesees'中可以看到会每个process会点4个字节),

重新启动数据库使新改的processes生效.再重新跑eclipse,就能正常启动了.

note:如果在hibernate中的hibernate.connection.provider_class选择的是c3p0的就会出这种情况,其它的好像不会.很奇怪为什么c3p0会打开那么多个processs, 在shared连势接方式下,shared_server即是一直连在数据库的process值,注意这点

当前的连接数

select count(*) from v$process;

设置的最大连接数(默认值为150)

select value from v$parameter where name = 'processes';

修改最大连接数

alter system set processes = 300 scope = spfile;

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template