ORA-01925:maximum of 80 enabled roles exceeded

ORA-01925:maximum of 80 enabled roles exceeded

max_enabled_roles  9i的参数,10g及以后都不用了。
指定用户session的最大enabled roles数。

MAX_ENABLED_ROLES specifies the maximum number of database roles that users can enable, including roles contained within other roles. The actual number of roles that users can enable is 2 plus the value of MAX_ENABLED_ROLES, because each user has two additional roles, PUBLIC and the user's own role.
For example, if MAX_ENABLED_ROLES is set to 5, then user HR can have seven roles enabled (the five enabled by MAX_ENABLED_ROLES, plus PUBLIC and HR).

查查系统用得比较多role的用户,但这样查出来,还不包括以role授予给role再授予用户的嵌套情况
select grantee,count(*) from dba_role_privs group by grantee order by count(*) desc;

也可以直接查当前会话enable的role数量
select count(*) from session_roles;

如果用户登陆不上了,必然是授予太多role了。
可以改大参数,但要重启库。
alter system set max_enabled_roles=148 scope=spfile;

嗯,最大值是148,不能设置为更大的了

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值