arcgis连接oracle,并向oracle中导入shp数据

转:http://blog.csdn.net/hj08053127/article/details/52300071

服务器:Oracle 11g

客户端:arcgis desktop 10.2oracle 11g 32位客户端

客户端:arcgis server 10.2、oracle 11g 64位客户端

1、服务器上安装oracle 11g,客户端安装arcgis desktop 10.2对应oracle
11g 32
位客户端,arcgis server对应oracle 11g 64位客户端。如果desktop和server同时安装在了一台机器上,这台机器就要同时安装32位和64位客户端,两个客户端仅需安装在不同位置即可。这样做的原因是,desktop是32位的程序,server是64位的程序,因此缺少相应的客户端,在连接数据库(desktop)或发布地图服务(server)时,就会提示数据库客户端配置错误。

2、catalog直连oracle数据库。实例名:ip/orcl。用户名sys,密码。可以连接数据库。

如果没有安装正确的oracle客户端,进行这一步,可能会报错客户端配置不正确。

 

3、创建空间数据库。用create enterprise geodatabase创建空间数据库。

如果没有创建空间数据库,直接导入shp文件到oracle的数据库中,虽然显示导入成功,但缺少地理坐标系,在catalog中编辑数据库中导入文件的地理坐标系后,文件加载没有数据。

 

 

4、创建空间数据库后,可能会有绿色报错。

下面的解释引用自一篇博客,没有验证真实性

http://blog.csdn.NET/linghe301/article/details/7659423ArcSDE10.1的安装文档

// 绿色警告,但是不影响库

The ST_Geometry shape library path may be invalid, or the EXTPROC is not configured correctly in the Oracle instance. [ (Unable to determine current version of ST_SHAPELIB. The latest ST_GEOMETRY and dependent libraries need to
be copied to the correct software location. Refer to the ArcGIS help topics for more details.)]

这个警告就是说,如果使用SQL操作ST_Geometry,需要单独安装相关的包,调用ST_SHAPELIB

但是有个问题就是,默认的表空间安装在$ORACLE_HOME/dbs里面


5、导入数据右键数据库连接,可以选择一次导入一个数据或多个数据。

转载自:https://blog.csdn.net/wt346326775/article/details/52842083

You may also like...