码迷,mamicode.com
首页 > 数据库 > 详细

oracle中设置了最大链接数还是报错

时间:2014-10-31 15:44:24      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:oracle

需要更新的数据有1100条,我连接的时候一直报错 

ORA-12518, TNS:listener could not hand off client connection

根据商品的文章设置了最大连接数为:1200,session为1200*1.1+5=1325,但是tomcat还是报错

ORA-12518, 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


查看当前的的数据库v$processes 只有356,v$session 352 

PMON每5分钟更新listener中的内容,所以listener和数据库不一定是同步的,你现在从数据库上得知有356个连接,并不代表listener里面记录的是356个, 5分钟之内很可能还没有被pmon更新,依然保持着1200所以你报错ORA-12518 而不是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
 



oracle中设置了最大链接数还是报错

标签:oracle

原文地址:http://blog.csdn.net/estelle_belle/article/details/40654149

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!