Oracle 连接超时设置

来源:互联网 发布:java开发视频 编辑:程序博客网 时间:2024/05/17 06:51

使用oJDBC调试程序时,会因为连接超时而终止运行,搜了一下设置方法,如下:

1、动态地使用alter system或使用初始化参数resource_limit使资源限制生效。该改变对密码资源无效,密码资源总是可用。
SQL> alter system set resource_limit=true;

2、创建Profile

SQL> create profile connNoTimeout
  2  limit connect_time unlimited
  3  idle_time unlimited;

3、将profile分配给用户

SQL> alter user sys profile connNoTimeout;

4、查询

select profile from dba_users where username='YOURUSER';
select * from dba_profiles where profile='PROFILENAME';

参考:

1、Oracle连接超时自动断开问题

2、Oracle Profile 使用详解

原创粉丝点击