Home > Database > Mysql Tutorial > body text

ORA-02030解决办法

WBOY
Release: 2016-06-07 17:21:58
Original
2606 people have browsed it

平时需要给一些Oracle用户赋予动态性能视图的查询权限,今天碰到的问题如下:ORA-02030: can only select from fixed tables/vie

平时需要给一些Oracle用户赋予动态性能视图的查询权限,今天碰到的问题如下:

SQL> conn / as sysdba
Connected.
SQL> grant select on v$session to hr;
grant select on v$session to hr
                *
ERROR at line 1:
ORA-02030: can only select from fixed tables/views

可以查看相对的表名是什么,,赋予权限后就可以了。

SQL> select synonym_name,table_name from dba_synonyms where synonym_name='V$SESSION';
SYNONYM_NAME                  TABLE_NAME
------------------------------ ------------------------------
V$SESSION                      V_$SESSION
SQL> GRANT SELECT ON V_$SESSION TO HR;
Grant succeeded.
SQL> CONN HR/HR
Connected.
SQL> DESC V$SESSION;
。。。。。。。。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!