Arccatalog连接到postgresql失败问题

来源:互联网 发布:python retry 编辑:程序博客网 时间:2024/05/01 14:37

最近刚开始研究开源库postgresql,结合arcgis数据管理入库,遇到各种问题,

包括连接,创建空间库,数据的导入导出错误。


问题1:

连接到数据库失败。
基础 DBMS 错误[could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
SQL state: ]


问题2:

执行: EnableEnterpriseGeodatabase 数据库连接\postgresql.sde C:\setup\GIS\arcgisproduct.ecp
必须以地理数据库管理员用户身份启用地理数据库。
执行(EnableEnterpriseGeodatabase)失败。


问题原因:1:postgresql服务未启动,启动服务后,正常连接。

                    2:需要使用地理数据库管理员sde用户才能成功登陆。