我正在尝试在我的ASP.net项目上使用Oracle ODP.NET 11g(11.1.0.6.20)Instant Client作为数据提供程序,但是当我运行aspx页面时,我得到一个" 提供程序与版本不兼容"Oracle客户端 "错误消息.任何帮助,将不胜感激.
我在Visual Studio 2005中引用了数据提供程序,后面的代码如下所示:
using Oracle.DataAccess.Client;
..
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString =
"Data Source=MyOracleServerName;" +
"Integrated Security=SSPI";
oOracleConn.Open();
//Do Something
oOracleConn.Close();
Run Code Online (Sandbox Code Playgroud)
页面的错误如下所示:
Exception Details: Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
Source Error:
Line 21:
Line 22:
Line 23: OracleConnection oOracleConn = new OracleConnection();
Line 24: oOracleConn.ConnectionString =
Line 25: "Data Source=MyOracleServerName;" +
[OracleException (0x80004005): The provider is not compatible with the version of …Run Code Online (Sandbox Code Playgroud) 我刚刚从MS sql server切换到Oracle.我使用的查询工具是Oracle SQL Developer.我遇到的问题是我不能让查询结果窗口坚持下去.查询结果窗口是结果的网格视图.当我打开一个新的"sql工作表"时,它似乎随意出现.但不总是.然后,一旦我运行查询,它会在下次运行时消失.
有人能指出我一致的方法让这个结果网格活跃吗?非常感谢.
操作系统:Windows 2008 Server R2
Oracle客户端:11.2
非常感谢
我遇到了JDBC问题.
我有以下代码:
//blargeparam is a blob column.
PreparedStatement pst =connection.prepareStatement("update gcp_processparams_log set blargeparam= ? where idprocessparamslog=1");
pst.setBinaryStream(1,inputStream);
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Exception in thread "main" java.lang.AbstractMethodError:
oracle.jdbc.driver.T2CPreparedStatement.setBinaryStream(ILjava/io/InputStream;)V
Run Code Online (Sandbox Code Playgroud)
我的连接字符串是 jdbc:oracle:oci:@.....
Oracle版本为11g.
从错误消息似乎缺少某些东西但是:
这是我的类路径中Oracle JDBC JAR的清单:
Manifest-Version: 1.0
Specification-Title: Oracle JDBC driver classes for use with JDK14
Sealed: true
Created-By: 1.4.2_14 (Sun Microsystems Inc.)
Implementation-Title: ojdbc14.jar
Specification-Vendor: Oracle Corporation
Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
Implementation-Vendor: Oracle Corporation
Implementation-Time: Sat Feb 2 11:40:29 2008
Run Code Online (Sandbox Code Playgroud)我必须从.NET代码连接Oracle 11g DB.为此,我在阅读了一些论坛帖子后安装了ODP.NET bur,我认识到我也需要安装Oracle客户端.
真的吗?我看到Oracle客户端的大小为ca. 2GB!我真的需要安装这么大的客户端才能连接Oracle DB吗?
我正在尝试安装Oracle 11g第2版(客户端).但它给出了一个错误:
Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
Expected Value: 1023
Actual Value : 1028
List of errors: - PRVF-3929 : Adding the Oracle binary location to the PATH
environment variable will exceed the OS length limit of [ "1023" ] for the
variable on the node "KamalNuriyev-PC" -
Cause: The installer needs to update the PATH environment variable to
include the value "%ORACLE_HOME%/bin;". However, …Run Code Online (Sandbox Code Playgroud) 我试图从Linux服务器访问oracle.我正在使用unixODBC.
当我尝试使用isql访问oracle时,我得到错误,驱动程序管理器无法打开libsqora.so.12.1.
ODBC.INI
[NAME]
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
Driver = Oracle 11g ODBC driver
DSN = DSN_NAME
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MaxLargeData = 0
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
ServerName = ServerName
SQLGetData extensions = F …Run Code Online (Sandbox Code Playgroud) 我们的开发团队成员之一遇到了错误
尝试加载oracle客户端库会引发BadImageFormatException
它似乎
在安装了32位Oracle客户端组件的64位模式下运行时,将发生此问题.
但是我配置了系统 - 这是规格:
有什么想法吗?
oracleclient visual-studio-2010 oracle11g windows-7 windows-7-x64
我开发了一个使用Oracle Data Provider for .NET的应用程序.我将应用程序文件(.exe)和ODP库(Oracle.DataAccess.dll)复制到未安装Oracle客户端和ODP.NET的另一台计算机上.当我运行应用程序时,我收到错误消息:"Oracle.DataAccess.Client.OracleConnection"的类型初始化程序引发了异常.
*****************Exception Text***************
System.TypeInitializationException: The type initlializer for 'Oracle.DataAccess.Client.OracleConnection at Oracle.DataAccess.Client.OracleConnection..cctor()
--- End of inner exception stack trace ---
at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
...
Run Code Online (Sandbox Code Playgroud)
我是否必须在要运行应用程序的计算机上安装ODP.NET和Oracle客户端?如果是的话,还有其他方法我不必安装它们但仍然可以运行我的应用程序吗?
谢谢
我使用.NET框架与System.Data.OracleClient命名空间.我的计算机上安装了oracle 11客户端.我不想使用tnsnames.ora文件来存储连接信息.
有人可以告诉我,如果我不想使用tnsnames.ora文件,连接字符串会是什么样子?我将连接字符串存储在Web应用程序项目的web.config文件中.