ORA-01925:maximum of 80 enabled roles exceeded
生活随笔
收集整理的這篇文章主要介紹了
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;
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。不能設置為更大的了
?
總結
以上是生活随笔為你收集整理的ORA-01925:maximum of 80 enabled roles exceeded的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《数据科学R语言实践:面向计算推理与问题
- 下一篇: 使用对象存储应对勒索病毒