I am using oracle client to connect with database and while opening connection getting below error.
Connection string present in tnsnameora.
Below is the code:
string cs_OT = ConfigurationManager.ConnectionStrings["CON_OT_DB"].ConnectionString;
string cs_MEDB = ConfigurationManager.ConnectionStrings["CON_ME_DB"].ConnectionString;
OracleConnection Con_Pre_ot = new OracleConnection(cs_OT);
OracleConnection Con_Pre_ME = new OracleConnection(cs_MEDB);
Con_Pre_ME.Open();
string Select_pk_id_row1 = "SELECT pk_id FROM (SELECT * FROM tss_ot_place_info ORDER BY pk_id desc) WHERE ROWNUM = 1";
OracleCommand cmd_pk_id_r1 = new OracleCommand(Select_pk_id_row1, Con_Pre_ME);
int pk_id_row1;
pk_id_row1 = Convert.ToInt32(cmd_pk_id_r1.ExecuteScalar());
//pk id for uk_tss_ot_place_info
pk_id_row1_uk = pk_id_row1 + 1;
getting below error : ORA-12154: TNS:could not resolve the connect identifier specified
also would like to inform you that i am able to connect with sql developer.