發現有的時候,EBS會報串連數不足的問題。所以嘗試著提高了processes和sessions,EBS安裝完之後,資料庫init參數processes預設為200,sessions預設為400.這裡我把DB的processes和sessions提高到了500和1000。
processes = 500 # Max. no. of users x 2
sessions = 1000 # 2 X processes
修改完之後,重啟DB,參數就會生效。
addbctl.sh stop
addbctl.sh start
查看參數設定
show parameter processes
show parameter sessions
文章Oracle EBS DB Init Parameters裡(見 ),有提到Oracle提供一個init parameter參考的設定。
關於Processes和sessions parameters,init.ora有相關描述
#########
#
# Processes and sessions parameters
#
# A database process can be associated with one or more database
# sessions. For all technology stack components other than Oracle
# Forms, there is a one-to-one mapping between sessions and processes.
#
# For Forms processes, there will be one database session per
# open form, with a minimum of two sessions per Forms user (one
# for the navigator form, and one for the active form).
#
# The sessions parameter should be set to twice the value of the
# processes parameter.
#
#########
另外如何查詢當下資料的串連數和最大串連數
- --當前的串連數
- select count(*) from v$process;
- --設定的最大串連數(預設值為200)
- select value from v$parameter where name = 'processes';
- ------------------------------------------------
- --查看當前的session使用方式
- SELECT Count(*) FROM v$session;
- 或
- SELECT username, machine, program, status, COUNT (machine) AS
- FROM v$session
- GROUP BY username, machine, program, status
- ORDER BY machine;
- --查看系統最大session數
- select value from v$parameter where name = 'sessions';