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
EntityFramework是一个基于ADO.Net的ORM,数据库连接池的配置在连接字符串中配置就行了,例如:连接字符串为“Server=myServerAddressDatabase=myDataBaseUid=myUsernamePwd=myPasswordMinimumPoolSize=10maximumpoolsize=50”
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)