`
womendu
  • 浏览: 1482259 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

ORA-12154: TNS:could not resolve the connect identifier specified错误解决方案一

 
阅读更多

产品开始支持Oracle11数据库,但是导入导出一直有问题,错误信息是:ORA-12154: TNS:could not resolve the connect identifier specified (

检查监听和配置文件没有错误,经过一番思考和搜索,问题是因为在本地装了两个数据库的实例。按照网上的介绍,卸载后再重装就可以了,但是我想用更简单的方法解决,重装太浪费时间了。最后检查了环境变量,发现环境变量中存在两个路径

Path=C:/databaseDriver/oracleDriver;C:/Windows/system32;C:/Windows;C:/Windows/system32/wbem;C:/Windows/system32/windowspowershell/v1.0/;c:/program files (x86)/ib
m/gsk8/lib;C:/automationFVT/svn-win32-1.5.5/bin;C:/RTC-Client-2.0.0.2-Win/jazz/scmtools/eclipse;C:/Program Files (x86)/Rational/common;C:/Program Files (x86)/IBM/Java50/bin;C:/databaseDriver/instantclient

将C:/databaseDriver/oracleDriver;的路径删除后,问题解决

修改后的代码为

Path=C:/Windows/system32;C:/Windows;C:/Windows/system32/wbem;C:/Windows/system32/windowspowershell/v1.0/;c:/program files (x86)/ib
m/gsk8/lib;C:/automationFVT/svn-win32-1.5.5/bin;C:/RTC-Client-2.0.0.2-Win/jazz/scmtools/eclipse;C:/Program Files (x86)/Rational/common;C:/Program Files (x86)/IBM/Java50/bin;C:/databaseDriver/instantclient

记录该过程,以后防止类似错误

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics