本文介绍了Oracle Connections和VS2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遇到了一个非常奇怪的问题.

Got a really weird issue.

我正在编写一个小型程序,该程序将连接到oracle数据库并获取一些统计信息.

I am writing a small program that will connect to an oracle DB and pull some stats.

我的问题是我无法使我的程序连接到oracle.我收到"ORA-12545:连接失败,因为目标主机或对象不存在"错误.

My issue is that I can not get my program to connect to oracle. I am getting a "ORA-12545: Connect failed because target host or object does not exist" error.

我的理解是,这是一个连接问题....IE找不到oracle DB.但是我有几个队友下载了代码,并且在他们的机器上运行良好.我可以在计算机上使用PL/SQL连接到oracle DB.我检查了TNS的值,它们与我的队友的值匹配.

My understanding is that this is a connection issue....IE It cant find the oracle DB. But I had several of my teammates download the code and it works fine on their machines. I can connect to the oracle DB using PL/SQL on my machine. I have checked the TNS values and they match what my teammates have.

我已经为这个问题排查了好几个小时...有人有什么主意吗?

I have been troubleshooting this for hours...anyone have any ideas?

谢谢

推荐答案

原来是我.我将代码存储在网络驱动器上,如果是这种情况,Visual Studio将不会运行它.将代码移至本地驱动器,一切正常. – user2115732 18秒前修改

Turns out the issue was me. I had my code stored on a network drive and it Visual Studio will not run it if that is the case. Moved the code to a local drive and all worked fine. – user2115732 18 secs ago edit

这篇关于Oracle Connections和VS2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 12:29