I have installed Oracle 11g and Oracle 12c database in my machine, tried to access Oracle 12c database through console application using c# and am unable to connect it; at the same time I can able to connect Oracle 11g database.
Through the command prompt I can able to connect Oracle 12c database by executing SQL/plus commands.
Do I need to change or add any connection parameter in connection string to connect Oracle 12c data base?
Is there any way to connect Oracle12c database through console application by adding any libraries?
Here is my code sample:
string connectionString = "Data Source=localhost;User ID=system;Password=pwd";
using (OracleConnection connection = new OracleConnection())
{
connection.ConnectionString = connectionString;
connection.Open();
}
This code connects Oracle 11g database. How can I achieve the same connection to the Oracle 12c database?