首页 > 数据库 > Oracle > 使用profile来限制用户的资源
创建限制profile:
####空闲时间限制为30分钟
create profile xxxx limit idle_time 30;
####会话数限制为10个
alter profile xxxx limit sessions_per_user 10;
####将用户加入到创建的profile:
alter user *** profile gkht_user;
####查看profile所限制的资源:
select * from dba_profiles where profile='xxxx';
####查看用户与profile的对应关系:
select username,profile from dba_users;
xxxx是profile名称,***用户名,根据需要自行修改
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31438871/viewspace-2199198/ ,如需转载,请注明出处,否则将追究法律责任。