如何限制一个用户的连接数?
如果你想限制用户test的连接数为2个,请:
在另外一个用户下
create profile myprofile limit
sessions_per_user 2;
然后 alter user test profile myprofile;
接着 alter system set resource_limit=true scope=spfile
最后 重启数据库
这样就成功了!
scope=spfile 是为了让重启动依然有效
如何限制一个用户的连接数?
如果你想限制用户test的连接数为2个,请:
在另外一个用户下
create profile myprofile limit
sessions_per_user 2;
然后 alter user test profile myprofile;
接着 alter system set resource_limit=true scope=spfile
最后 重启数据库
这样就成功了!
scope=spfile 是为了让重启动依然有效