Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle and Dotnet

Re: Oracle and Dotnet

From: Jim Kennedy <kennedy-downwithspammersfamily_at_attbi.net>
Date: Thu, 2 Jun 2005 17:45:00 -0700
Message-ID: <PPOdnUif6vVMOgLfRVn-jw@comcast.com>

"Larry" <larry_at_larry.com> wrote in message news:vmIne.3966$x96.1744_at_attbi_s72...
> Hello All:
>
> I am looking for an "opinion" by Oracle Professionals as to whether
> Oracle server 10G can be expected to perform properly using the ODP.net
> as provided by the Oracle Corporation.
>
> Our company has contracted out Oracle DBA's. They have set up a 10G
> development server for me to use. I am using ODP.net from Oracle and
> Csharp. I have a single table, with a single field (varchar(20)), no
> indexes at all.
>
> Running my app from the same machine that the server is located on, I am
> inserting a whopping 35 records per second.
>
> The exact same program (except for connection string and changing
> 'Oracle' to 'MySQL') gets me an insert rate of 7250 in the MySQL database.
>
> Obviously, something is wrong. Oracle didn't become the industry leader
> with that type of performance. Our Oracle DBA's are claiming the problem
> is DOTNET. I don't buy that, especially since I am using a provider
> directly from the Oracle Corporation.
>
> I need an opinion on the following....
>
> SHOULD I EXPECT HIGH PERFORMANCE FROM ODP.NET?????????????
>

Too many variables to know what the problem is. Are you using bind variables? (probably not) Are you using the array interface? (probably not) Are you keeping the connection open or closing it with each insert? Are you keeping the cursor open and rebinding the bind variables and executing? (probably not) You are also probably committing after each insert. (don't unless the transaction is that)

My guess is that you are constructing a string to do the insert and opening and closing the connection with each insert. (which would cause a lot of CPU and really slow things down.)

So I think you can get high performance from odd.net and I think you can get excellent scalability from odd.net. However, that assumes the application is written efficiently and takes advantage of Oracle.

So what is wrong with your example? Don't know, not enough information. Try the same thing by using slider. I bet you will be able to import a lot more than 35 records a second into that table via sqlloader. That would give you an idea of probably how fast odp.net would be if written effeciently. (estimate of top throughput in your environment.)

Jim Received on Thu Jun 02 2005 - 19:45:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US