开发环境MapXtreme2004+C#+Oracle Spatial

1.windows程序中连接oracle spatial方法

 1MapXtreme2004 连接oracle spatial的问题    //连接数据库oracle spatial
 2MapXtreme2004 连接oracle spatial的问题            MIConnection Connection=new MIConnection();
 3MapXtreme2004 连接oracle spatial的问题            Connection.Open();
 4MapXtreme2004 连接oracle spatial的问题            string connectionInfo = "SRVR=orcl_gissrv;UID=system;PWD=gis";
 5MapXtreme2004 连接oracle spatial的问题            ArrayList al = new ArrayList();
 6MapXtreme2004 连接oracle spatial的问题            al.Add("教学楼");
 7MapXtreme2004 连接oracle spatial的问题            al.Add("宿舍楼");
 8MapXtreme2004 连接oracle spatial的问题            al.Add("绿化设施");
 9MapXtreme2004 连接oracle spatial的问题            al.Add("其他建筑");
10MapXtreme2004 连接oracle spatial的问题
11MapXtreme2004 连接oracle spatial的问题            MapInfo.Data.Table [] tables=new MapInfo.Data.Table[al.Count];
12MapXtreme2004 连接oracle spatial的问题            TableInfoServer tis;
13MapXtreme2004 连接oracle spatial的问题            for(int i=0;i<al.Count;i++)
14            Connection.Close();


2. 在asp.net 中,这种方法行不通:

Unable to open table.: Data access driver requested is not available: ORAINET.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

相关文章:

  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2021-10-03
  • 2021-10-25
  • 2021-09-02
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2021-04-28
  • 2021-11-04
  • 2021-12-06
  • 2022-12-23
  • 2021-11-13
  • 2021-09-09
相关资源
相似解决方案