strConn = "data source=" + server + ";user id=" + user + ";password=" + pwd;//需要安装Oracle Client端
//不需要安装Oracle Client
strConn = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=" + server + ")(PORT=" + port + "))" +
"(CONNECT_DATA=(SID=" + db_name + ")));User Id=" + user + ";Password=" + pwd + ";";