我想在开始时间大于 1 小时时自动终止 session 。
我该怎么做?
最佳答案
你可以设置一个 空闲超时或 连接超时 在配置文件中,并根据需要将该配置文件分配给用户。
来自 the CREATE PROFILE
documentation :
If a user exceeds the
CONNECT_TIME
orIDLE_TIME
session resource limit, then the database rolls back the current transaction and ends the session. When the user process next issues a call, the database returns an error.[...]
CONNECT_TIME
: Specify the total elapsed time limit for a session, expressed in minutes.
IDLE_TIME
: Specify the permitted periods of continuous inactive time during a session, expressed in minutes. Long-running queries and other operations are not subject to this limit.
关于sql - 如何自动终止事件 session ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54518111/