Hi, We eventually went down to oracle 11.2.0.1 but we also made the following changes , so maybe this will help you:1.Take the shape.so lib from the arcsde installation for unix and not from arc catalog as describe in the documentation ( we have tested it twice to be sure , the file from windows arc catalog is not working ). 2.Make sure that the path is ok , using these syntax, �?�SELECT * FROM USER_LIBRARIES3.We've followed these steps provided by our local distributer , step by step : a.Modify your extproc.ora as follows: SET EXTPROC_DLLS=ONLY:�?�.�?�(path)�?�.�?� libst_shapelib.so b.Re-create the libraries: $sqlplus sde/sde SQL> create or replace library ST_SHAPELIB as '�?�.�?�(path)�?�.�?� libst_shapelib.so '; Library created. c.Make sure that the dlls are valid. SQL>select * from user_libraries; Make sure it is pointing to the correct path and is valid. d.Compile st_geometry_shapelib_pkg SQL> alter package sde.st_geometry_shapelib_pkg compile reuse settings; Package altered. e.Creating the library causes dependent object to become invalid. Execute the following command as the SDE user (you may need to grant the execute privilege on sys.utl_recomp to user SDE): i.As sys user, grant execute on SYS.UTL_RECOMP TO SDE. SQL> GRANT EXECUTE ON SYS.UTL_RECOMP TO SDE; ii.As SDE user, recompile. SQL> EXECUTE sys.utl_recomp.recomp_serial('SDE'); f. Verify all objects are valid as SDE user. SQL> select object_name, object_type from user_objects where status = 'INVALID' g.Remove for now the "tnsnames+listener" config and see if it workshope this will work for you iris hadar
in my situation, the library was corrupted (for some reason).....
SDE /var/opt/esrilibs 12 > ldd libst_shapelib.so libclntsh.so.10.1 => /u01/app/oracle/product/11.2.0/dbhome_1/lib/lib clntsh.so.10.1 libCrun.so.1 => /usr/lib/64/libCrun.so.1 libnnz11.so => /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so libkstat.so.1 => /lib/64/libkstat.so.1 libnsl.so.1 => /lib/64/libnsl.so.1 libsocket.so.1 => /lib/64/libsocket.so.1 libresolv.so.2 => /lib/64/libresolv.so.2 libgen.so.1 => /lib/64/libgen.so.1 libdl.so.1 => /lib/64/libdl.so.1 libsched.so.1 => /usr/lib/64/libsched.so.1 librt.so.1 => /lib/64/librt.so.1 libc.so.1 => /lib/64/libc.so.1 libaio.so.1 => /lib/64/libaio.so.1 libpool.so.1 => /usr/lib/64/libpool.so.1 libm.so.2 => /lib/64/libm.so.2 libmp.so.2 => /lib/64/libmp.so.2 libmd.so.1 => /lib/64/libmd.so.1 libscf.so.1 => /lib/64/libscf.so.1 libxml2.so.2 => /usr/lib/64/libxml2.so.2 libnvpair.so.1 => /lib/64/libnvpair.so.1 libexacct.so.1 => /usr/lib/64/libexacct.so.1 libdoor.so.1 => /lib/64/libdoor.so.1 libuutil.so.1 => /lib/64/libuutil.so.1 libpthread.so.1 => /lib/64/libpthread.so.1 libz.so.1 => /usr/lib/64/libz.so.1 /platform/SUNW,Sun-Fire-V240/lib/sparcv9/libc_psr.so.1 /platform/SUNW,Sun-Fire-V240/lib/sparcv9/libmd_psr.so.1
# TNSNAMES.ORA Network Configuration File: /app_root/network/admin/tnsnames.ora # Generated by Oracle configuration tools. EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) o11g = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = archeo)(PORT = 1521)) ) (CONNECT_DATA = (SID = o11g) ) )
# LISTENER.ORA Network Configuration File: /app_root/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = archeo)(PORT = 1521)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=/var/opt/esrilibs/libst_shapelib.so,LD_LIBRARY_PATH=/var/opt/esrilibs") ) (SID_DESC = (GLOBAL_DBNAME = o11g.iaa.local) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = o11g) ) ) ) SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF INBOUND_CONNECT_TIMEOUT_LISTENER=500
SET EXTPROC_DLLS=ONLY:/var/opt/esrilibs/libst_shapelib.so SET LD_LIBRARY_PATH=/var/opt/esrilibs:/u01/app/oracle/product/11.2.0/dbhome_1/lib
SELECT * FROM USER_LIBRARIES
LIBRARY_NAME FILE_SPEC DYNAMIC STATUS ------------------------------ --------------------------------------------------------------------- ST_SHAPELIB /var/opt/esrilibs/libst_shapelib.so Y VALID
select st_point(0,0,0) from dual
SQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 15 05:55:23 2012 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select st_point(0,0,0) from dual; select st_point(0,0,0) from dual * ERROR at line 1: ORA-06520: PL/SQL: Error loading external library ORA-06522: ld.so.1: extproc: fatal: libclntsh.so.10.1: open failed: No such file or directory ORA-06512: "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12 ORA-06512: "SDE.ST_POINT", line 176
% sqlplus sde/redacted@o11gR2a SQL*Plus: Release 11.2.0.2.0 Production on Fri Dec 14 16:42:37 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select st_point(0,0,0) from dual; ST_POINT(0,0,0)(ENTITY, NUMPTS, MINX, MINY, MAXX, MAXY, MINZ, MAXZ, MINM, MAXM, -------------------------------------------------------------------------------- ST_POINT(1, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0, 0, '0C00000001000000808 0DD9DA4178080DD9DA417')
Please provide the listener.ora and tnsnames.ora files from your$ORACLE_HOME/network/admin directory.- V
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.