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

來源:互聯網
上載者:User

oracle中設定了最大連結數還是報錯,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                 1200sessions                                        27             362       1325                 1325enqueue_locks                                   15              25      15950                15950enqueue_resources                               15              43       6048            UNLIMITEDges_procs                                        0               0          0                    0ges_ress                                         0               0          0            UNLIMITEDges_locks                                        0               0          0            UNLIMITEDges_cache_ress                                   0               0          0            UNLIMITEDges_reg_msgs                                     0               0          0            UNLIMITEDges_big_msgs                                     0               0          0            UNLIMITEDges_rsv_msgs                                     0               0          0                    0gcs_resources                                    0               0          0                    0gcs_shadows                                      0               0          0                    0dml_locks                                        0              51       5828            UNLIMITEDtemporary_table_locks                            0               3  UNLIMITED            UNLIMITEDtransactions                                     1               7       1457            UNLIMITEDbranches                                         0               0       1457            UNLIMITEDcmtcallbk                                        0               2       1457            UNLIMITEDsort_segment_locks                               0               3  UNLIMITED            UNLIMITEDmax_rollback_segments                           11              11       1457                65535 RESOURCE_NAME                  CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_ALLOCATION   LIMIT_VALUE------------------------------ ------------------- --------------- -------------------- --------------------max_shared_servers                               1               1  UNLIMITED            UNLIMITEDparallel_max_servers                             0               0         40                 3600 22 rows selected 




改了oracle的最大串連數之後,system使用者都被鎖定了,怎解鎖?sys使用者我也忘記密碼了?下面是串連報的錯誤

進入資料庫伺服器,如果是unix作業系統則需要進入oracle使用者,直接輸入
sqlplus /nocatalog

conn / as sysdba

alter user system identifed by 新密碼

但是我感覺你的問題不是忘記密碼了

建議你看一下ORACLE_BASE\ORACLE_HOME\NETWORK\ADMIN的sqlnet.ora檔案
  把sqlnet.authentication_services=(NTS) 改成sqlnet.authentication_services=(NONE) 試試
 
ORACLE insert 插入幾百調資料就報錯 達到最大區數<32765> 回退 看圖片 重新插入就不報錯了 不知道什願

你是不是沒有自動擴容功能啊
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64
minextents 1
maxextents unlimited
);
你安裝pl/sql沒呢,看看你的表結構的裡面的查看sql看看有沒有擴容功能,
對了
或者是不是超過了table欄位的定義的長度,請檢查一下
 

相關文章

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.