ORA-39006、ORA-39065、ORA-01403、ORA-39097
上午客戶反饋無法進行資料庫到處,請求解決改問題,報錯如下:
[oracle@xxxxx~]$ expdp \'/ as sysdba\' directory=dmpdir dumpfile=xxxx.dmp logfile=xxxxx.log tables=xxx.xxxxquery=\"where LEDGER_ID\=2024\"
Export: Release 11.2.0.4.0 - Production on Fri May 13 09:45:42 2022
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-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-01403: no data found
ORA-39097: Data Pump job encountered unexpected error 100
改問題是dump相關檢視問題,執行一下SQL,重新生成DATAPUMP API相關檢視資訊即可
SQL> @?/rdbms/admin/catmeta.sql
SQL> @?/rdbms/admin/catmet2.sql
SQL> @?/rdbms/admin/utlrp.sql
重新匯出資料正常執行
[oracle@xxxx~]$ expdp \'/ as sysdba\' directory=dmpdir dumpfile=xxxx.dmp logfile=xxxx.log tables=GL.GL_LEDGERS query=\"where LEDGER_ID\=2024\"
Export: Release 11.2.0.4.0 - Production on Fri May 13 09:52:49 2022
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
Starting "SYS"."SYS_EXPORT_TABLE_01": "/******** AS SYSDBA" directory=dmpdir dumpfile=xxxxx.dmp logfile=xxxxx.log tables=xx.xxxx query="where LEDGER_ID=2024"
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 128 KB
......
......
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "GL"."GL_LEDGERS" 42.96 KB 1 rows
Master table "SYS"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_TABLE_01 is:
/u03/app/oracle/dumpfile/xxxxxx.dmp
Job "SYS"."SYS_EXPORT_TABLE_01" successfully completed at Fri May 13 09:53:20 2022 elapsed 0 00:00:30