[b][size=medium]1.为使用ST_Geometry SQL函数配置oracle的网络服务[/size][/b]
修改oraclehome\NETWORK\ADMIN目录下listener.ora文件
打开listener.ora文件,添加如下一句
这里根据具体情况修改st_shapelib.dll的实际路径。
修改以后的listener.ora文件如下
listener.ora文件如下
tnsnames.ora文件如下
如下错误:
[img]http://dl.iteye.com/upload/attachment/330761/21e07d6c-497f-3b3b-8134-8ab640bc414f.jpg[/img]
用plsql查看
[img]http://dl.iteye.com/upload/attachment/330768/a995d4ce-4291-3d1a-a625-b20258751ec8.png[/img]
查看st_shapelib属性
[img]http://dl.iteye.com/upload/attachment/330770/597b4e63-91af-3b75-9804-ef83fad1ea9d.png[/img]
加载dll是否正确
修改oraclehome\NETWORK\ADMIN目录下listener.ora文件
打开listener.ora文件,添加如下一句
(ENVS="EXTPROC_DLLS=C:\Program Files\ArcGIS\ArcSDE\ora10gexe\bin\st_shapelib.dll")
这里根据具体情况修改st_shapelib.dll的实际路径。
修改以后的listener.ora文件如下
# listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1
\network\admin\listener.ora
# Generated by Oracle configuration tools.
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=C:\Program Files\ArcGIS\ArcSDE\ora10gexe\bin\st_shapelib.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = zbc)(PORT = 1521))
)
)
listener.ora文件如下
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(ENVS="EXTPROC_DLLS=C:\Program Files\ArcGIS\ArcSDE\ora10gexe\bin\st_shapelib.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = esriwinxp)(PORT = 1521))
)
)
tnsnames.ora文件如下
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = esriwinxp)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
如下错误:
[img]http://dl.iteye.com/upload/attachment/330761/21e07d6c-497f-3b3b-8134-8ab640bc414f.jpg[/img]
用plsql查看
[img]http://dl.iteye.com/upload/attachment/330768/a995d4ce-4291-3d1a-a625-b20258751ec8.png[/img]
查看st_shapelib属性
[img]http://dl.iteye.com/upload/attachment/330770/597b4e63-91af-3b75-9804-ef83fad1ea9d.png[/img]
加载dll是否正确