
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
查了一下,可以用命令行生成相应的文件:
Scaffold-DbContext "Server=.\SQLExpressDatabase=SchoolDBTrusted_Connection=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
连接字符串放json里面
"ConnectionStrings": {
"MbkDbConstr": "Data Source=(localdb)\\MBKDatabase=MbkTest"
}
参考资料:
网页链接
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)