odp.net

“ORA-01012” error message when trying to connect to an Oracle database

前提是你 提交于 2019-12-05 11:04:10
Using C# and Oracle Data Provider for .NET (ODP) I made a long query to the database, then I end the connection on the server side using TOAD. After that, the subsequent calls to the database, even creating a new OracleConnection object, throw the following error: ORA-01012: not logged on Process ID: xxx Session ID: yyy Serial number: zzz Where Process ID and Session ID are the identifiers I used to end the connection. It seems like when I end the connection to the Oracle database on the server side, the broken connection is returned to the connection pool. And when the C# client code (using

Having two ODP.NET (ODAC) versions in the same server

醉酒当歌 提交于 2019-12-05 09:27:03
Some months ago, a colleague of mine installed ODAC 11.106.21 in a server using XCOPY and then he developed many applications that use this client without problems (in test and production windows servers). Past week, I developed an application under ODAC 11.1.07.20. When I asked him to install these new ODAC version using XCOPY in a different folder and then include my application in the test server, he answered me that I should use ODAC 11.106.21 because he could have troubles with his applications. So I would like to know: 1) If it is really possible to have two different ODAC versions in

Visual Studio ODP Unmanaged Driver - Failed to find the default tnsnames.ora file (12c )

帅比萌擦擦* 提交于 2019-12-05 06:01:34
I'm developing an app in Visual Studio 2013 that connects to a Oracle Database. I have to use the "Unmanaged Driver". When I'm trying to create a new connection in a dataset, when I chose the "Managed Driver" all work fine: the tnsnames.ora is found. But when I select the "Unmanaged driver" all fails, it send me a message like " Failed to find the default tnsnames.ora file" I already - Uninstalled all old Oracle Clients - Clean all environment variables - Reinstalled Oracle client, ODP tools for Visual Studio Nothing seems to work. Any ideas ? Angel Olguin you should go to the folder

ODP.NET Procedure Compilation

元气小坏坏 提交于 2019-12-05 04:52:04
问题 When I try to execute a create procedure using ODP.NET I get back ORA-24344: success with compilation error. However, when I run the same statement in SQL Developer it compiles successfully. Does anyone know what I need to change to get my procedure to compile? Is it a character set issue? I am using Oracle 10g Express, .NET 3.5 SP 1, and ODP.NET 2.111.7.20 (version from Oracle.DataAccess.dll) [TestMethod] public void OdpNet_CreateProcedure() { ConnectionStringSettings settings =

Using ODP.NET to get a RECORD from PL/SQL function, without touching PL/SQL code

若如初见. 提交于 2019-12-05 03:33:28
问题 The title is pretty-self-explanatory: from a C# application, using ODP.NET, I'm trying to call a PL/SQL function that returns not a simple value, but a record. Unfortunately, I'm not authorized to add or change the PL/SQL code, so attempting to wrap the function in another function that returns a different type is not an option for me. Here is a simplified example... PL/SQL: CREATE OR REPLACE PACKAGE FOO_PACKAGE AS TYPE FOO_RECORD IS RECORD ( BAR VARCHAR2(50), BAZ VARCHAR2(50) ); FUNCTION FOO

ODP.NET deployment without installation

筅森魡賤 提交于 2019-12-05 03:05:38
问题 I want to deploy a client application that uses Oracle's ODP.net but I don't want to install ODP.net on every machine. Rather I'd like to copy the managed dll oracle.dataaccess.dll on every machine and have the native dlls on which it depends available, on a shared disk. By decompiling the oracle.dataaccess.dll code I have seen that it calls a method that gets the location of the native dlls from the registry. So, in addition to copying the oracle.dataaccess.dll on every machine I would have

To close or not to close an Oracle Connection?

自作多情 提交于 2019-12-04 23:52:39
问题 My application have performance issues, so i started to investigate this from the root: "The connection with the database". The best practices says: "Open a connection, use it and close is as soon as possible", but i dont know the overhead that this causes, so the question is: 1 -"Open, Use, Close connections as soon as possible is the best aproach using ODP.NET?" 2 - Is there a way and how to use connection pooling with ODP.NET? I thinking about to create a List to store some connections

Function imports for entity framework with odp.net managed driver

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 20:30:20
I recently switched from ODP Unmanaged to ODP Managed (in conjunction with Entity Framework). The Unmanaged drivers were working fine after adding the necessary information in the web.config section. I could add the stored procedures and generate the complex types using the Function Import - Get Column information (I'm trying to import a stored procedure with an OUT refcursor parameter). After the switch the config section was updated to reflect the new format and everything works at runtime (so the format is correct). However when I try to generate the complex types again (or add a new

Odp.Net - Depending on the client and server

时光怂恿深爱的人放手 提交于 2019-12-04 20:23:22
I have question from theory. My application uses Odp.Net. I add as reference file Oracle.DataAccess.dll version 2.112.3.0. I am using Odp.Net to query database and to registry query notifications . On each computer i install ODAC 11.2 Release 5 (11.2.0.3.20) from http://www.oracle.com/technetwork/database/windows/downloads/utilsoft-087491.html . I would like to know what dependencies are between my Odp.Net version, Oracle Client version (which can be installed on client machine) and Oracle Server Version. The problem is that after I register query notification I can see row in USER_CHANGE

Oracle query is slow (or fails) from .NET app but is fast from SQL Developer

删除回忆录丶 提交于 2019-12-04 19:55:24
问题 We use ODP.NET to perform queries on Oracle databases, and normally it works fine. There is a particular database, and a particular view in that database, though, that we just can't complete a query on from .NET. For example: SELECT some_varchar_field FROM the_view WHERE ROWNUM < 5; If I execute this query from within Oracle SQL developer, it finishes in less than a second. If I do an identical query from our .NET application using ODP.NET, it hangs and eventually produces an "ORA-03135: