ArcSDE 設置

---------------------轉載-----------------------sql


a)建立加載路徑——st_shapelib.dll
         執行建立庫腳本:create or replace library st_shapelib as 'C:\Program Files\ArcGIS\ArcSDE\ora10gexe\bin\st_shapelib.dll';
         查看是否建立成功:select * from user_libraries;oracle


b)Oracle監聽器設置——修改listener.ora文件
        添加(ENVS="EXTPROC_DLLS=ANY")測試

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
       (SID_NAME = PLSExtProc)
      (ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
      (ENVS="EXTPROC_DLLS=ANY")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521))
    )
  )

 

  c)修改tnsnames.ora文件
        添加(ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521))spa

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    ) 
  ) 

 
d)重啓oracle監聽器
         lsnrctl stop
         lsnrctl startserver


e)ST_Geometry測試
select sde.st_astext(shape) from ***;blog

相關文章
相關標籤/搜索