當(dāng)前位置:
首頁 >
ORA-01925:maximum of 80 enabled roles exceeded
發(fā)布時(shí)間:2024/4/14
55
豆豆
生活随笔
收集整理的這篇文章主要介紹了
ORA-01925:maximum of 80 enabled roles exceeded
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
ORA-01925:maximum of 80 enabled roles exceeded
max_enabled_roles?9i的參數(shù),10g及以后都不用了。 指定用戶session的最大enabled roles數(shù)。
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).
查查系統(tǒng)用得比較多role的用戶,但這樣查出來,還不包含以role授予給role再授予用戶的嵌套情況 select grantee,count(*) from dba_role_privs group by grantee order by count(*) desc;
也能夠直接查當(dāng)前會(huì)話enable的role數(shù)量 select count(*) from session_roles;
假設(shè)用戶登陸不上了,必定是授予太多role了。 能夠改大參數(shù),但要重新啟動(dòng)庫。 alter system set max_enabled_roles=148 scope=spfile;
max_enabled_roles?9i的參數(shù),10g及以后都不用了。 指定用戶session的最大enabled roles數(shù)。
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).
查查系統(tǒng)用得比較多role的用戶,但這樣查出來,還不包含以role授予給role再授予用戶的嵌套情況 select grantee,count(*) from dba_role_privs group by grantee order by count(*) desc;
也能夠直接查當(dāng)前會(huì)話enable的role數(shù)量 select count(*) from session_roles;
假設(shè)用戶登陸不上了,必定是授予太多role了。 能夠改大參數(shù),但要重新啟動(dòng)庫。 alter system set max_enabled_roles=148 scope=spfile;
嗯,最大值是148。不能設(shè)置為更大的了
?
總結(jié)
以上是生活随笔為你收集整理的ORA-01925:maximum of 80 enabled roles exceeded的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《数据科学R语言实践:面向计算推理与问题
- 下一篇: 使用对象存储应对勒索病毒