小说网站 搜小说 无限网 烟雨红尘 小说爱好者 免费小说 免费小说网站

How To Automate Disconnection of Idle Sessions

***Checked for relevance on 30-Apr-2012***
  • goal: How to automate disconnection of idle sessions
  • fact: Oracle Server - Enterprise Edition 8.1
fix: 1. Enable the feature - alter system set resource_limit = true; OR Set the parameter in the parameter file and restart the database. 2. Create the profile for monitoring idle time: - create profile profile_name limit idle_time no_of_minutes; Example: - create profile idletime limit idle_time 10; 3. Attach the profile to desired user: - alter user user_name profile profile_name; Example: - alter user scott profile idletime; This forces any Oracle user sessions, which have been inactive for greater than no_of_minutes, to be disconnected from the database. Any uncommitted transaction will be rolled back. When the idle time has passed, the session will be suspended. Next time the user enters a command he will receive an ORA-02396: exceeded maximum idle time, please connect again. Reference: Oracle8i Administrator's Guide, Chapter 22 Managing Users and Resources

posted on   王小航  阅读(121)  评论(0编辑  收藏  举报

编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示