ORA-12520 無法為請求的伺服器類型找到可用的處理常式

來源:互聯網
上載者:User

ORA-12520錯誤解決方案

ORA-12520聽程式無法為請求的伺服器類型找到可用的處理常式:

1)資料庫是專用伺服器,但是在tnsname.ora配置中設定了串連方式為shared,這種情況下開啟tnsname.ora,

把(server = shared) 改成 (server = dedicate)

2)是由於process不夠引起的

後來查看到v$process一直漲到140多,而我的資料庫設定的是150.據此大致能斷定process不夠,用以下語句修改資料庫的processes值

alter system set processes=500 scope=spfile(由於processes是靜態參數,scope只能為spfile,在v$sgastate條件為'procesees'中可以看到會每個process會點4個位元組),

重新啟動資料庫使新改的processes生效.再重新跑eclipse,就能正常啟動了.

note:如果在hibernate中的hibernate.connection.provider_class選擇的是c3p0的就會出這種情況,其它的好像不會.很奇怪為什麼c3p0會開啟那麼多個processs, 在shared連勢接方式下,shared_server即是一直連在資料庫的process值,注意這點

當前的串連數

select count(*) from v$process;

設定的最大串連數(預設值為150)

select value from v$parameter where name = 'processes';

修改最大串連數

alter system set processes = 300 scope = spfile;

相關文章

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.