Loading

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

posted @ 2022-05-13 10:12  李行行  阅读(501)  评论(0编辑  收藏  举报