ORA-04063: type body"SDE.ST GEOMETRY”有错误
问题描述
ArcSDE 10.2 版本扩展ST_GEOMETRY,执行sql验证的时候,提示ORA-04063: type body"SDE.ST GEOMETRY”有错误
问题原因
可能是sde用户缺少对应的权限。
解决
登录sys账号执行以下赋值权限脚本
GRANT EXECUTE ON DBMS_PIPE TO sde;
GRANT EXECUTE ON DBMS_LOCK TO sde;
GRANT EXECUTE ON DBMS_UTILITY TO sde;
GRANT EXECUTE ON DBMS_SQL TO sde;
GRANT EXECUTE ON DBMS_LOB TO sde;
GRANT EXECUTE ON UTL_RAW TO sde;
GRANT EXECUTE ON DBMS_CRYPTO TO sde;
重新创建外部扩展
CREATE or REPLACE LIBRARY ST_SHAPELIB AS ‘C:\mylibraries\st_shapelib.dll’;
重新编译ST_GEOMETRY
ALTER PACKAGE sde.st_geometry_shapelib_pkg COMPILE REUSE SETTINGS;
最后再次执行验证语句就可以了。