entry for sde instance not found in services file解决方法[转]

时间:2024-11-25 14:37:19

当使用如下连接:

ipropertyset ppropertyset;

ppropertyset = new propertysetclass();

ppropertyset.setproperty("server", "服务器名");

ppropertyset.setproperties("database","sde");

ppropertyset.setproperty("instance", " esri_sde");

ppropertyset.setproperty("user", "sde");

ppropertyset.setproperty("password", "sde");

ppropertyset.setproperty("version", "sde.default");

二、解决办法

解决办法1:

在客户机“c:/windows/system32/drivers/etc”文件夹下services文件添加:

esri_sde    5151/tcp    #arcsde for oracle

在客户机“c:/windows/system32/drivers/etc”文件夹下host文件添加:

ip地址  服务器名

解决办法2:

将实例属性设置为:

ppropertyset.setproperty("instance", "port:5151");