EXP-00056:遇到oracle错误12154

执行命令如下:

引用
exp user/pwd@dbname file=d:text.dmp owner=(user)

碰到了错误:

引用
EXP-00056:遇到oracle错误12154 
ORA-12154:TNS无法处理服务器名 
EXP-00000:导出终止失败

一开始以为是服务名称错误,看了一下tnanames.ora配置,命令没有错误。 
仔细看了下配置,发现其中配置了其它服务器的IP,试着删除了,结果命令导出正确了。

TEST EXP-00056:遇到oracle错误12154=
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST =127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)
    )
  )
导出命令:exp 账号/口令@orcl file=文件名.bmp full=y;
千万注意@后面的是SERVICE_NAME (这里是orcl)

上一篇:主库报 Error 12154 received logging on to the standby PING[ARC2]


下一篇:Goldengate:ERROR 180 encountered commit SCN that is not greater than the highest SCN already processed