Tuesday, March 17, 2015

ORA-02030 How to grant on v$ views

Today I have faced an issue while giving GRANT permission on a v$ view. Received 'ORA-02030: can only select from fixed tables/views' error.

SQL> grant select on v$instance to apps;
grant select on v$instance to apps
                *
ERROR at line 1:
ORA-02030: can only select from fixed tables/views

SQL>

Solution:

Here the problem is caused because of trying to give select privilege on a synonym, Oracle v$ views are named V_$VIEWNAME and they have synonyms in format V$VIEWNAME and we can't give any privilege on a synonym.

If you want to give permission to a V$ views, Follow below way,,

SQL> grant select on v_$instance to apps;

Grant succeeded.

SQL>

Thats it,, hope this will help you. :)

Regards,
Chowdari

Some Most Popular Articles