SQL> grant select on x$ksppi to eygle; grant select on x$ksppi to eygle * ERROR at line 1: ORA-02030: can only select from fixed tables/views |
where inst_id = USERENV(’Instance’) |
SQL> select view_definition from v_$fixed_view_definition where view_name=’V$FIXED_TABLE’; VIEW_DEFINITION ------------------------------------------------------------------------------ select NAME , OBJECT_ID , TYPE , TABLE_NUM from GV$FIXED_TABLE where inst_id = USERENV(’Instance’) |
SQL> select view_definition from v_$fixed_view_definition where view_name=’GV$FIXED_TABLE’; VIEW_DEFINITION ------------------------------------------------------------------------------ select inst_id,kqftanam, kqftaobj, ’TABLE’, indx from x$kqfta union all select inst_id,kqfvinam, kqfviobj, ’VIEW’, 65537 from x$kqfvi union all select inst_id,kqfdtnam, kqfdtobj, ’TABLE’, 65537 from x$kqfdt |
create or replace view v_$fixed_table as select * from v$fixed_table; create or replace public synonym v$fixed_table for v_$fixed_table; create or replace view gv_$fixed_table as select * from gv$fixed_table; create or replace public synonym gv$fixed_table for gv_$fixed_table; |