Oracle Connections和VS2012

编程入门 行业动态 更新时间:2024-10-10 04:24:16
本文介绍了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

本文发布于:2023-11-12 14:08:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581712.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Oracle   Connections

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!