yangtingkun
===========================================================
压力测试出现ORA-12519错误
===========================================================

在压力测试的时候,JDBC连接出现了ORA-12519错误。


连接是报错如下:

<2008-8-23 上午013438 CST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "rac11g1": Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
172.0.2.58:1521:rac11g1

检查了半天metalink,最终发现是由于Oracle初始化参数的设置问题导致了bug

SQL> SHOW PARAMETER SESSION

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
java_max_sessionspace_size integer 0
java_soft_sessionspace_limit integer 0
license_max_sessions integer 0
license_sessions_warning integer 0
session_cached_cursors integer 50
session_max_open_files integer 10
sessions integer 600
shared_server_sessions integer
SQL> SHOW PARAMETER PROCESS

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes integer 0
db_writer_processes integer 2
gcs_server_processes integer 2
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 150

根据Oracle文档,SESSIONSTRANSACTIONS的初始化参数应该源于PROCESSES参数,根据默认设置SESSIONS = PROCESSES * 1.1 + 5

但是目前SESSIONS的设置达到了600,而PROCESSES的设置没有改变,仍然为150,导致了过多的用户会话连接到Oracle上时,Oracle没有足够的后台进程来支持这些会话。

详细的问题描述可以参考metalink的文档:Doc ID: Note:240710.1

解决方法很简单,直接设置合适的PROCESSES产生就可以了。

yangtingkun 发表于:2008.08.23 23:22 ::分类: ( ORACLE ) ::阅读:(1436次) :: 评论 (0)

发表评论
标题

在此添加评论
表情符号: smile laughing tongue angry crying sad wassat wink

称呼

邮箱地址(可选)

个人主页(可选)

 authimage


切换风格
新闻聚合
博客日历
文章归档...
最新发表...
最新评论...
最多阅读文章...
最多评论文章...
博客统计...
Blog信息
网站链接...