重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3965|回复: 1
打印 上一主题 下一主题

[Oracle] alter 日志出现大量的Maximum of 148 enabled roles exceeded for user ZLHIS. Not...

[复制链接]
跳转到指定楼层
楼主
发表于 2019-6-14 15:13:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象如下:Fri Jun 14 09:52:50 2019
Maximum of 148 enabled roles exceeded for user ZLHIS. Not loading all the roles.
Fri Jun 14 09:52:50 2019
Maximum of 148 enabled roles exceeded for user ZLHIS. Not loading all the roles.
Fri Jun 14 09:52:51 2019
Maximum of 148 enabled roles exceeded for user ZLHIS. Not loading all the roles.


报错原因:用户zlhis最多超过了148个启用的角色

查看当前用户zlhis用户角色数
SQL> select "Grantee", count(*) "Role Number" from
2 (
3 select distinct connect_by_root grantee "Grantee", granted_role
4 from dba_role_privs
5 connect by prior granted_role=grantee
6 ) where GRANTEE='ZLHIS'
7 group by "Grantee"
8 order by "Grantee","Role Number"
9 /

GRANTEE COUNT(*)
—————————— ———-
ZLHIS 149



SQL> show parameter max_enabled_roles

NAME TYPE VALUE
———————————— ———-- ————
max_enabled_roles integer 150



由此可见,当前用户zlhis已启用149个角色超过系统最大值148个角色,解决办法删除一部分角色。

具体可以参照What to Check When Dealing With Ora-28031: Maximum Of 148 Enabled Roles Exceeded? (Doc ID 778785.1)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2023-2-20 19:11:11 | 只看该作者
通过这个下面这个语句可以解决:
alter user zlhis default role dba
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-20 22:15 , Processed in 0.084591 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表