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

 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值