Oracle空间函数ST_AsText配置

在Oracle使用过程中,arcsde提供ST_AsText函数将空间图层的坐标点信息转换为文本格式,但在使用前需结合arcsde环境对oracle数据库做一些配置,才能正常使用ST_AsText方法。

环境:Win2008R2+Oracle11.2.0.4+arcsde for 11g

1 拷贝st_shapelib.dll

拷贝st_shapelib.dll 文件 到 oracle数据库的安装目录:D:\app\Administrator\product\11.2.0\dbhome_1\BIN ;st_shapelib.dll可来自两个文件夹,这两文件大小不同。

(1)如果安装了arcgis desktop,可从 D:\Program Files (x86)\ArcGIS\Desktop10.2\DatabaseSupport\Oracle\Windows64 路径下寻找;

(2)如果安装了ArcSDE,可从 D:\Program Files\ArcGIS\ArcSDE\ora11gexe\bin 路径下寻找;

2 修改Oracle两个配置文件

分别为:

extporc.ora , 路径为: D:\app\Administrator\product\11.2.0\dbhome_1\hs\admin ;

listener.ora ,路径为:D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN ;

extporc.ora 修改内容:底部设置 SET EXTPROC_DLLS=ANY

listener.ora 修改内容: 确保红色框内的内容如下图所示即可;

3 重启oracle监听服务;

4 以SDE用户登录数据库,执行以下语句:

复制代码
create or replace library ST_SHAPELIB as 'D:\app\Administrator\product\11.2.0\dbhome_1\BIN\st_shapelib.dll';

alter package sde.st_geometry_shapelib_pkg compile reuse settings ;

5 执行完上述两个语句后,验证是否配置成功。

相关推荐
敲上瘾3 小时前
C++ ODB ORM 完全指南:从入门到实战应用
linux·数据库·c++·oracle·db
终生成长者3 小时前
MongoDB 操作命令
数据库·mongodb·oracle
小白起 v4 小时前
自动更新工期触发器(MYSQL)
数据库·sql·oracle
全栈工程师修炼指南1 天前
DBA | Oracle RMAN 实战:物理备份与数据恢复全解析
数据库·oracle·dba
while(1){yan}1 天前
数据库的基本操作
数据库·oracle
大猫会长1 天前
supabase备份数据库中某个schema的方法
数据库·oracle
研究司马懿2 天前
【ETCD】ETCD常用命令
网络·数据库·云原生·oracle·自动化·运维开发·etcd
刘一说2 天前
深入理解 Spring Boot 中的数据库迁移:Flyway 与 Liquibase 实战指南
数据库·spring boot·oracle
August_._2 天前
【MySQL】SQL语法详细总结
java·数据库·后端·sql·mysql·oracle