SQL> SELECT library_name, file_spec FROM user_libraries; LIBRARY_NAME FILE_SPEC ------------ -------------------------------------------- ST_SHAPELIB D:\ESRI\ArcSDE\ora10gexe\bin\st_shapelib.dllThe value for file_spec must match the st_shapelib.dll's physical file location on the server. If it does not match, st_geometry operators and functions fail to execute.
SQL> SELECT sde.st_astext(shape) FROM sewers WHERE objectid = 10; ERROR: ORA-06520: PL/SQL: Error loading external library ORA-06522: Unable to load DLL ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 70 ORA-06512: at "SDE.ST_GEOMETRY_OPERATORS", line 68
SQL> CREATE OR REPLACE LIBRARY st_shapelib 2 AS 'C:\Program Files\ESRI\ArcSDE\ora11gexe\bin\st_shapelib.dll'; 3 / Library created.Creating the library causes dependent objects to become invalid. Oracle best practices recommend all objects should be compiled and valid. To ensure all objects are valid in the SDE schema, execute the following command as the SDE user:
EXECUTE sys.utl_recomp.recomp_serial('SDE'); PL/SQL procedure successfully completed.
Verify all objects are valid.
SQL> SELECT object_name FROM user_objects WHERE status = 'INVALID'; no rows selected