首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ORA-01031: Oracle中权限不足

ORA-01031: Oracle中权限不足
EN

Stack Overflow用户
提问于 2021-03-24 19:20:59
回答 1查看 935关注 0票数 0

我在Windows服务器中使用Oracle,并且已被授予DBA角色,现在我正尝试使用以下命令解锁用户帐户:

代码语言:javascript
复制
ALTER USER user_account ACCOUNT UNLOCK;

我得到了这个错误:

代码语言:javascript
复制
SQL Error: ORA-01031: insufficient privileges
01031. 00000 -  "insufficient privileges"
*Cause:    An attempt was made to change the current username or password
           without the appropriate privilege. This error also occurs if
           attempting to install a database without the necessary operating
           system privileges.
           When Trusted Oracle is configure in DBMS MAC, this error may occur
           if the user was granted the necessary privilege at a higher label
           than the current login.

我不知道为什么!知道DBA角色可以更改用户!

那么,是什么导致了这个错误呢?

EN

回答 1

Stack Overflow用户

发布于 2021-03-24 19:34:18

默认情况下,DBA具有更改其他用户的权限。我怎么知道?

代码语言:javascript
复制
SQL> select * from dba_sys_privs where grantee = 'DBA' order by privilege;

GRANTEE                        PRIVILEGE                                ADM
------------------------------ ---------------------------------------- ---
DBA                            ADMINISTER ANY SQL TUNING SET            YES
DBA                            ADMINISTER DATABASE TRIGGER              YES
DBA                            ADMINISTER RESOURCE MANAGER              YES
<snip>
DBA                            ALTER USER                               YES    --> this
DBA                            ANALYZE ANY                              YES
DBA                            ANALYZE ANY DICTIONARY                   YES
<snip>

因此,要么是您的用户未被授予DBA角色,要么是有人从该角色中删除了ALTER USER

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66779962

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档