• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Connecting to Oracle DB with C#

IkarusDowned

Junior Member
Hey all,
I'm a complete n00b with C# and using the ODB.NET stuff, but i was looking at the basic tutorials on connecting to an Oracle DB. The thing is, they all seem to have a local DB running. what i mean is, in the line:

con.ConnectionString = "User Id=scott;Password=tiger;Data Source=orcl9i;";

they have Data Source as just the orcl9i.

my database is indeed 9i, but i have to connect to it thru a remote connection...so, lets just say for example the DB is connecatble at oracle-db.remote.edu and i have the login name and pw.

What do i do to connect to this? Just replace the orcl9i with my remote location?
 
ah, so my new string would be:

con.ConnectionString = "User Id=scott;Password=tiger;Data Source=orcl9i;server = oracle-db.remote.edu;";

then?
I've never heard of this as a solution on other forums, but it's worth a shot. Thanks, i'll let you know how it goes.
 
Server is an invalid string attribute...unfortunatly...i think you might be thinking of regular SQL connecting? Thanks for the try, though.
 
Back
Top