1. 程式人生 > >修改Sybase最大連線數

修改Sybase最大連線數

[修改原因]
  配置sybase的ODBC連線時,告警:[DataDirect][ODBC Sybase Wire Protocol driver][Sybase ASE]There are not enough user connections available; you are being connected using a temporary administrator connection which will time out after 15 minutes. Increase the value of the ‘number of user connnections’ parameter.
 
[修改方法]
  使用儲存過程:sp_configure "number of user connections",30
  由於licence的限制,可能修改會不成功,提示:Illegal value '30' specified for configuration option 'number of user connections'. The legal values are between '5' and '25'.
  可以刪除license(最好的辦法是修改一下目錄/home/sybase/SYSAM-1_0/licenses的名稱,以備萬一出錯好恢復)
  然後重啟資料庫,再使用sp_configure "number of user connections",30修改使用者連線數,再重啟生效。
  如果修改連線數過大,如100或200,可能會提示max memory不夠,這時可以先使用sp_configure "max memory",15360000修改最大記憶體數,再修改"number of user connections"即可。