解決Oracle XE允許連接的用戶數(shù)不足問題
在數(shù)據(jù)庫服務(wù)器上運(yùn)行 sqlplus system/password@xe (其中 system 是數(shù)據(jù)庫用戶無需改變;password 是數(shù)據(jù)庫密碼應(yīng)指定為實(shí)際密碼;xe 是數(shù)據(jù)庫實(shí)例名稱) ,然后執(zhí)行:
alter system set session_cached_cursors=200 scope=spfile;
alter system set session_max_open_files=200 scope=spfile;
alter system set sessions=20 scope=spfile;
alter system set license_max_sessions=200 scope=spfile;
alter system set license_sessions_warning=200 scope=spfile;
alter system set processes=200 scope=spfile;
執(zhí)行后,重啟 Oracle XE 數(shù)據(jù)庫實(shí)例即可。要重啟 Oracle XE 數(shù)據(jù)庫實(shí)例:
1. 如安裝于 Windows 上,先運(yùn)行 net stop oracleservicexe,再運(yùn)行 net start oracleservicexe 即可。也可通過“服務(wù)”管理控制臺重啟 OracleServiceXE 服務(wù)。
2. 如安裝于 Linux 上,先運(yùn)行 /etc/init.d/oracle-xe start,再運(yùn)行 /etc/init.d/oracle-xe stop 即可。
此時(shí),可以支持 179 個(gè)額外的連接會話。
posted on 2009-11-27 19:54 suplayer 閱讀(426) 評論(0) 編輯 收藏 所屬分類: Database