expdp 報錯 ORA-04063: package body "SYS.DBMS_METADATA_UTIL" has errors
使用expdp匯出資料時,報錯如下:
Export: Release 11.2.0.4.0 - Production on Fri Jun 1 18:18:57 2018 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-31626: job does not exist ORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user CEM ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.KUPV$FT", line 1587 ORA-39062: error creating master process DM00 ORA-31613: Master process DM00 failed during startup.
原因是:
經過查詢發現,資料庫的兩個元件invalid和一些物件失效,具體如下
Some objects invalid cause export failure, customer need to validate these components and SYS objects. The following are collecting informations : SQL> select comp_name, status, version 2 from dba_registry; COMP_NAME STATUS VERSION ---------------------------------------- -------------------- ------------------------------------------------------------ Oracle Text VALID 11.2.0.2.0 Oracle Workspace Manager VALID 11.2.0.2.0 Oracle Database Catalog Views INVALID 11.2.0.2.0 <<<<<<<<<<<<<<<<<<<<<<<<<< Oracle Database Packages and Types INVALID 11.2.0.2.0 <<<<<<<<<<<<<<<<<<<<<<<<<< Oracle Real Application Clusters VALID 11.2.0.2.0 SQL> select owner, object_name, object_type, status 2 from dba_objects 3 where status <> 'VALID'; OWNER OBJECT_NAME OBJECT_TYPE STATUS ------------------ -------------------------------------------------- -------------------- -------------------- SYS DBMS_METADATA PACKAGE BODY INVALID <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< SYS DBMS_METADATA_INT PACKAGE BODY INVALID <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< SYS DBMS_METADATA_UTIL PACKAGE BODY INVALID <<<<<<<<<<<<<<
解決方案:
please perform the following scripts during system idle time to recompile invalid objects.
Note: before running the script, take full backup and validate the backups.
SQL> connect / sysdba
SQL> spool catalog.log
SQL> @?/rdbms/admin/catalog
SQL> spool off
SQL> spool catproc.log
SQL> @?/rdbms/admin/catproc
SQL> spool off
SQL> spool utlrp.log
SQL> @?/rdbms/admin/utlrp
SQL> spool off
When you finished, perform the following SQL to check for invalid objects.
SQL> select owner,object_name,object_type,status from dba_objects where status = 'INVALID';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12798004/viewspace-2155963/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-04063: package body SYS.DBMS_REGISTRY_SYS has errors (Doc ID 2165402.1)PackageError
- 解決E: Package ‘libmysqlclient-dev‘ has no installation candidate報錯PackageIBMMySqlclientdev
- “setting.xml” has syntax errorsXMLError
- expdp報錯ORA-39181
- 'This NSPersistentStoreCoordinator has no persistent stores 報錯
- java bug2:settings.xml has syntax errorsJavaXMLError
- expdp匯出報錯ORA-39127
- kafka報錯解決 kafka.errors.NoBrokersAvailable: NoBrokersAvailableKafkaErrorAI
- Vue 啟動專案報錯 Failed to compile with 2 errorsVueAICompileError
- idea裡程式碼報黃色:XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works inIdeaXML
- 專案使用guzzleHttp報錯:certificate has expiredHTTP
- Input報錯“Form elements must have labels: Element has no title attribute Element has no placeholde”ORM
- WP網站地圖XML報錯This page contains the following errors:網站地圖XMLAIError
- electron專案npm i 報錯certificate has expiredNPM
- 解決Ubuntu報錯 E: Unable to locate package yumUbuntuPackage
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works in XML / JSPXMLJS
- Method has too many Body parameters: public abstract com.cloud.module.smartkeCloud
- homestead vagrant up 報錯 Your VM has become "inaccessible."
- 修復 Ubuntu 中 “E: The package cache file is corrupted, it has the wrong hash”UbuntuPackage
- eclipse新建maven專案:'Building' has encountered a problem. Errors occurred during the build.EclipseMavenUIError
- tar解壓報錯——Not found in archive tar: Exiting with failure status due to previous errorsHiveAIError
- 【故障處理】ORA-31600和ORA-04063錯誤
- EXPDP 時報錯ORA-31693,ORA-02354,ORA-01555
- springcloudconfig訪問gitee報錯:Authentication is required but no CredentialsProvider has been registeredSpringGCCloudGiteeUIIDE
- Rasa init報錯:AttributeError: type object 'Callable' has no attribute '_abc_registry'ErrorObject
- [譯] Go 1.13 errors 包錯誤處理GoError
- EXPDP匯出報ORA-31693 ORA-29913 ORA-01861錯誤
- python去掉excel空格和換行,報錯'int' object has no attribute 'strip'PythonExcelObject
- svn“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“報錯的解決方法
- 如何處理Eclipse錯誤訊息 The declared package does not match the expected packageEclipsePackage
- MySQL Insert資料量過大導致報錯 MySQL server has gone awayMySqlServerGo
- npm報錯:request to https://registry.npm.taobao.org failed, reason certificate has expiredNPMHTTPAI
- 理解ASP.NET Core - 錯誤處理(Handle Errors)ASP.NETError
- Go 錯誤堆疊資訊之 CockroachDB errors 庫GoError
- settings.xml has syntax errors less...Parent org.springframework.boot:spring-boot-starter-已解決XMLErrorSpringFrameworkboot
- 轉載:yarn安裝依賴時報錯certificate has expired at TLSSocket.onConnectSecureYarnTLS
- 【已解決】報錯 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driverAI