English 中文(简体)
使用OracleClient的Oracle 11g服务器联网2.0
原标题:Connect to a remote Oracle 11g server using OracleClient of .NET 2.0

我必须使用“NET”/C#(Winform)应用程序与网络的一名Oracle服务器连接。 我正在尝试使用<代码>System.Data.OracleClient但徒劳。

这里,我想到的细节(可能有助于阅读这一问题的人):

平台:视觉演播室2005年/NET 2.0 和视窗家庭保费C#

图书馆:System.Data.OracleClient

服务器:Oracle 11g(在同一局域网上的位置)

请注意,我没有当地安装甲骨文,我 every住了每一个可能提供帮助的讨论论坛,但大多数都假定当地安装甲骨文!

在这方面,我的联系是:

User Id=TSUSER;Password=ts12TS;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyServerIP> (PORT=1521) (CONNECT_DATA=(SERVICE_NAME=ORCL);

我犯了这一错误:

OCIEnvCreate failed with return code -1 but error message text was not available.

www.un.org/Depts/DGACM/index_spanish.htm 标记:

at System.Data.OracleClient.OciHandle..ctor(OciHandle parentHandle, HTYPE handleType, MODE ocimode, HANDLEFLAG handleflags) at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName) at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions) at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.OracleClient.OracleConnection.Open() at DGKit.Util.DataUtil.Generate() in D:SVNRootsandboxDGDevUtilDataUtil.cs:line 68

最佳回答

自两年以来,协会一直在工作。 NET 4.0 申请与Oracle连接,我仍然不得不说,我对它怀有仇恨:

Oracle .NET的驱动力只是一种fully。 紧接着几个不同的版本(x86、x84、β、稳定等) 最后,我找到了一个行之有效的解决办法。

我也经历过甲骨质供应者,即船(停靠)和网本身对我来说是不能用的,因此只有这样。 该网络的司机/图书馆直接来自Oracle站点。

此外,当Kings(Java应用程序)成功运行时,这根本不是指标。 互联网也阻碍了工作。 它们似乎完全无关。

问题回答

是否安装了Oracle客户软件? 您能否在用户机器上使用Kal+或利用服务器探测器连接?





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签