使用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';
参考: