您的位置:首页 > 数据库 > Oracle

Oracle 连接超时设置

2012-03-06 15:20 211 查看
使用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 使用详解
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: