ORA-02396: exceeded maximum idle time, please connect again的原因
2013-10-16 09:30
483 查看
一般为了防止过多活动的session占用资源,可以对允许连接到数据库的session个数,已连接到数据库的session空闲时间等进行限制(当然也可以对尝试连接次数等其它很多内容进行限制)。方式就是可以通过创建一个profile配置,然后将这个profile配置赋给每个用户。
要使用这种限制的前提是将resource_limit这个参数设置为TRUE。
alter system set RESOURCE_LIMIT=true;
创建用户时如果未指定具体profile,会有一个默认的profile,名称是DEFAULT,如下所示:
SELECT * FROM dba_profiles WHERE PROFILE='DEFAULT';
![](https://img-blog.csdn.net/20131016092752328?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYmlzYWw=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
这是这个名称为DEFAULT的所有配置项参数。
其中IDLE_TIME就是一个session连上Oracle后不做任何事情,挂在那里的空闲时间。DEFAULT默认所有的参数都是UNLIMITED,也就是无限制。
但也可以对其进行修改。例如创建一个名称为idletime_profile的profile,并指定其中idle_time参数值是1,单位是分钟。
SQL> create profile idletime_profile limit idle_time 1;
Profile created.
并将该profile赋给用户bisal
SQL> alter user bisal profile idletime_profile;
User altered.
这样当用bisal登录到Oracle后,持续1分钟不干事,再次执行某个操作时就会报ORA-02396: exceeded maximum idle time, please connect again
要使用这种限制的前提是将resource_limit这个参数设置为TRUE。
alter system set RESOURCE_LIMIT=true;
创建用户时如果未指定具体profile,会有一个默认的profile,名称是DEFAULT,如下所示:
SELECT * FROM dba_profiles WHERE PROFILE='DEFAULT';
这是这个名称为DEFAULT的所有配置项参数。
其中IDLE_TIME就是一个session连上Oracle后不做任何事情,挂在那里的空闲时间。DEFAULT默认所有的参数都是UNLIMITED,也就是无限制。
但也可以对其进行修改。例如创建一个名称为idletime_profile的profile,并指定其中idle_time参数值是1,单位是分钟。
SQL> create profile idletime_profile limit idle_time 1;
Profile created.
并将该profile赋给用户bisal
SQL> alter user bisal profile idletime_profile;
User altered.
这样当用bisal登录到Oracle后,持续1分钟不干事,再次执行某个操作时就会报ORA-02396: exceeded maximum idle time, please connect again
相关文章推荐
- ORA-02396: exceeded maximum idle time, please connect again的原因
- ORA-02396: exceeded maximum idle time, please connect again
- ORA-02396: exceeded maximum idle time, please connect again
- GoldenGate进程 abend,报错为OGG-00868 ORA-02396: Exceeded Maximum Idle Time, Please Connect Again
- GoldenGate过程 abend,报错OGG-00868 ORA-02396: Exceeded Maximum Idle Time, Please Connect Again
- 【翻译自mos文章】rman 备份时报:ORA-02396: exceeded maximum idle time
- 【翻译自mos文章】rman 备份时报:ORA-02396: exceeded maximum idle time
- 循环执行sql语句时报 ORA-01000 maximum open cursors exceeded 超出打开游标的最大数的原因和解决方案
- ORA-01000: maximum open cursors exceeded 超出打开游标的最大数的原因和解决方案
- ora-01000: maximum open cursors exceeded. 问题原因
- ORA-01000_maximum_open_cursors_exceeded_超出打开游标的最大数的原因和解决方案
- Subject: ORA-02396 when idle_time = unlimited
- Fatal error: Maximum execution time of 30 seconds exceeded in
- C# Maximum request length exceeded. 产生错误的原因,以及解决方法.
- 现Fatal error: Maximum execution time of 30 seconds exceeded in解决办法
- ORA-01000: maximum open cursors exceeded, 引发的JDBC, DBPool的思考
- oracle ORA-01000: maximum open cursors exceeded问题的解决方法
- 关于 ORACLE游标的问题(ORA-01000: maximum open cursors exceeded)
- Fatal error: Maximum execution time of 30 seconds exceeded i
- How to resolve maximum open cursors exceeded on Oracle(ORA-01000)-- 1