ORA-06521:執行dbms_stats.gather_table_stats報Error mapping function
ORA-06521: PL/SQL: Error mapping function
環境:oracle9.2.0.6
SQL> exec dbms_stats.gather_schema_stats('ys');
begin dbms_stats.gather_schema_stats('ys'); end;
ORA-06521: PL/SQL: 對映函式時出錯
ORA-06512: 在"SYS.DBMS_STATS", line 10070
ORA-06512: 在"SYS.DBMS_STATS", line 10564
ORA-06512: 在"SYS.DBMS_STATS", line 10751
ORA-06512: 在"SYS.DBMS_STATS", line 10805
ORA-06512: 在"SYS.DBMS_STATS", line 10782
ORA-06512: 在line 2
SQL> exec dbms_stats.gather_table_stats(user,'tb_family_info');
begin dbms_stats.gather_table_stats(user,'tb_family_info'); end;
ORA-06521: PL/SQL: 對映函式時出錯
ORA-06512: 在"SYS.DBMS_STATS", line 10070
ORA-06512: 在"SYS.DBMS_STATS", line 10084
ORA-06512: 在line 2
Just completing the thread with the solution.
Recompile the DBMS_STATS package :
源文件 <>
E:>sqlplus "/as sysdba"
SQL> alter package dbms_stats compile;
SQL> show errors
SQL> @?/rdbms/admin/dbmsstat.sql
SQL> @?/rdbms/admin/prvtstas.plb
SQL> @?/rdbms/admin/prvtstat.plb
try it again
SQL>
SQL>
SQL> exec dbms_stats.gather_table_stats(user,'tb_family_info');
begin dbms_stats.gather_table_stats(user,'tb_family_info'); end;
ORA-04068: 已丟棄程式包 的當前狀態
ORA-04061: package "SYS.DBMS_STATS" 的當前狀態失效
ORA-04065: 未執行,已更改或刪除 package "SYS.DBMS_STATS"
ORA-06508: PL/SQL: 無法在呼叫之前找到程式單元
ORA-06512: 在line 2
SQL> exec dbms_stats.gather_table_stats(user,'tb_family_info');
PL/SQL procedure successfully completed
SQL> exec dbms_stats.gather_schema_stats('ys');
PL/SQL procedure successfully completed
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/645199/viewspace-686390/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP Table function 執行報錯 feature not supported 該如何分析Function
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- 執行收集統計資訊dbms_stats.gather_table_stats包的bug
- javascript中的自執行(立即執行)函式(function(){…})()JavaScript函式Function
- flask 裝飾器 AssertionError: View function mapping is overwriting an existing endpoint functionFlaskErrorViewFunctionAPP
- Jboss-mysql.rar執行環境包安裝的問題MAPPING configuration errorMySqlAPPError
- JavaScript自執行函式(function(){})()的理解JavaScript函式Function
- IDE 執行指令碼後報一長串 “CreateFile () Error: 2”IDE指令碼Error
- win10執行戰地3彈出directx function報錯的解決方法Win10Function
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- mysql執行sql指令碼報錯ERROR 1366 (HY000) 解決MySql指令碼Error
- DBMS_UTILITY.FORMAT_ERROR_BACKTRACE FunctionORMErrorFunction
- error: ‘PATH_MAX’ undeclared (first use in this function)ErrorFunction
- error: use of deleted function ‘YYSTYPE::YYSTYPE()’[解決]ErrordeleteFunction
- php執行出現Call to undefined function curl_init()PHPUndefinedFunction
- 異常 This application has no explicit mapping for /error so yAPPError
- serverless Error: getaddrinfo ENOTFOUND Function.doRequestServerErrorFunction
- 【Azure Function App】Python Function呼叫Powershell指令碼在Azure上執行失敗的案例FunctionAPPPython指令碼
- Flutter在iOS裝置執行報錯fatal error: 'Flutter/Flutter.h' file not foundFlutteriOSError
- ORA-15186: ASMLIB error function = [asm_open], error = [1]ASMErrorFunction
- 執行map()後,報:
- 【ERROR】JOB執行DDL語句報錯ORA-06550 & PLS-00103Error
- 初始配置:IntelliJ Android無法執行專案並報錯Error: Module not specifiedIntelliJAndroidError
- JavaScript: window.onload = function() {} 裡面的函式不執行JavaScriptFunction函式
- function.procedure函式下的過程執行問題Function函式
- IIFE (Imdiately Invoked Function Expression 立即執行的函式表示式)FunctionExpress函式
- "Fatal error: Call to undefined function: file_put_contents()"ErrorUndefinedFunction
- [HP-UX] ERROR: Function activate_volume_groupUXErrorFunction
- $(function{})裡面的onclick報錯Function
- C# Global Application_Error不執行C#APPError
- 執行用例報錯
- 執行gedit報No protocol specifiedProtocol
- ./mongod命令執行報錯Go
- linuxmysql執行報錯LinuxMySql
- 執行srvctl命令報錯
- 【MySQL】ERROR 1418 This function has none of DETERMINISTIC, NO SQL, ...MySqlErrorFunctionNone
- 一起做RGB-D-SLAM(6)g2o報錯error: no matching functionSLAMErrorFunction
- Camunda 流程執行錯誤處理ERROR BOUNDARY EVENTError