Click here to Skip to main content
15,887,421 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..,

i wrote oracle connection but there is error following like this "ORA-12541: TNS:no listener"...
i wrote code:
string con = "Data Source=pvstest;User Id=scott;Password=tiger";
OracleConnection conn = new OracleConnection(con);
conn.Open();
Response.Write("CONNECT");
conn.Close();
Posted
Updated 18-Jul-11 22:58pm
v2

My best guess is that you should try replacing 'pvstest' with ORCL.

If you are trying to connect to an oracle RDBMS running on another server you need to configure the data source - using the 'Net Configuration Assistant' or 'Net Manager'.

Best regards
Espen Harlinn
 
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