简体   繁体   English

将Oracle数据库与Asp.net连接

[英]Connect Oracle Database with Asp.net

I use visual studio Express 2012 for Web and install ODTwithODAC1210 (oracle client), but the oracle client cannot integrate with visual studio. 我将Visual Studio Express 2012用于Web并安装ODTwithODAC1210(Oracle客户端),但是oracle客户端无法与Visual Studio集成。 When I select Data source as "Oracle Database", there is only one Data provider ".Net Framework Data Provider for OLE DATA DB". 当我选择数据源作为“ Oracle数据库”时,只有一个数据提供程序“用于OLE DATA DB的.Net Framework数据提供程序”。

When I fillout all information, and test connection, I get following error: 当我填写所有信息并测试连接时,出现以下错误:

Error while trying to retrieve text for error ORA-01019

Any one know how to solve this problem. 任何人都知道如何解决这个问题。 I very need a hlep. 我非常需要提防。

I too had this problem. 我也有这个问题。 I think this is mainly related to the procedure while installing oracle on your pc. 我认为这主要与在您的PC上安装oracle时的过程有关。 And oracle sucks up big time connecting with visual studio. 甲骨文花了大量的时间与Visual Studio连接。

I> 我>

1) Download the 'Oracle developer tools for visual studio' link while creating a new server connection. 1)在创建新的服务器连接时,下载“适用于Visual Studio的Oracle开发人员工具”链接。 (U can find this link on the right side where you are getting that ".Net Framework Data Provider for OLE DATA DB" option) 2) Uninstall oracle 3)now install oracle again and those tools u have downloaded. (您可以在右侧获得OLE DATA DB的“ .Net Framework数据提供程序”选项的位置找到此链接。)2)卸载oracle 3)现在再次安装oracle并已下载了那些工具。

II> II>

1) Or U can use Oracle XE plugin (google it, its around 160 MB) and carefully enter your username and passwords. 1)或者,您可以使用Oracle XE插件(大约160 MB的Google XE插件)并仔细输入您的用户名和密码。 2) Now try to link it from VS. 2)现在尝试从VS链接它。

Hope this help somewhat. 希望对您有所帮助。

NOTE:- Still I dont recommend oracle with visual studio because even if you get a success in trying all above. 注意:-我仍然不建议在Visual Studio中使用oracle,因为即使您在上述所有方面都取得了成功,也是如此。 But While writing a 'connection string' for DB in VS. 但是在VS中为数据库编写“连接字符串”时。 Its again will give some kind of errors: such as word 'UNICODE' is not recognized, etc. 它会再次出现某种错误:例如无法识别单词“ UNICODE”等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM