19C database expdp impdp error:ORA-39155 ORA-48128

19C database expdp impdp error:ORA-39155 ORA-48128

1 imdp报错

导出文件是从hp unx for oracle10g的导出文件,再往19c rac for linux导入时候报错

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
;;; 
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Master table "SYS"."IMPDP_EXTOA" successfully loaded/unloaded
Starting "SYS"."IMPDP_EXTOA":  "/******** AS SYSDBA" SCHEMAS=SYNERGY,IDS directory=IMPDP DUMPFILE=SYNERGY_%U.dp logfile=impdp_extoa.log job_name=impdp_extoa PARALLE
L=2 
Processing object type SCHEMA_EXPORT/USER
ORA-39384: Warning: User IDS has been locked and the password expired.
ORA-39384: Warning: User SYNERGY has been locked and the password expired.
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
Processing object type SCHEMA_EXPORT/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'REIM' does not exist

Failing sql is:
GRANT SELECT ON "SYNERGY"."S_MESSAGE_LOG_ID" TO "REIM"
 
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "SYNERGY"."HS_TAKEOUT"                      197.3 MB 1935088 rows
. . imported "SYNERGY"."BAO_EVIDENCE"                    79.69 MB  546345 rows
. . imported "SYNERGY"."UG_ANDROID_LOG"                  55.06 MB  542336 rows
. . imported "SYNERGY"."UG_EMPLOYMENT_OLD"               58.09 MB  681366 rows
. . imported "SYNERGY"."HS_RECEIVELINE"                  53.22 MB 1114492 rows
ORA-31693: Table data object "SYNERGY"."HS_TAKEOUTLINE" failed to load/unload and is being skipped due to error:
ORA-39155: error expanding dump file name "/ogg/impdp/SYNERGY_01.dp"
ORA-48128: opening of a symbolic link is disallowed
ORA-19505: failed to identify file "/ogg/impdp/SYNERGY_01.dp"
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
. . imported "SYNERGY"."BTS_TRANSFUSIONAPPLY"            46.11 MB  278675 rows
. . imported "SYNERGY"."BAO_PERSONAL_MUTUAL_IN"          36.19 MB  438264 rows
. . imported "SYNERGY"."BTS_MEDICALRECORD"               33.68 MB  221824 rows
. . imported "SYNERGY"."HS_RECEIVE"                      31.51 MB  316848 rows
. . imported "SYNERGY"."HS_STORE_LOG"                    30.57 MB  643538 rows
. . imported "IDS"."UG_BLOODBAG_BAK"                     27.79 MB  329189 rows
. . imported "SYNERGY"."HS_STOCK_LOG"                    26.73 MB 1108032 rows
. . imported "SYNERGY"."BAO_EVIDENCE_BLOOD"              25.21 MB  767424 rows
ORA-31693: Table data object "SYNERGY"."HS_HANDOVERDETAIL" failed to load/unload and is being skipped due to error:
ORA-39155: error expanding dump file name "/ogg/impdp/SYNERGY_01.dp"
ORA-48128: opening of a symbolic link is disallowed
ORA-19505: failed to identify file "/ogg/impdp/SYNERGY_01.dp"
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
. . imported "SYNERGY"."HS_TAKEOUTREVERT_LINE"        

2 分析

看报错信息好像目录引用了软连接导致的,但是这边创建的是实体的目录。

看来查查mos了。再mos上找到文章,说明是一个bug

CAUSE

Error can happen at symbolic link internal check stage.

Unpublished BUG 27598040 has been created and at time of creating this document, development is working on this issue.

SOLUTION:

The following workaround has been verified by development for this issue:

ALTER SYSTEM SET “_disable_directory_link_check” =true SCOPE=SPFILE;

Restart the database.

3 再次尝试导入还是识别的报错

抽风似的有时候说找不到文件,但是现在的这个文件不在说软连接的问题了。想了想是不是因为我没有加上cluster=n呢

. . imported "SYNERGY"."HS_TAKEOUTREVERT_LINE"           23.69 MB  497051 rows
. . imported "SYNERGY"."BAO_PERSONAL_MUTUAL_OUT"         24.33 MB  237152 rows
ORA-31693: Table data object "SYNERGY"."HS_TAKEOUT" failed to load/unload and is being skipped due to error:
ORA-31640: unable to open dump file "/ogg/impdp/SYNERGY_01.dp" for read
ORA-19505: failed to identify file "/ogg/impdp/SYNERGY_01.dp"
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
. . imported "SYNERGY"."HS_TAKEOUTREVERT"                14.22 MB  240465 rows
. . imported "SYNERGY"."BAO_PER_MUTUAL_OUT_DETAIL"       10.15 MB  247589 rows
. . imported "SYNERGY"."HS_STORE"                        4.332 MB  120853 rows

4 cluster=n搞上去

终于正常了,继续做OGG同步把

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Oracle 19c的数据泵备份数据库时,可能会遇到ORA-31693和ORA-39155错误。ORA-31693错误表示在加载或卸载表数据对象时出现错误,导致跳过该表。而ORA-39155错误则表示在扩展转储文件名时出现错误。这些错误可能是由于文件路径或权限问题导致的。 解决这些错误的方法有多种。根据引用的描述,ORA-31693错误可能是由于无法打开符号链接导致的。这种情况下,可以尝试检查文件路径和权限,并确保文件存在于指定的位置。此外,还可以尝试使用参数"table_exists_action=REPLACE"来替代已存在的表。 引用提到,在导入具有触发器的表时出现ORA-31693和ORA-04098错误。尝试过截断表、禁用和删除触发器,但仍然无法导入数据。最后,使用参数"table_exists_action=REPLACE"成功导入数据。 引用中也提到了类似的错误。ORA-31693错误可能是由于无法打开导出文件导致的。需要检查文件路径和权限,并确保文件存在于指定位置。 总结来说,解决ORA-31693和ORA-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 ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值