Some things granted by Oracle permissions

  1. dbms_metadata.get_ddl()Grant permission to use
grant select_catalog_role to 用户名;

When the permissions are insufficient, an error select dbms_metadata.get_ddl('TABLE', '表名', '用户名') from dualwill be reported during execution . 2. Grant the query permission to the system view named in the format.ORA-31603
v$xxxx

grant select on v_$xxxx to 用户名;

It is actually a synonym of v$xxxview v_$xxx, so when authorizing, you need to query the actual name of the system view based on the synonym name before authorizing. The query statement is as follows:

SELECT * FROM DBA_SYNONYMS WHERE SYNONYM_NAME='V$INSTANCE'
-- 从查询结果可知 V$INSTANCE是V_$INSTANCE的同义词,因此正确的赋权命令如下:
GRANT SELECT ON V_$INSTANCE TO 用户名;

If you use synonyms to empower, an error ORA-01031: insufficient privilegesor ORA-02030: can only select from fixed tables/viewserror will be reported

Guess you like

Origin blog.csdn.net/Loiterer_Y/article/details/120013094