【Oracle】ORA-38171: Insufficient privileges for SQL management object operation
2016-12-23 19:37
796 查看
问题:
使用SQL PLAN MANAGEMENT的时候运行下面的存储过程报错。
原因是用户没有ADMINISTER SQL MANAGEMENT OBJECT权限,赋权给用户即可:
GRANT ADMINISTER SQL MANAGEMENT OBJECT to USER;
使用SQL PLAN MANAGEMENT的时候运行下面的存储过程报错。
SYS@GOOD> conn scott/tiger Connected. SCOTT@GOOD> DECLARE 2 l_plans_loaded PLS_INTEGER; 3 BEGIN 4 l_plans_loaded := DBMS_SPM.load_plans_from_cursor_cache( 5 sql_id => '4tjq4phnjj1gs'); 6 DBMS_OUTPUT.put_line('Plans Loaded: ' || l_plans_loaded); 7 END; 8 / DECLARE * ERROR at line 1: ORA-38171: Insufficient privileges for SQL management object operation ORA-06512: at "SYS.DBMS_SPM", line 2327 ORA-06512: at line 4
原因是用户没有ADMINISTER SQL MANAGEMENT OBJECT权限,赋权给用户即可:
GRANT ADMINISTER SQL MANAGEMENT OBJECT to USER;
SYS@GOOD> GRANT ADMINISTER SQL MANAGEMENT OBJECT to scott; Grant succeeded.
相关文章推荐
- VIEWS for Oracle object privileges
- 监听报错 TNS-00525: Insufficient privilege for operation 11gR2 + 连接报错ORA-12537: TNS:connection closed
- oracle bug? ORA-07445 ,pl/sql for in()
- Oracle 远程连接访问出错ORA-01031:Insufficient privileges!
- ORA-31685: Object type DB_LINK:"NCAOODS"."LINK_SNAPSHOTM" failed due to insufficient privileges. Fai
- Oracle PL/SQL For Dummies
- BizTalk Adapter Pack for Oracle:Connecting to the LOB system has failed.ORA-1017: invalid name/password
- SQL优化工具Lecco SQL Expert For Oracle
- 关于ORACLE提示:"System.Data.OracleClient.OracleException: ORA-06550: 第 1 行, 第 7 列: \nPLS-00306: 调用 'xxxxxx' 时参数个数或类型错误\nORA-06550: 第 1 行, 第 7 列: \nPL/SQL: Statement ignored\n\r\n 的错误
- SQL Server Migration Assistant for Oracle使用手迹
- 错误提示:SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17004];
- Oracle 10g "RemoteOperationException: ERROR: Wrong password for user"错误 解决方案
- 微软企业库中数据库访问代码问题(System.InvalidOperationException: Parameter '@FileContent' exceeds the size limit for the sql_variant datatype.)
- Auto generate change scripts in SQL Server Management Studio (SSMS) for tables
- Install Oracle Transparent Gateway for Microsoft SQL Server Step By Step
- sql FAQ for Oracle (四)
- Insufficient memory for this operation??
- 转贴:历史上最强的sql FAQ for Oracle
- SQL FOR Oracle
- 安装 Oracle 10G 的 OWB java.sql.SQLException: ORA-22905: 无法从非嵌套表项访问行