1、進入將arcgis安裝目錄:
C:\Program Files (x86)\ArcGIS\Desktop10.1\DatabaseSupport\Oracle\Windows64\st_shapelib.dll
2、將上述dll 復制到oracle home與bin中:
我的路徑:
D:\app\Administrator\product\11.2.0\dbhome_1
D:\app\Administrator\product\11.2.0\dbhome_1\BIN
3、進入sql執行工具,使用sde用戶:
使用sql語句,來檢查st_shapelib.dll的位置配置
select * from user_libraries;
4、如果步驟3中查詢沒有記錄或記錄位置不正確,使用sql語句添加或修改:
eg:create or replace library ST_SHAPELIB as ''
實際語句:create or replace library ST_SHAPELIB as 'D:\app\Administrator\product\11.2.0\dbhome_1\BIN\st_shapelib.dll'
5、使用sql驗證是否配置成功:
select sde.st_astext(sde.st_point(103.806709, 30.660408,4326)) from dual