oracle受权动态视图权限给用户

在存储过程当中常常要用到oracle系统动态视图,须要给动态视图赋值给用户sql

给用户hf0928赋值视图 v$parameter查询权限oracle

grant select on v$parameter to hf0928;

会报错误:code

    ORA-02030: can only select from fixed tables/viewstable

正确的受权是按表名来受权,视图不行,查询 v$parameter对应的表名,并赋权限给用户就能够class

select synonym_name,table_name from dba_synonyms where synonym_name='V$PARAMETER';

grant select on v_$parameter to hf0928;
相关文章
相关标签/搜索