Oracle中設定了最大連結數還是報錯

來源:互聯網
上載者:User

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

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.