安装了Oracle Rac 11g,并且解除了scott用户的锁定。使用scott登陆后,本想从远程查看一下v$instance,没想到报错:
table or view does not exist
查看一下scott的系统权限:
select * from dba_sys_privs where grantee='SCOTT';
注意用户名大写。结果:
GRANTEE PRIVILEGE ADM
------------------------------ ---------------------------------------- ---
SCOTT UNLIMITED TABLESPACE NO 没有访问数据字典的权限。授予:
SQL> grant SELECT ANY DICTIONARY to scott;
Grant succeeded. 再查看:
SQL> select * from dba_sys_privs where grantee='SCOTT';
GRANTEE PRIVILEGE ADM
------------------------------ ---------------------------------------- ---
SCOTT SELECT ANY DICTIONARY NO
SCOTT UNLIMITED TABLESPACE NO 再查询便可以了。PS:查询用户有哪些角色可以用:
select * from dba_sys_privs where grantee='SCOTT'

本文介绍了在OracleRAC11g中解除scott用户锁定并成功配置其访问数据字典权限的过程。通过授予SELECT ANY DICTIONARY权限解决了scott用户无法查看v$instance的问题。
599

被折叠的 条评论
为什么被折叠?



