1. 拷贝st_shapelib.dll,将文件拷贝到oracle目录下
D:\Oracle\product\12.1.0\dbhome_1\BIN\st_shapelib.dll
2. 修改D:\Oracle\product\12.1.0\dbhome_1\NETWORK\ADMIN目录下的listener.ora文件
在EXTPROC_DLLS中追加st_shapelib.dll的路径(注意与其他dll的分隔符 分号;)

3. 重启Oracle的监听服务
4. 执行sql语句
create or replace library ST_SHAPELIB as 'D:\Oracle\product\12.1.0\dbhome_1\BIN\st_shapelib.dll';
alter package sde.st_geometry_shapelib_pkg compile reuse settings;
5.测试
select sde.st_astext(shape) as geometry from table表名
网友评论