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 使用详解
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 使用详解
相关文章推荐
- Oracle设置数据库连接超时
- oracle连接由于防火墙设置导致超时的问题
- Xfire生成webservice客户端,设置连接超时
- python下设置urllib连接超时
- Socket中如何设置连接超时
- C# Socket连接超时设置
- boost::asio设置同步连接超时
- 基于XSocket框架的socket编程技巧(设置连接的超时时间和最大空闲时间)
- Hibernate连接数据库超时设置
- 连接数据库超时设置autoReconnect=true
- Solaris10 如何设置空闲ssh连接超时断开
- jdbc 连接数据库设置超时
- windows下dg备库连接需要设置ORACLE_SID
- Oracle - 启动、关闭、查看实例、用户解锁、连接数量、数据库信息、命令行显示设置
- Hessian连接超时设置
- Socket 关于设置Socket连接超时时间
- oracle 11g thin链接的超时参数设置
- Httpclient 设置读取超时及连接重试等配置
- Socket中如何设置连接超时
- 【oracle无法远程连接】oracle设置允许远程连接