oracleclient

Connection to Oracle works through a console application and doesn't work through a web service

我是研究僧i 提交于 2019-12-10 10:38:13
问题 I can't connect to an Oracle schema through a asmx web service instead of I can through a console application [x86]. The code: var conn = new OracleConnection("Data Source=xe;User ID=mySchema;Password=myPass"); The exception: ORA-12154: TNS:could not resolve the connect identifier specified The environment: Windows 7 x64 - VS 2008. Any idea? kindly ask me for any extra information Thanks in advance. 回答1: OCI, the Oracle client layer on which ODP (or the native Oracle client layer) is based

DataReader not closed when Connection is closed, consequences?

点点圈 提交于 2019-12-10 08:00:41
问题 for example i have this code : Sub Month() Dim Conn As New Data.OracleClient.OracleConnection Conn.Open() Try Dim Cmd As New Data.OracleClient.OracleCommand With Cmd .Connection = Conn .CommandType = Data.CommandType.Text .CommandText = "SELECT * FROM MONTH" End With Dim datareader As Data.OracleClient.OracleDataReader = Cmd.ExecuteReader While datareader.Read Response.Write(datareader(0)) End While Catch ex As Exception Throw ex Finally Conn.Close() End Try End Sub What will happen to the

Error System.Data.OracleClient requires Oracle client software version 8.1.7 or greater when installs setup

橙三吉。 提交于 2019-12-09 10:51:34
问题 I have made a desktop app Setup that connects with remote Oracle 10g Database. When I install Setup on remote machine and run my application then I get following error: system.data.oracleclient requires oracle client software version 8.1.7 or greater It works well on my Development machine. 回答1: The error message is pretty self-explanatory: your application needs the Oracle Client installed on the machine it's running on. Your development PC already has it. Make sure your target PC has it,

sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

匆匆过客 提交于 2019-12-09 04:39:38
问题 Please suggest a solution for solving this issue?? While giving the command: sqlplus /nolog the error that occurred: sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory 回答1: The minimum configuration to properly run sqlplus from the shell is to set ORACLE_HOME and LD_LIBRARY_PATH . For ease of use, you might want to set the PATH accordingly too. Assuming you have unzipped the required archives in /opt/oracle/instantclient_11

How can I mock/fake/stub sealed OracleException with no public constructor?

青春壹個敷衍的年華 提交于 2019-12-08 15:50:27
问题 In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to Expect.Call(....).Throw(new OracleException()); For whatever reason however, OracleException seems to be sealed with no public constructor. What can I do to test this? Edit: Here is exactly what I'm trying to instantiate: public sealed class OracleException : DbException { private OracleException(string message, int code) { ...} } 回答1: It seems

Why is OracleDataAdapter.Fill() Very Slow?

瘦欲@ 提交于 2019-12-07 17:20:40
问题 I am using a pretty complex query to retrieve some data out of one of our billing databases. I'm running in to an issue where the query seems to complete fairly quickly when executed with SQL Developer, but does not seem to ever finish when using the OracleDataAdapter.Fill() method. I'm only trying to read about 1000 rows, and the query completes in SQL Developer in about 20 seconds. What could be causing such drastic differences in performance? I have tons of other queries that run quickly

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

大兔子大兔子 提交于 2019-12-07 07:22:32
问题 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

running oracle imp / exp in Ubuntu 14.04.3

杀马特。学长 韩版系。学妹 提交于 2019-12-07 06:15:23
问题 After installing the oracle packages oracle-instantclient12.2-basiclite-12.2.0.1.0-1.x86_64.rpm and oracle-instantclient12.2-tools-12.2.0.1.0-1.x86_64.rpm with alien -i I want to run the exp utility, but I got an error root@localhost:/usr/lib/oracle/12.2/client64/bin# ./exp ./exp: error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory root@localhost:/usr/lib/oracle/12.2/client64/bin# export declare -x DERBY_HOME="/usr/lib/jvm/java-8

The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data'

丶灬走出姿态 提交于 2019-12-07 05:30:02
问题 When trying to run my code, I receive the following error: CS0234: The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) I have included references to System.Data.dll and System.Data.OracleClient.dll , but I am still getting this error. The error is being caused by the line using System.Data.OracleClient in my namespace declaration. 回答1: The using System.Data.OracleClient directive means that that namespace should be

Why is OracleDataAdapter.Fill() Very Slow?

为君一笑 提交于 2019-12-06 03:01:40
I am using a pretty complex query to retrieve some data out of one of our billing databases. I'm running in to an issue where the query seems to complete fairly quickly when executed with SQL Developer, but does not seem to ever finish when using the OracleDataAdapter.Fill() method. I'm only trying to read about 1000 rows, and the query completes in SQL Developer in about 20 seconds. What could be causing such drastic differences in performance? I have tons of other queries that run quickly using the same function. Here is the code I'm using to execute the query: using Oracle.DataAccess.Client