oracle profile sessions_per_user的用法
sessions_per_user的作用是限制每個user能登入的最多會話數,如果沒啟用資源限制的話,那這個引數
即使設定了也不會生效的:
以下為測試過程:
建立每個使用者只允許一個會話的限制
create profile one_session limit sessions_per_user 1;
將這個資源限制賦予給test使用者
alter user test profile one_session;
啟用資源限制
alter system set resource_limit=true;
測試:
C:\Documents and Settings\paulyi>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on 星期日 2月 7 12:04:03 2010
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
連線到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL>
SQL>
第二個使用者登入時就報超過限制的報錯了
C:\Documents and Settings\paulyi>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on 星期日 2月 7 12:04:21 2010
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
請輸入使用者名稱:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-626991/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- profile中SESSIONS_PER_USER 資源限制特性測試Session
- Oracle profile的使用Oracle
- Oracle profileOracle
- maven中profile元素的作用意義和用法Maven
- oracle之profile的應用Oracle
- oracle之 profile的應用Oracle
- Oracle OCP(29):PROFILEOracle
- ORACLE SQL PROFILE使用OracleSQL
- oracle profile 試驗Oracle
- oracle .bash_profileOracle
- Oracle Profile學習Oracle
- oracle的profile檔案學習Oracle
- ORACLE profile 優化配置Oracle優化
- Oracle Profile 使用詳解Oracle
- 如何解讀Oracle的LOAD PROFILEOracle
- oracle11g增加profileOracle
- ORACLE profile 最佳化配置Oracle
- Oracle Profile 使用詳解(轉)Oracle
- Oracle Profile and PASSWORD_VERIFY_FUNCTIONOracleFunction
- Oracle for Linux : .bash_profileOracleLinux
- Oracle Hints的用法Oracle
- oracle job的用法Oracle
- Oracle keep的用法Oracle
- Oracle Analyze的用法Oracle
- Oracle中with的用法Oracle
- Oracle Hint的用法Oracle
- Oracle的Cast的用法OracleAST
- ORACLE user profile配置/管理/維護Oracle
- Oracle使用者profile詳解Oracle
- oracle 11g增加業務profileOracle
- Oracle 使用者 profile 屬性Oracle
- 修改oracle賬戶profile設定Oracle
- Oracle SQL Profile固定執行計劃的方法OracleSQL
- 【PROFILE】使用Oracle的PROFILE對使用者資源限制和密碼限制的研究與探索Oracle密碼
- ORACLE WITH AS 用法Oracle
- oracle comment on的用法Oracle
- oracle explain plan for的用法OracleAI
- 【 Oracle中rownum的用法 】Oracle