odp.net-managed

Oracle.ManagedDataAccess with Oracle 8.1.7 DB

a 夏天 提交于 2019-12-04 05:03:29
问题 Is it at all possible to use Oracle.ManagedDataAccess with Oracle DB v.8.1.7? I've searched for hours, but failed to find a definitive answer anywhere. 回答1: No. ODP.NET Managed Driver only supports databases back to 10.2. As it is a relatively new product, there aren't old versions to fall back on. The problem is the networking protocol changes over time and Oracle promises backward compatibility for two major versions. If you must use ODP.NET and Oracle Database 8.1.7, consider using ODP.NET

ODP.net managed driver throws ORA-12570: Network Session: Unexpected packet read error

青春壹個敷衍的年華 提交于 2019-12-02 21:59:06
In one of our products we retrieve data from the Oracle database using stored procedures using the ODP.net managed driver. Every now and then (roughly every 1000 queries) we get the following exception: (ORA-12570: Network Session: Unexpected packet read error) ---> Oracle.ManagedDataAccess.Client.OracleException: ORA-12570: Network Session: Unexpected packet read error ---> OracleInternal.Network.NetworkException: ORA-12570: Network Session: Unexpected packet read error ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: size at

Oracle.ManagedDataAccess with Oracle 8.1.7 DB

三世轮回 提交于 2019-12-02 04:33:55
Is it at all possible to use Oracle.ManagedDataAccess with Oracle DB v.8.1.7? I've searched for hours, but failed to find a definitive answer anywhere. No. ODP.NET Managed Driver only supports databases back to 10.2. As it is a relatively new product, there aren't old versions to fall back on. The problem is the networking protocol changes over time and Oracle promises backward compatibility for two major versions. If you must use ODP.NET and Oracle Database 8.1.7, consider using ODP.NET Unmanaged driver version 10.2. It is still available here: http://www.oracle.com/technetwork/topics/dotnet

EF + ODP.NET + CLOB = Value Cannot be Null - Parameter name: byteArray?

安稳与你 提交于 2019-11-30 07:11:01
问题 Our project recently updated to the newer Oracle.ManagedDataAccess DLL's (v 4.121.2.0) and this error has been cropping up intermittently. We've fixed it a few times without really knowing what we did to fix it. I'm fairly certain it's caused by CLOB fields being mapped to strings in Entity Framework, and then being selected in LINQ statements that pull entire entities instead of just a limited set of properties. Error: Value cannot be null. Parameter name: byteArray Stack Trace: at System

Parser Error Message: Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown

£可爱£侵袭症+ 提交于 2019-11-29 12:56:46
I am getting this error when I am using ODP.net The error is appearing when I include a connection <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="BannerCS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BannerCS (Web.config)" ParameterPrefix=":" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.BannerCS.ConnectionString" Provider="Oracle.ManagedDataAccess.Client" /> in the .XSD file in the website project I have the following connection in the web.config file <add name="BannerCS"

EF + ODP.NET + CLOB = Value Cannot be Null - Parameter name: byteArray?

二次信任 提交于 2019-11-29 01:58:18
Our project recently updated to the newer Oracle.ManagedDataAccess DLL's (v 4.121.2.0) and this error has been cropping up intermittently. We've fixed it a few times without really knowing what we did to fix it. I'm fairly certain it's caused by CLOB fields being mapped to strings in Entity Framework, and then being selected in LINQ statements that pull entire entities instead of just a limited set of properties. Error: Value cannot be null. Parameter name: byteArray Stack Trace: at System.BitConverter.ToString(Byte[] value, Int32 startIndex, Int32 length) at OracleInternal.TTC.TTCLob

ODP.NET Managed library does resolve alias, but 32-bit library does

谁说胖子不能爱 提交于 2019-11-28 02:24:46
I have 32-bit drivers installed on my box (they were installed and configured by some DBAs) I wrote a simple script to test the drivers which pretty much is as follows using (DataTable table = new DataTable()) { using (OracleConnection connection = new OracleConnection()) { connection.ConnectionString = "Data Source=alias;User id=user;Password=password"; connection.Open(); using (OracleCommand command = connection.CreateCommand()) { command.CommandType = CommandType.Text; command.CommandText = "SELECT * FROM DUAL"; table.Load(command.ExecuteReader()); } } } When I compile this application as

Can the Oracle Managed Driver use async/wait properly?

孤者浪人 提交于 2019-11-27 21:16:44
I was trying to make an Oracle query with the async/wait .NET feature. The result set is pretty large and takes about 5-10 seconds to come back. The Window_Loaded is hanging the UI thread, essentially I wanted to use async/wait to do the query in the background and then update a dataview with the result. So is this an Oracle driver issue or a code error? E.g. is something here being done synchronously instead of asynchronously? I'm using the latest Oracle.ManagedDataAccess I could get from Oracle's web-site. async Task<DataTable> AccessOracleAsync() { DataTable dt; using(OracleConnection conn

Oracle.ManagedDataAccess and ORA-01017: invalid username/password; logon denied

帅比萌擦擦* 提交于 2019-11-27 08:42:56
I have a challenging situation on one of our servers. I have an ASP.NET MVC 3 application that needs to connect to an Oracle 12c database. It does so using the following connection string: User ID=myuserid;Password=mypass;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP ADDRESS>)(PORT = 1521)))(CONNECT_DATA=(SERVICE_NAME=PDB1))); I'm also using Oracle's Oracle.ManagedDataAccess, version 4.121.1.0. Each attempt to connect results in the following error: ORA-01017: invalid username/password; logon denied I can connect successfully on my desktop with the above credentials.

ODP.NET Managed library does resolve alias, but 32-bit library does

馋奶兔 提交于 2019-11-27 04:54:31
问题 I have 32-bit drivers installed on my box (they were installed and configured by some DBAs) I wrote a simple script to test the drivers which pretty much is as follows using (DataTable table = new DataTable()) { using (OracleConnection connection = new OracleConnection()) { connection.ConnectionString = "Data Source=alias;User id=user;Password=password"; connection.Open(); using (OracleCommand command = connection.CreateCommand()) { command.CommandType = CommandType.Text; command.CommandText