Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
string connectionString = "data source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=202.202.0.1)(PORT=1521)))(CONNECT_DATA=(SID=BPKMCH)(SERVER=DEDICATED)));user id=medical;password=system";
OracleConnection con = new OracleConnection(connectionString);
con.Open();


when the debugger go to the con.open() error occured
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
how can i solved this problem

[edit]pre tag for C# code added. Treat my content as plain text unchecked - PES[/edit]
Posted
Updated 2-Mar-12 21:19pm
v2
Comments
akshay padhiyar 3-Mar-12 3:28am    
first declare in the codding of the top side
imports system.data.(database name)

Connection strings for different databases are given

http://connectionstrings.com/[^]

It may be helpful to you.
 
Share this answer
 
Comments
aftab5124 3-Mar-12 3:37am    
i have used this link and try to make connection string
I solved this problem.Actually i was not installed Oracle in mine workstation and trying to access the oracle database.Connection string is working now..
 
Share this answer
 
Hi,
Please find the solution below

OracleConnection con = new OracleConnection();
con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle;" +
"Min Pool Size=10;Connection Lifetime=120;Connection Timeout=60;" +
"Incr Pool Size=5; Decr Pool Size=2";
con.Open();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900