odp.net

Unable to load DLL “OraOps10.dll”

走远了吗. 提交于 2019-12-21 01:21:13
问题 I am running into peculiar issue. I am developing a windows based application which connects to Oracle database. For initial testings, I have created installer and tested on different machines that I have. Each machine has Oracle Client installed and I did not see any problem in running application. But when I share this installer with customer, he is getting error "Unable to load DLL OraOps10.dll". When asked he mentioned and has shown the Oracle Client installed on his machine and he is

Enable ODP.Net logging

╄→гoц情女王★ 提交于 2019-12-21 01:21:06
问题 Can anyone help me with enabling ODP.Net logging on a Windows XP machine? I googled and found following link but it did not work for me. http://download.oracle.com/docs/html/E10927_01/featConfig.htm I set the "TraceLevel" setting to "63" in registry but it did not help Basically I want to capture all the database call happening from my C# code through the log. I wish there was a tool like "SQL Profiler" for Oracle. 回答1: I had the same issues on certain machines when troubleshooting some

Converting oracle query into user defined types in pl/sql

偶尔善良 提交于 2019-12-20 03:57:10
问题 I have a select query on a relational table in a plsql procedure. I want to convert the results of this query into a user defined type object to return via odp.net. How would I go about doing this? 回答1: (this is from one of my other post today) this is a walkthrough on getting started: http://www.oracle.com/technology/obe/hol08/dotnet/udt/udt_otn.htm while this is a bit more detailed: http://download.oracle.com/docs/html/E10927_01/featUDTs.htm but the real meat & potatoes are already

Unable to parse Oracle timestamp in C#

非 Y 不嫁゛ 提交于 2019-12-20 02:07:10
问题 I have timestamp of Oracle: string timestamp = "23-JUN-14 09.39.04.000000000 AM"; I am not able to parse it into system date time object. I used: CultureInfo provider = CultureInfo.InvariantCulture; String format = "yy-MMM-dd hh:mm:ss:fffffff"; string timestamp = "10-DEC-07 10.32.47.797201123 AM"; { var date = DateTime.ParseExact(timestamp, format, provider); DateTime dateTime = DateTime.ParseExact(timestamp.ToString(), "dd-MMM-y HH:mm:ss", CultureInfo.InvariantCulture); } It is still passing

Execute an oracle Function that returns a reference cursor in C#

放肆的年华 提交于 2019-12-19 13:44:31
问题 I have an oracle package with a procedure that has a in out reference cursor. My understanding is that this is pretty standard. What I didn't like is the fact that I had to write a ton of code to just see the output. So I asked this question and it turns out I can get what I want by creating a function that wraps the procedure. Update: Looks like I don't need the function anymore but it may be worth knowing anyway for those curious see the original question and answer updates. Here's the

Execute an oracle Function that returns a reference cursor in C#

假装没事ソ 提交于 2019-12-19 13:44:12
问题 I have an oracle package with a procedure that has a in out reference cursor. My understanding is that this is pretty standard. What I didn't like is the fact that I had to write a ton of code to just see the output. So I asked this question and it turns out I can get what I want by creating a function that wraps the procedure. Update: Looks like I don't need the function anymore but it may be worth knowing anyway for those curious see the original question and answer updates. Here's the

Execute an oracle Function that returns a reference cursor in C#

与世无争的帅哥 提交于 2019-12-19 13:43:58
问题 I have an oracle package with a procedure that has a in out reference cursor. My understanding is that this is pretty standard. What I didn't like is the fact that I had to write a ton of code to just see the output. So I asked this question and it turns out I can get what I want by creating a function that wraps the procedure. Update: Looks like I don't need the function anymore but it may be worth knowing anyway for those curious see the original question and answer updates. Here's the

How to use an Oracle Ref Cursor from C# ODP.NET as a ReturnValue Parameter, without using a Stored Function or Procedure?

馋奶兔 提交于 2019-12-19 08:15:22
问题 I need help understanding if the way I'm trying to use a Ref Cursor as a ReturnValue Parameter for multiple records/values, with the PL/SQL just being the CommandText of an OracleCommand object and not in a Stored Procedure or Function, is even possible. If that is not possible, what I'm trying to do is find a way to issue a PL/SQL statement that will Update an unknown number of records (depends on how many match the WHERE clause), and return the Ids of all the records Updated in an

Oracle Connection Pooling in .Net

断了今生、忘了曾经 提交于 2019-12-19 05:43:35
问题 We have a system that uses an Oracle database. I've been asked if the system makes use of connection pooling which I'm not sure about. We are using the Oracle.DataAccess.Client.OracleConnection When reading up on the subject I've found that connection pooling is set to true in the connection string and that it is set to true by default. Our connection string does not include any pooling settings. Does this imply that we are using pooling and if so what would the default min and max pool size

Oracle.DataAccess still try to access oraops12.dll after uninstall

时光毁灭记忆、已成空白 提交于 2019-12-18 16:45:21
问题 First I have both 11 and 12 oracle client on my machine. But when i try to use 11g version of oracle.dataacess.dll . I already remove a 12c register on regedit and stop service and machince.config related. but the program was throw "Unable to load oraops12.dll..". Which path that oracle.dataacess find a config for dll? Why did it still try to load oraops12 not oraops11. Thank you in advance. 回答1: There is a policy file in your GAC that is using the "bindingRedirect" tag Policy.2.112.Oracle