无法解析指定的连接标识符 oracle错误12154

导出的时候老是报这个错,exp userid=c##yh/yh@MyOracle tables=(stu3) file=d:e.dmp;

解决了好久,最后都失败了,后来加了127.0.0.1:1521解决了

exp userid=c##yh/yh@127.0.0.1:1521/MyOracle tables=(stu3) file=d:e.dmp;

同时注意:如果本地plsql已经配置好的话,可以直接在cmd中,输入:exp userid=c##yh/yh@127.0.0.1:1521/MyOracle tables=(stu3) file=d:e.dmp;即可导出

还有:exp apollo_ems/dcjet@szyb file=F:apollo.dmp owner=apollo_ems
imp xmlc_ems/dcjet@szyb file=f:apolloems.dmp fromuser=apollo_ems touser=xmlc_ems
imp cus_xmlc_ems/dcjet@szyb file=f:apolloems.dmp fromuser=apollo_ems touser=cus_xmlc_ems

以下两条将其它用户的方案导入到某个用户,导入成功的
imp userid=system/yanhong@YANHONG file=d:OMS_USER.dmp fromuser=OMS_USER touser=yanhong
imp userid=system/yanhong@YANHONG file=d:dcjetframework.dmp fromuser=dcjetframework touser=yanhong

原文地址:https://www.cnblogs.com/ChineseMoonGod/p/4985912.html