在存儲過程當中常常要用到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;