oracle - Rolling back Oracle Transction if not committed within certain minutes
问题描述
We've had problems on production where some developers have not committed the transactions which resulted in locks. Is there a way for me rollback a transaction if it complete and not committed within certain number of minutes?
解决方案
您可以创建新的或更改当前数据库配置文件以限制用户空闲时间:
Create Profile Idle_Time_Out limit idle_time 30;
然后将用户分配给该配置文件:
Alter User some_user Profile Idle_Time_Out;
上述配置文件将 some_user 限制为 30 分钟不活动,此时他们的会话将断开连接,并且任何未提交的事务都将回滚。
推荐阅读
- c# - MVC Core 2.0 的多种形式、单一视图、ViewModel
- javascript - 赠品功能
- java - 在从通知开始另一个活动之前完成一个活动
- python - 如何在kivy中恢复默认屏幕尺寸?
- swift - 从 Swift 中的 Firebase 快照中获取值
- reactjs - 在加载图像之前,scrollintoview 不起作用
- angular - 如何使 tailwindcss 与当前的 Angular 6 一起工作?
- python - 如何在 Google Compute Engine 中通过 Python 访问 Google Cloud SQL
- c++ - 如何使用 asio 本地数据报构建回显服务器和客户端?
- ethereum - waitOnReceipt 函数在 SuperBlocks 上运行时无法稳定运行