expdp导出报错ORA-31693&ORA-39826

报表库逻辑备有一个错误:
ORA-31693: Table data object "BI_ETL"."xxx" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-39826: Direct path load of view or synonym (BI_ETL.xxx) could not be resolved.
 
百度了一下,是因为这个对象在导出过程中被删掉了导致的bug,
去报表库验证了一下对象xxx确实不存在

然后在本地环境测试了一下,没有能重现错误ORA-39826: Direct path load of view or synonym (BI_ETL.WY_CAR_ZJ_UW) could not be resolved.
下面是试验过程:
1、创建张测试表
SQL> create table scott.change_tbs as select * from dba_objects;

Table created.

2、编写导出脚本
[oracle@localhost exp_dir]$ vi expdp_test.par
userid='/ as sysdba'
DIRECTORY=dump_dir
DUMPFILE=EXPDP_test.dmp              
CONTENT=all
LOGFILE=expdp_20141126.log    
TABLES=scott.change_tbs

3、执行导出脚本,开始后删除测试表
[oracle@localhost exp_dir]$ expdp parfile=expdp_test.par

Export: Release 11.2.0.1.0 - Production on Wed Nov 26 14:48:58 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_TABLE_01":  /******** AS SYSDBA parfile=expdp_test.par 
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 9 MB  /*这里drop table scott.change_tbs;

ORA-31693: Table data object "SCOTT"."CHANGE_TBS" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-00942: table or view does not exist
Master table "SYS"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_TABLE_01 is:
  /home/software/exp_dir/EXPDP_test.dmp
Job "SYS"."SYS_EXPORT_TABLE_01" completed with 1 error(s) at 14:49:06


参考:
http://blog.mchz.com.cn/?p=10401
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Oracle 19c的数据泵备份数据库时,可能会遇到ORA-31693ORA-39155错误。ORA-31693错误表示在加载或卸载表数据对象时出现错误,导致跳过该表。而ORA-39155错误则表示在扩展转储文件名时出现错误。这些错误可能是由于文件路径或权限问题导致的。 解决这些错误的方法有多种。根据引用的描述,ORA-31693错误可能是由于无法打开符号链接导致的。这种情况下,可以尝试检查文件路径和权限,并确保文件存在于指定的位置。此外,还可以尝试使用参数"table_exists_action=REPLACE"来替代已存在的表。 引用提到,在导入具有触发器的表时出现ORA-31693ORA-04098错误。尝试过截断表、禁用和删除触发器,但仍然无法导入数据。最后,使用参数"table_exists_action=REPLACE"成功导入数据。 引用中也提到了类似的错误。ORA-31693错误可能是由于无法打开导出文件导致的。需要检查文件路径和权限,并确保文件存在于指定位置。 总结来说,解决ORA-31693ORA-39155错误的方法包括检查文件路径和权限,确保文件存在于指定的位置,并使用适当的参数来处理已存在的表。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [oracle 19c 数据泵备份错误 ORA-31693 ORA-39155 ORA-48128 ORA-19505 ORA-27037](https://blog.csdn.net/huryer/article/details/113757696)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [ORACLE 数据泵impdp导入报错ORA-31693 ORA-04098](https://blog.csdn.net/www_xue_xi/article/details/125238269)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [19C database expdp impdp error:ORA-39155 ORA-48128](https://blog.csdn.net/murkey/article/details/106242319)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值