oracle.manageddataaccess.dll需要开通什么端口
1个回答
2017-01-19
展开全部
oracle.manageddataaccess.dll需要开通什么端口
public void testconn()
{
Oracle.ManagedDataAccess.Client.OracleConnection conn = new Oracle.ManagedDataAccess.Client.OracleConnection("Data Source=192.168.10.100/orcl;User ID=admin;Password=123456");
conn.Open();
Oracle.ManagedDataAccess.Client.OracleCommand comm = new Oracle.ManagedDataAccess.Client.OracleCommand(" select * from tablename",conn);
Oracle.ManagedDataAccess.Client.OracleDataReader dr = comm.ExecuteReader();
while (dr.Read())
{
Console.WriteLine(dr["IP"].ToString());
}
dr.Close();
conn.Close();
}
public void testconn()
{
Oracle.ManagedDataAccess.Client.OracleConnection conn = new Oracle.ManagedDataAccess.Client.OracleConnection("Data Source=192.168.10.100/orcl;User ID=admin;Password=123456");
conn.Open();
Oracle.ManagedDataAccess.Client.OracleCommand comm = new Oracle.ManagedDataAccess.Client.OracleCommand(" select * from tablename",conn);
Oracle.ManagedDataAccess.Client.OracleDataReader dr = comm.ExecuteReader();
while (dr.Read())
{
Console.WriteLine(dr["IP"].ToString());
}
dr.Close();
conn.Close();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询