zoukankan      html  css  js  c++  java
  • entry for sde instance not found in services file解决方法

     

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

    一、问题描述:

    当使用如下连接:

    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");         

    连接服务器sdesde提示如下错误:

    entry for sde instance not found in services file;

     

    二、解决办法

    解决办法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");

     

     

  • 相关阅读:
    cookie的过期时间
    Cookie的使用及位置
    用存储过程进行的查询拼接
    验证码的使用
    SQLHelper
    App_code的引用
    GridView使用
    javascript、ajax验证
    数据库小结(三)
    数据库操作(七)存储过程
  • 原文地址:https://www.cnblogs.com/3echo/p/1555979.html
Copyright © 2011-2022 走看看