一套Oracle 11.2.0.4 的库,因为异常断电和硬盘故障,导致实例无法正常启动,有几个文件损坏,SYSAUX,因为是辅助表空间,所以直接跳过了这个文件把库拉了起来,结果导出数据报如下错误:
C:/Users/Dave>expdp directory=backup dumpfile=KM3KS_%U.dmp logfile=dave.log schemas=KM3KS PARALLEL=4
Export: Release 11.2.0.4.0 - Production on 星期一 7月 18 22:24:51 2022
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
用户名: / as sysdba
连接到: 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: 作业不存在
ORA-31638: 无法连接作业 SYS_EXPORT_SCHEMA_01 (用户 SYS)
ORA-06512: 在 "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: 在 "SYS.KUPV$FT_INT", line 428
ORA-39077: 无法将代理 KUPC$A_1_222459279000000 订阅到队列 "KUPC$C_1_20220718222456"
ORA-06512: 在 "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: 在 "SYS.KUPC$QUE_INT", line 254
ORA-25448: 规则 SYS.KUPC$C_1_20220718222456$3 出错
ORA-00376: 此时无法读取文件 2
ORA-01111: 数据文件 2 名称未知 - 请重命名以更正文件
ORA-01110: 数据文件 2: 'D:/APP/11G/PRODUCT/11.2.0/DBHOME_1/DATABASE/MISSING00002'
这个情况以前遇到过一次,说明方法如下:
因为是特殊恢复拉起来的,源库非归档,也没有备份,所以无法online SYSAUX。
MOS 搜了一下,expdp 和 exp 都依赖SYSAUX 表空间。
DataPump Export (EXPDP) Fails With Errors ORA-31693 ORA-922 Or ORA-31626 ORA-31638 ORA-25448 ORA-376 ORA-1110 When A Tablespace Is Offline (Doc ID 1360966.1)
Fixing a Corrupted SYSAUX Tablespace (Doc ID 950128.1)
How To Recreate A Database Using TTS (Transportable TableSpace) (Doc ID 733824.1)
Note: If all datafiles belonging to the SYSAUX are inaccessible then you can only perform export at the tablespace or table level. Full and schema level export may not work. You will need to use traditional exp rather than expdp as expdp relies on objects in the SYSAUX tablespace.
因为库不大,就懒的重建SYSAUX 表空间,使用传统的exp 按表空间的方式慢慢来导了。
版权声明:本文为博主原创文章,未经博主允许不得转载。