What is the exact format of a connection string for Oracle?
问题 I have this code: string conStr = @"server=ORACLE1001;database=Test;uid=admin;pwd=1234"; mycon = new OleDbConnection(); mycon.ConnectionString = ConStr; and it throws exception that provider must be like "Provider=SQLOLEDB;" so I tried with conStr = "Provider=OraOLEDB.Oracle.1;server=ORACLE1001;database=Test;uid=admin;pwd=1234; and it throwed exception "ORA-12560: TNS:protocol adapter error" - anny ideas how to fix this? Any ideas what is wrong with my conStr? 回答1: Please follow the steps and