Calling Dbms_metadata.Get_ddl From Stored Procedure Results Ora-31603_463483.1
Calling Dbms_metadata.Get_ddl From Stored Procedure Results In Ora-31603 (文件 ID 463483.1)
In this Document
Applies to:Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.3Information in this document applies to any platform. SymptomsCalling dbms_metadata.get_ddl from a stored procedure to get the DDL of an object in another schema raises the following error:
ERROR at line 1:
ORA-31603: object Calling the dbms_metadata.get_ddl directly from sql*plus on the same object works fine. Cause
This problem was diagnosed in Bug 3960099 - ORA-31603 WHEN CALLING DBMS_METADATA FROM PROCEDURE Solution1- Create the procedure with AUTHID CURRENT_USER2- Grant SELECT ANY DICTIONARY privilege to any user calling the procedure OR 1- Create the procedure in the SYS schema 2- Grant execute on the procedure to the chosen users. ReferencesBUG:2756450 - DBMS_METADATA.GET_DDL RAISES ORA-31603 WHEN CALLED FROM FUNCTIONBUG:3047487 - DBMS_METADATA.GET_DDL RAISES ORA-30603 WHEN USED WITH OBJECT IN ANOTHER SCHEMA BUG:3960099 - ORA-31603 WHEN CALLING DBMS_METADATA FROM PROCEDURE BUG:6080955 - ORA-31603: ERROR WHEN USING DBMS_METADATA.GET_DDL |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1457028/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- execute shell script from stored procedure
- How to rename an Oracle stored procedureOracle
- Oracle stored procedure to send emailOracleAI
- stored procedure 收集session wait 資訊SessionAI
- stored procedure 收集session wait 資訊(轉)SessionAI
- Entity Framework Tutorial Basics(29):Stored Procedure in Entity FrameworkFramework
- OWI --用 stored procedure 收集session wait 資訊SessionAI
- Result Sets from Stored Procedures In Oracle (轉)Oracle
- Entity Framework 6.0 Tutorials(9):Stored Procedure MappingFrameworkAPP
- SQL error 2812: Could not find stored procedure.docSQLError
- Spring 呼叫 Stored Procedure 並獲取返回值Spring
- Orale的struct,array,cursor,stored procedure,function,package的用法例子StructFunctionPackage
- Send Email with Attachments from PL/SQL using Java Stored ProceduresAISQLJava
- Stored Procedure(儲存過程)編寫經驗和最佳化措施 (轉)儲存過程
- NAVICATE 修改儲存過程提示PROCEDURE _Navicat_Temp_Stored_Proc already exists 解決方法儲存過程
- 編寫電子書包平臺所有表主鍵之儲存過程_sp_stored procedure儲存過程
- 儲存過程plsql_stored procedure_為業務系統所有業務表生成主鍵pk方式儲存過程SQL
- Elasticsearch——Filter search resultsElasticsearchFilter
- How Views are Stored (175)View
- Oracle:On ROWNUM and Limiting ResultsOracleMIT
- JAVA 使用雜湊表運算元據庫的例子 Using Hashtables to Store & Extract results from a Database. (轉)JavaDatabase
- Procedure加密加密
- dbms_metadata.get_ddl
- How Indexes Are Stored (206)Index
- Oracle Wrap ProcedureOracle
- alter package/procedurePackage
- 再見!onActivityResult!你好,Activity Results API!API
- NFS mount results in "vmount: operation not permitted" errorNFSMITError
- 【PLAN STABILITY】 STORED-OUTLINE
- 結果分析碼( results analysis key )
- How to use sql result stored on shell variable?SQL
- iDLHCGP_Numerical_results
- iDLHCG_Numerical_results
- dbms_metadata.get_ddl的妙用
- dbms_metadata.get_ddl學習
- dbms_metadata.get_ddl的使用
- 關於dbms_metadata.get_ddl
- dbms_metadata.get_ddl的用法