自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle并發(fā)連接數(shù)的設置方案

數(shù)據(jù)庫 Oracle
我們今天主要和大家分享的是Oracle并發(fā)連接數(shù)的實際操作步驟,以及相關的查詢解決方案的描述,以下就是文章的具體內(nèi)容的介紹。

以下的文章會向你介紹Oracle并發(fā)連接數(shù)在什么的情況下是可以設置,在什么的情況下是不可以對其進行設置的,以及相關的查詢解決方案的介紹。以下就是文章的具體內(nèi)容的介紹,希望你會有所收獲,

OERR: ORA-12519 TNS:no appropriate service handler found

客戶端連接間歇性失敗,報錯ORA-12519

 

  1. Cause: the listener could not find any available service handlers that are  
  2. appropriate for the client connection.  
  3. Action: run "lsnrctl services" to ensure that the instance(s) have registered  
  4. with the listener, and are accepting connections.   

 

檢查lsnrctl service ,instance已經(jīng)注冊,

狀態(tài)顯示ready時,可以連接。

 

  1. When the listener believes the current number of connections has reached maximum load,  
  2. it may set the state of the service handler for an instance to "blocked" and begin refusing  
  3. incoming client connections with either of the following errors: ora-12519 or ora-12516  

 

采用服務動態(tài)注冊的方式,由PMON 通過SERVICE_UPDATE 來得到目前連接情況,但SERVICE_UPDATE 有時間間隔,

所以,listener顯示的Oracle并發(fā)連接數(shù)和當前實際的連接數(shù)可能不同。

查詢解決方法:

查看一下數(shù)據(jù)庫現(xiàn)有的進程數(shù),是否已經(jīng)達到參數(shù)processes的大小。

1.select count(*) from v$process; 取得數(shù)據(jù)庫目前的進程數(shù)。

2.select value from v$parameter where name = 'processes'; 取得進程數(shù)的上限。

3.如已達到上限,修改initSID.ora中的processes的大小。

4.重新啟動數(shù)據(jù)庫到nomount狀態(tài)下,執(zhí)行create spfile from pfile; 并startup open。

查詢數(shù)據(jù)庫自啟動以來***的并發(fā)數(shù)量

修改***Oracle并發(fā)連接數(shù):

 

  1. alter system set processes = 300 scope = spfile

重啟數(shù)據(jù)庫:

 

  1. shutdown immediate;  
  2. startup;  

 

查看當前有哪些用戶正在使用數(shù)據(jù)

 

  1. SELECT osuser, a.username,cpu_time/executions/1000000||'s', sql_fulltext,machine  
  2. from v$session a, v$sqlarea b  
  3. where a.sql_address =b.address order by cpu_time/executions desc;  

 

2

有的時候我們需要調(diào)整oracle數(shù)據(jù)庫的***鏈接數(shù),而這個鏈接數(shù)的調(diào)整是在oacle下的dbs目錄下init.ora文件中調(diào)整的。

Oracle并發(fā)連接數(shù)(sessions)與其參數(shù)文件中的進程數(shù)(process)有關,它們的關系如下:

 

  1. sessions=(1.1*process+5) 

但是我們增加process數(shù)時,往往數(shù)據(jù)庫不能啟動了。這因為我們還漏調(diào)了一個unix系統(tǒng)參數(shù):它是核心參數(shù)中的semmns,這是unix系統(tǒng)的信號量參數(shù)。每個process會占用一個信號量。semmns調(diào)整后,需要重新啟動unix操作系統(tǒng),參數(shù)才能生效。不過它的大小會受制于硬件的內(nèi)存或ORACLE SGA。范圍可從200

 

【編輯推薦】

  1. Oracle 11g中***有獨特點的5大特點
  2. Oracle數(shù)據(jù)庫的四種實用性很強的啟動方式
  3. 九大Oracle性能優(yōu)化基本方法詳解
  4. Oracle數(shù)據(jù)庫保持其優(yōu)良性的手段有哪些
  5. Oracle遠程復制和異地容災的3種解決方案介紹
責任編輯:佚名 來源: 互聯(lián)網(wǎng)
相關推薦

2010-04-26 15:00:32

Oracle當前連接數(shù)

2009-06-09 09:32:48

LinuxApache帶寬控制

2010-04-20 16:38:44

Oracle最大連接數(shù)

2010-05-17 11:38:15

2021-07-02 10:42:55

MySQL連接數(shù)管理

2010-11-08 14:40:46

SQL Server連

2019-08-27 08:32:01

nginx訪問頻率下載速率

2010-04-02 14:46:54

Oracle當前連接數(shù)

2010-10-14 15:00:25

MySQL服務器

2021-02-04 09:05:07

MIMO網(wǎng)絡技術網(wǎng)絡性能

2010-05-24 11:00:18

2010-05-19 16:10:49

MySQL連接數(shù)

2012-05-04 08:03:21

Windows

2018-04-27 10:35:08

Tomcat連接數(shù)線程池

2010-09-07 09:08:53

DB2數(shù)據(jù)庫

2018-01-03 10:43:41

2010-05-31 18:41:10

MySQL連接數(shù)

2010-05-31 19:42:00

Ubuntu

2010-05-31 19:26:02

Ubuntu mrtg

2010-06-13 17:29:10

MySQL連接數(shù)
點贊
收藏

51CTO技術棧公眾號