Oracle Database 11g Express:数据泵导出

时间:2017-09-22 11:47:06

标签: oracle oracle11g

我想调用expdp(Data Pump Export)命令,但是我收到了一个错误:

C:\oraclexe\app\oracle\admin\XE\dpdump>expdp test/test@DEVICES CONTENT=METADATA_ONLY FILE=FLEET.DMP

Export: Release 11.2.0.2.0 - Production on Vie Sep 22 12:46:30 2017

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

UDE-12154: operation generated ORACLE error 12154
ORA-12154: TNS:could not resolve the connect identifier specified

这里是文件tsnames.ora:

 DEVICES =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 212.137.78.211)(PORT = 1521))
    (CONNECT_DATA =
      (SID = DEVICES)
    )
  )

C:\oraclexe\app\oracle\admin\XE\dpdump>tnsping DEVICES

TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 22-SEP-2017 16:00:17

Copyright (c) 1997, 2014, Oracle.  All rights reserved.

Used parameter files:
C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora

TNS-03505: Failed to resolve name

2 个答案:

答案 0 :(得分:0)

首先尝试@kfinity建议的内容,这是一个很好的建议。如果这不能增加清晰度,请尝试:

  

sqlplus test / test @ device

在您的情况下可能无法连接。我在Windows上,如果你在UNIX上,你需要做类似的事情:

set ORACLE_SID=DEVICE
sqlplus test/test

如果连接,请重试IMPD命令。如果没有,请查看%oracle_home%\ network \ admin \ sqlnet.ora中的SQLNET配置文件。

如果它有类似

的条目
  

NAMES.DEFAULT_DOMAIN = WORLD

您需要将 .WORLD 添加到您的命令中,如

  

expdp test/test@DEVICES.WORLD CONTENT = METADATA_ONLY FILE = FLEET.DMP

答案 1 :(得分:0)

http://docs.oracle.com/cd/E11882_01/network.112/e41945/admintools.htm#NETAG272请看这篇文章,thear写corectly,但我认为你写错了数据库名称