Imports System.Data.OleDb Public Class Log Private mConnectionString As String = 'Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(CID=GTU_APP)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT=1521)))(CONNECT_DATA=(SID=xxx)(SERVER=DEDICATED)));User Id=xxx;Password=xxx;' Dim ds As New DataSet Dim da As New OleDbDataAdapter Dim dr As DataRow Dim Connection As New OleDbConnection(mConnectionString) Dim Command As OleDbCommand goes on...
That’s the code, and it works great on our development machines. We all have the Oracle providers installed on our machines. Now I tried using this code in an app on another machine that does not have the Oracle software installed and it doesn’t work.
Now I know I can install the Oracle providers on these other machines and it will work. Problem with that is A) there are many of them and B) I’d have to go through our IT department and it would take six months for them to do it. So my question is, can I connect to this Oracle database from a machine without the Oracle providers installed? I thought Microsoft had it’s own Oracle provider but it doesn’t show up under System.Data. The .NET version is 3.5 if that helps. Any ideas?
I’ve had fairly good luck with the Oracle Instant Client and ODP.NET, which is pretty much a straight XCOPY deploy (if you don’t need ODBC).
IIRC, you do need to modify the PATH environment variable, but that’s relatively painless – especially compared to the hoops Oracle used to make you jump through.