使用profile来限制用户的资源

来源:这里教程网 时间:2026-03-03 11:51:38 作者:

创建限制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名称,***用户名,根据需要自行修改

相关推荐