標籤:
結合網上幾位的文章,今天終於成功串連。下面把具體步驟做一總結,方便日後尋找。
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位的用戶端程式即:
- Libpq.dll
- Libeay32.dll
- Libintl.dll
- Ssleay32.dll
拷貝到server的bin目錄下
另外由於desktop是32位程式,需要postgresql 32位的用戶端,將以下檔案複製到desktop的bin目錄下
- Libpq.dll
- Libiconv-2.dll
- Libeay32.dll
- Libintl-8.dll
- Ssleay32.dll
- 參考文章:http://blog.sina.com.cn/s/blog_54b09dc90101f3vm.html
- 參考文章:http://blog.csdn.net/arcgis_all/article/details/8202709
arcgis10.2串連postgresql