oracle中设置了最大链接数还是报错
来源:程序员人生 发布时间:2014-11-09 09:24:13 阅读次数:3029次
需要更新的数据有1100条,我连接的时候1直报错
ORA⑴2518, TNS:listener could not hand off client connection
根据商品的文章设置了最大连接数为:1200,session为1200*1.1+5=1325,但是tomcat还是报错
ORA⑴2518, TNS:listener could not
hand off client connection
查看最大连接数:
SQL> show parameter processes;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes integer 0
db_writer_processes integer 1
gcs_server_processes integer 0
job_queue_processes integer 10
log_archive_max_processes integer 2
processes integer 1200
查看当前的的http://www.wfuyu.com/db/v$processes 只有356,v$session 352
PMON每5分钟更新listener中的内容,所以listener和http://www.wfuyu.com/db/不1定是同步的,你现在从http://www.wfuyu.com/db/上得知有356个连接,其实不代表listener里面记录的是356个, 5分钟以内极可能还没有被pmon更新,仍然保持着1200所以你报错ORA⑴2518 而不是ora-00020
SQL> show parameter pga;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target big integer 194M
SQL> select * from v$resource_limit;
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_ALLOCATION LIMIT_VALUE
------------------------------ ------------------- --------------- -------------------- --------------------
processes 24 366 1200 1200
sessions 27 362 1325 1325
enqueue_locks 15 25 15950 15950
enqueue_resources 15 43 6048 UNLIMITED
ges_procs 0 0 0 0
ges_ress 0 0 0 UNLIMITED
ges_locks 0 0 0 UNLIMITED
ges_cache_ress 0 0 0 UNLIMITED
ges_reg_msgs 0 0 0 UNLIMITED
ges_big_msgs 0 0 0 UNLIMITED
ges_rsv_msgs 0 0 0 0
gcs_resources 0 0 0 0
gcs_shadows 0 0 0 0
dml_locks 0 51 5828 UNLIMITED
temporary_table_locks 0 3 UNLIMITED UNLIMITED
transactions 1 7 1457 UNLIMITED
branches 0 0 1457 UNLIMITED
cmtcallbk 0 2 1457 UNLIMITED
sort_segment_locks 0 3 UNLIMITED UNLIMITED
max_rollback_segments 11 11 1457 65535
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_ALLOCATION LIMIT_VALUE
------------------------------ ------------------- --------------- -------------------- --------------------
max_shared_servers 1 1 UNLIMITED UNLIMITED
parallel_max_servers 0 0 40 3600
22 rows selected
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠