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

转载于:https://www.cnblogs.com/wanghang/p/6298927.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值