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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- stored procedure 收集session wait 資訊(轉)SessionAI
- Spring 呼叫 Stored Procedure 並獲取返回值Spring
- Orale的struct,array,cursor,stored procedure,function,package的用法例子StructFunctionPackage
- Procedure to create Distribution model
- 【樹莓派】 Warning from apt-key: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see te DEPRECATION樹莓派APTRust
- Sampling Procedure 和 Sample-drawing Procedure,SAP QM裡的雙胞胎?
- Oracle:On ROWNUM and Limiting ResultsOracleMIT
- iDLHCGP_Numerical_results
- iDLHCG_Numerical_results
- Elasticsearch——Filter search resultsElasticsearchFilter
- Numerical Results of adf-mDFP
- 再見!onActivityResult!你好,Activity Results API!API
- NFS mount results in "vmount: operation not permitted" errorNFSMITError
- Mysql關於procedure、function的詳解MySqlFunction
- 在SimpleRAG中使用SiliconCloud快速測試Function CallingCloudFunction
- 如何實現LLM的通用function-calling能力?Function
- Numerical Results of iFRCGP-I and iFRCGP-II
- Numerical Results of RhDYas CG method and RhLHas CG method
- mybatis3呼叫瀚高procedure報錯MyBatisS3
- mysql 儲存過程 procedure 批次建表MySql儲存過程
- 揭開OKR (Objectives and Key Results) 的面紗OKRObject
- Results of T2DFP and iT2DFP methods
- mysql檢視儲存過程show procedure status;MySql儲存過程
- [20180608]Wrong Results with IOT, Added Column and Secondary Index.txtIndex
- From now on
- sqli-labs————Less-47(procedure alalyse\lines terminated by利用)SQL
- SAP QM QPV3檢視Sample-Drawing Procedure
- mysql儲存過程procedure、函式function的用法MySql儲存過程函式Function
- [20180609]Wrong Results with IOT, Added Column and Secondary Index2.txtIndex
- Jetpack架構元件學習(3)——Activity Results API使用Jetpack架構元件API
- 差分:2020CCPC秦皇島 D Exam Results
- 神From不再 From Software的內憂與外患
- 深入探討Function Calling:實現外部函式呼叫的工作原理Function函式
- 深入探討Function Calling:在Semantic Kernel中的應用實踐Function
- from cmake make
- Array.from()
- Extract rows from a CORRUPT table creating ROWID from DBA_EXTENTS
- "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?APP
- [20230510]19c dg無法使用dbms_metadata.get_ddl檢視錶結構定義.txt