问题描述
嗨,
我们目前通过DBLINK导出错误。这个脚本工作2014年,不会出错。昨天它给我们带来了以下错误:
expdp系统/xxx parallel = 8个模式 = yyy排除 = 表: \ "IN \(\ 'plan_table \' \)\" dumpfile = 转储 _ % U目录 = expdump网络 _ 链接 = 测试日志文件 = 导出。日志
ORA-39001: 参数值无效
ORA-39200: 链接名称 “TEST” 无效。
ORA-02063: 测试前2行
所以我们手动进行dblink,我们也有同样的错误。
我们手动测试另一个dblink的创建:
SQL> 创建公共数据库链接测试连接到由xxx使用 '(描述 = (地址列表 = (地址 = (协议 = TCP)(主机 = ORACLEADM-IP)(端口 = 1521) (连接数据 = (服务名称 = *****)';
dblink是创建的,但是当我们用一个简单的SQL测试它时,我们有同样的错误。
ORA-39001、ORA-39200和ORA-02063。
你能帮我吗?
非常感谢。
我们目前通过DBLINK导出错误。这个脚本工作2014年,不会出错。昨天它给我们带来了以下错误:
expdp系统/xxx parallel = 8个模式 = yyy排除 = 表: \ "IN \(\ 'plan_table \' \)\" dumpfile = 转储 _ % U目录 = expdump网络 _ 链接 = 测试日志文件 = 导出。日志
ORA-39001: 参数值无效
ORA-39200: 链接名称 “TEST” 无效。
ORA-02063: 测试前2行
所以我们手动进行dblink,我们也有同样的错误。
我们手动测试另一个dblink的创建:
SQL> 创建公共数据库链接测试连接到由xxx使用 '(描述 = (地址列表 = (地址 = (协议 = TCP)(主机 = ORACLEADM-IP)(端口 = 1521) (连接数据 = (服务名称 = *****)';
dblink是创建的,但是当我们用一个简单的SQL测试它时,我们有同样的错误。
ORA-39001、ORA-39200和ORA-02063。
你能帮我吗?
非常感谢。
专家解答
从Mos 2045806.1
ORA-39001, ORA-39200, ORA-02019 OR ORA-12154 While Using DataPump Import (IMPDP) With NETWORK_LINK (Doc ID 2045806.1) To BottomTo Bottom In this Document Symptoms Cause Solution References APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.3 and later Information in this document applies to any platform. SYMPTOMS Running a DataPump Import through NETWORK_LINK the following errors are reported: ORA-39001: invalid argument value ORA-39200: Link name "MYTEST" is invalid. ORA-02019: connection description for remote database not found CAUSE It seems like the issue is related to service name interpretation, when NETWORK_LINK parameter is involved. The underlying error was ORA-02019/ ORA-12154. Below are some key points notes during our investigation: • Customer was able to create the database link with service name and query through that database link. • Service name entry exists in TNSNAMES.ORA • Initially the issue points at Doc ID 1620131.1 (DataPump Import Fails With Errors ORA-39001, ORA-2019) and added JOB_NAME parameter there. But after adding JOB_NAME parameter, the underlying network related error changed from ORA-02019 to ORA-12154 SOLUTION We need to check the last error which is the underlying error, causing the database link error during the DataPump import execution. And use the following options to fix the issue: 1. Check whether the TNSNAMES.ORA is accessible and contains the service as addressed by the database link 2. Check whether the database link can be accessed via SQLPLUS 3. Check whether the issue is fixed after replacing whole service name description instead of service name, while creating dblink and import 4. If you are using local naming (TNSNAMES.ORA file), then: • Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile(SQLNET.ORA) • Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible • Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file • Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable 5. Is the dblink referenced in TNS_ADMIN environment variable? In some cases LISTENER, TNSNAMES might be running from different home and TNS_ADMIN to locate TNSNAMES.ORA. In such cases, impdp utility can be invoked by creating a symbolic link in DB_HOME/network/admin to TNSNAMES.ORA under the LISTENER home. 6. Add the parameter NAMES.DEFAULT_DOMAIN = world anywhere in the SQLNET.ORA file and test the import REFERENCES NOTE:1620131.1 - DataPump Import Fails With Errors ORA-39001, ORA-2019 NOTE:812039.1 - ORA-39001, ORA-39071, ORA-06553 When Running IMPDP Using NETWORK_LINK NOTE:1160207.1 - Error ORA-39001 When Using DBMS_DATAPUMP API Over A Network Link复制
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
Oracle RAC 一键安装翻车?手把手教你如何排错!
Lucifer三思而后行
597次阅读
2025-04-15 17:24:06
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
569次阅读
2025-04-18 14:18:38
XTTS跨版本迁移升级方案(11g to 19c RAC for Linux)
zwtian
487次阅读
2025-04-08 09:12:48
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
474次阅读
2025-04-20 10:07:02
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
458次阅读
2025-04-22 00:20:37
Oracle 19c RAC更换IP实战,运维必看!
szrsu
434次阅读
2025-04-08 23:57:08
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
433次阅读
2025-04-22 00:13:51
【活动】分享你的压箱底干货文档,三篇解锁进阶奖励!
墨天轮编辑部
419次阅读
2025-04-17 17:02:24
火焰图--分析复杂SQL执行计划的利器
听见风的声音
362次阅读
2025-04-17 09:30:30
3月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
358次阅读
2025-04-15 14:48:05