Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC vs. OracleClient for Database Connection/Query 3

Status
Not open for further replies.

chilly442

Technical User
Jun 25, 2008
151
US
I have been using ODBC to connect and query data from Oracle. I had a co-worker tell me that he doesn't think that I should be using ODBC, and that he uses OracleClient.

What is/are the benefits to using one or the other?
Am I better off using one and not the other?
Using ODBC is what I learned in school. Is using OracleClient just the new way of doing things?



Thanks,
Chilly442
---------------------------------------
If I lived anywhere else I'd be Sunny442
 
Hi,
In general, I agree that the Client software is usually better, but there are thin-client ODBC drivers out there that use a wire protocol to connect to the Oracle database and these do not even require an Oracle client installed on the workstation ( much like a Java connection).

Here is one I have used ( not an endorsement and I do not work for them):




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
a client specific driver is designed specifically for the client and will preform better and have more client specific features.

I would imagine the teacher said use ODBC as a way to abstract the driver details from the client code. And this is a good practice, however the .net platform allows you to abstract the database specifics using DbProviderFactories.CreateFactory(string). you can configure the specific database in the configuration file. this in turn abstracts the details of which database you are using from your code base.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
After doing a bit more research into this, I was looking on Microsoft's site and found the following:

Looks like OracleClient is going to go away in future versions.

Thanks,
Chilly442
---------------------------------------
If I lived anywhere else I'd be Sunny442
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top