arcgis10.2连接postgresql

结合网上几位的文章,今天终于成功连接。下面把具体步骤做一总结,方便日后查找。

1,首先,安装postgresql 64位数据库,按照提示下一步,然后再安装postgis.

安装完成后,打开arcmap,找到创建企业及数据库,实例名填写为计算机名或者localhost,如下:

但是 点击确定后提示如下错误:

"You must copy the latest ST_GEOMETRY and dependent libraries to the PostgreSQL software location. Refer to the ArcGIS help topics for more details.

Connected RDBMS instance is not setup for Esri spatial type configuration."

解决办法:根据提示我们把ST_STGEOMETRY.dll放到postgresSql的lib目录下。ST_STGEOMETRY.dll可以从ArcGIS桌 面安装目录下获得,比如我的在C:\Program Files (x86)\ArcGIS\Desktop10.1\DatabaseSupport\PostgreSQL 让后放到C:\Program Files\PostgreSQL\9.0\lib  因为我的是默认安装,大家可以根据自己的安装路径来设置,2

2,向arcgis server中注册数据库时提示“

Cannot connect to  database because the database client software failed to load. Be sure the

database client software is installed and configured correctly”
原因:server是64位的,需要64位的客户端
解决办法:将postgresql64位的客户端程序即:

  1. Libpq.dll
  2. Libeay32.dll
  3. Libintl.dll
  4. Ssleay32.dll

拷贝到server的bin目录下

另外由于desktop是32位程序,需要postgresql 32位的客户端,将以下文件复制到desktop的bin目录下

    1. Libpq.dll
    2. Libiconv-2.dll
    3. Libeay32.dll
    4. Libintl-8.dll
    5. Ssleay32.dll
      1. 参考文章:http://blog.sina.com.cn/s/blog_54b09dc90101f3vm.html
      2. 参考文章:http://blog.csdn.net/arcgis_all/article/details/8202709
时间: 2024-08-01 19:00:44

arcgis10.2连接postgresql的相关文章

kali linux 系列教程之metasploit 连接postgresql可能遇见的问题

kali linux 系列教程之metasploit 连接postgresql可能遇见的问题 文/玄魂   目录 kali linux 下metasploit 连接postgresql可能遇见的问题................................ 1 前言............................................................................................................... 1

metasploit连接postgresql数据库

metasploit 连接postgresql数据库: 1.打开postgresql服务:services postgresql start 2.进入postgresql中,设置默认用户密码.创建新用户.设置新用户权限.创建数据库: sudo -u postgres psql#进入postgresql默认的用户 alter user postgres with password '密码'; #设置默认用户的登录密码 create user '用户名' wiht password '密码' noc

kali linux 系列教程之metasploit 连接postgresql

前言 由于kali linux的版本不同,默认情况下对metasploit和postgresql的配置也不相同,导致我们启动metasploit后连接postgresql数据库会遇到无法连接的情况.下面就三种情况,简单的给大家描述一下,以及遇到问题的解决方案. 理想状态 理想情况下,只需要两步即可. 启动postgresql service postgresql start 启动mestasploit service metasploit start 在metasploit中输入db_statu

视频教程--ASP.NET MVC 使用 Petapoco 微型ORM框架+NpgSql驱动连接 PostgreSQL数据库

说好的给园子里的朋友们录制与<ASP.NET MVC 使用 Petapoco 微型ORM框架+NpgSql驱动连接 PostgreSQL数据库> 这篇博客相对应的视频,由于一个月一来没有时间录制,今天我兑现了给朋友们的承诺.. 本次视频教程的目录为 视频.代码.资料,其中视频有4段,资料是我收集的相关资料.. 视频下载地址:http://pan.baidu.com/s/1c05sysC 希望大家多多支持... 郝喜路 2014年6月8日 11:11:02   http://haoxilu.cn

KaLi 之 Metasploit 连接 postgresql 数据库

KaLi 连接 postgresql 数据库 查看 postgresql 是否启动,没有启动的话,使用 service postgresql start 命令启动.启动后查看是否启动成功,端口是 5432,如图所示: 启动 metasploit 后,查看 postgresql 的连接状态,命令是:db_status,如出现如下,证明没有连接. 查看 postgresql 的账户密码,地址是:  cat /opt/metasploit/apps/pro/ui/config/database.yml

python连接postgresql数据库

python可以通过第三方模块连接postgresql. 比较有名的有psycopg2  和python3-postgresql (一)psycopg2 ubuntu下安装 sudo apt-get install python3-psycopg2 创建一个test.py文件 import psycopg2 # 数据库连接参数 conn = psycopg2.connect(database="test1", user="jm", password="12

ubuntu中pgAdminIII无法连接postgreSQL

小笔记 修改了postgresql.conf文件和pg_hba.conf文件,再进行服务重启/etc/init.d/postgresql restart依然不能连接postgreSQL; 之后重新修改了密码[密码其实没有变],神奇的是竟然连接成功: postgres=# ALTER USER postgres WITH PASSWORD '×××';

BT5之Metasploit[MSF]连接postgresql数据库

1,先查看postgresql的端口,默认是自动开启的,端口7337 .   [email protected]:~# netstat -tnpl |grep postgres tcp        0      0 127.0.0.1:7337          0.0.0.0:*               LISTEN      1100/postgres tcp6       0      0 ::1:7337                :::*                   

rails连接postgresql错误:psql: 致命错误: 用户 &quot;postgres&quot; Ident 认证失败

psql: 致命错误:  用户 "postgres" Ident 认证失败 1安装好postgresql数据库后需要初始化及一些配置rails项目才能连接postgresql 安装好postgresql数据后(yum命令直接安装的) 第一步:初始化数据库 #service postgresql initdb (说明:初始化后默认postgresql数据库有一个默认的用户postgres(密码为空)和一个默认创建的postgres数据库) 第二步:启动数据库 #service postg