Vous êtes sur la page 1sur 9

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

Help Sign In undefined Home Communities Help Blog Forums Videos Forums

Forum

What's New?

Search Forums

Today's Posts FAQ Forum Actions Advanced Search Search All Forums

Forum

ArcGIS

Functions

Geodatabase & ArcSDE

Problem connecting to postgis / postgre query layer - database cleint software issue?

Results 1 to 15 of 15

Thread: Problem connecting to postgis / postgre query layer - database cleint software issue?
Thread Tools Search Thread Display

07-10-2012 09:06 AM

#1

lygismav
Mark Volz Join Date: Aug 2010 Posts: 56 Points: 0 Answers Provided: 0

Problem connecting to postgis / postgre query layer - database cleint software issue?
Hello, I am trying to connect to a query layer and I am receiving the following error "Unable to connect to database server to retrice database list; please verify your server name, user name, and password info and try again. Cannot connect to database because the database client software failed to load. Be sure the database client software is installed and configured correctly" I set up the database connection using the following: platform - PostgreSQL Instance - localhost (my computer name does not work either) Authentication Type - Database

1 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

User name and password - set correctly Database - cannot select (this is where the error appears) I am using postgresql 9.0.5 and postgis 1.5.3. I can connect to the database using other software. Does anyone have any troubleshooting tips? Thanks
Reply With Quote Top Bottom

07-10-2012 09:28 AM

#2

vangelo
Vince Angelo

Join Date: Feb 2010 Posts: 1,729 Points: 320 Answers Provided: 45

Re: Problem connecting to postgis / postgre query layer - database cleint software is
What version of ArcSDE and ArcGIS are you using? PostgreSQL 9.0.5 isn't supported until ArcGIS 10.1 (with PostGIS 1.5.1). -V
Reply With Quote Top Bottom

07-10-2012 09:51 AM

#3

lygismav
Mark Volz Join Date: Aug 2010 Posts: 56 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
vangelo, I am using ArcGIS 10.1. I am not using ArcSDE. I am trying to connect directly to a postgresql / postgis database, which I have done in a workshop using File>Add Data> Add Query Layers.
Reply With Quote Top Bottom

07-10-2012 09:56 AM

#4

vangelo
Vince Angelo

Join Date:

Feb 2010

Re: Problem connecting to postgis / postgre query

2 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

Posts: 1,729 Points: 320 Answers Provided: 45

layer - database cleint software is


Do you have the correct client DLL installed? 32-bit clients require 32-bit libraries. -V
Reply With Quote Top Bottom

07-10-2012 10:06 AM

#5

lygismav
Mark Volz Join Date: Aug 2010 Posts: 56 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
vangelo, how can I download / or verify that I am using the correct dll? Right now I have a 32 bit server and 32 bit client. Eventually we will move the server to 64 bit, with a mixture of 32 and 64 bit clients. I should also ask what is the current supported version of postgres / postgis. Is it postgres 9.0.5 and postgis 1.5.1, or is it 9.0.x and postgis 1.5.x. In otherwords can I install postgresql 9.0.8 and postgis 1.5.4?
Reply With Quote Top Bottom

07-10-2012 10:44 AM

#6

vangelo
Vince Angelo

Join Date: Feb 2010 Posts: 1,729 Points: 320 Answers Provided: 45

Re: Problem connecting to postgis / postgre query layer - database cleint software is
The database server application wordsize doesn't matter -- only the client does. Esri ships client ibraries in the install media -- use them. The supported versions are 9.0.5 / 1.5.1. PostgreSQL has a history of making non-trivial changes in minor patches, so it's never safe to assume .x support even if .+1 or .+2 works. -V
Reply With Quote Top Bottom

07-10-2012 11:08 AM

#7

3 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

lygismav
Mark Volz Join Date: Aug 2010 Posts: 56 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
where are the dlls stored on the ArcGIS 10.1 disc for the POSTGRESQL / PostGIS query layers, and where should I place them?
Reply With Quote Top Bottom

07-10-2012 11:47 AM

#8

vangelo
Vince Angelo

Join Date: Feb 2010 Posts: 1,729 Points: 320 Answers Provided: 45

Re: Problem connecting to postgis / postgre query layer - database cleint software is
It's been nearly a decade since I last saw a media kit, so I have no idea what your procedure would be. I know the files are in the download directory somewhere, but the best way to determine where is to communicate with Customer Service. -V
Reply With Quote Top Bottom

07-24-2012 05:32 AM

#9

speedell
steve peedell Join Date: Feb 2010 Posts: 14 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
Not sure if the necessary postgres client dll's are on the install media - I don't get to see DVD's any more these days, but what is strange is that these are not automatically deployed as part of the install process. At 10.1 you DO have to manually copy the dll's to your bin directory - surely this could be an install option (ask user which db they are using, and deploy the relevant dll's)? Anyway, the workaround is to find the dll's listed below. If you are registered properly with the ESRI customer care portal you can apparently get them there, we got them from our international distributor....

4 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

Windows 32-bit PostgreSQL 9.0.5 Client Libraries: Libpq.dll Libeay32.dll Libintl-8.dll Ssleay32.dll Place these files in the bin folders of your Windows 32-bit Esri client application. I will no doubt post some further examples of our adventures in PostGIS/ArcGIS integration, but for now am happy to report that with the above fix we are able to use our PostGIS tables.........
Reply With Quote Top Bottom

07-24-2012 07:43 AM

#10

vangelo
Vince Angelo

Join Date: Feb 2010 Posts: 1,729 Points: 320 Answers Provided: 45

Re: Problem connecting to postgis / postgre query layer - database cleint software is
Normally, the client libraries are part of the server install, so there's no need for Esri to distribute or install client libraries (which do increase the install footprint, after all). The problem comes when you start mix-n-match with the application word size (client and server) without ArcSDE to do the client middle-man. There's a number of ways to accomplish the net result, but copying the DLLs will serve. -V
Reply With Quote Top Bottom

01-10-2013 07:12 AM

#11

fleith
Fiona Hatfield Join Date: Mar 2010 Posts: 4 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
Hi, This is exactly the problem I am having. my environment: Windows Server 2008 R2 (64bit) PostgreSQL 9.2 + PostGIS 2.0 (64bit) ArcGIS Desktop 10.1 sp1 (32bit)

5 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

I am trying to connect via ArcCatalog to take a look at my loaded data. I get the same error from ArcCatalog when I try to set up a connection. I am a bit confused by the work around. I have located the 4 libraries in C:\Program Files\PostgreSQL\9.2\bin I have copied these to my ArcGIS Desktop (32bit) bin directory E:\Program Files (x86)\ArcGIS \Desktop10.1\bin I still get the error, am I missing a critical step? Thanks, Fiona
Reply With Quote Top Bottom

01-10-2013 09:10 AM

#12

fleith
Fiona Hatfield Join Date: Mar 2010 Posts: 4 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
OOps, I noticed that 9.2 was not supported (yet), so I have reconfigured my environment as follows: PostgreSQL 9.1.3 (64bit) + Post GIS 2.0 (64bit) Connecting using ArcGIS desktop 10.1 sp1 (32bit) I have recopied the .dlls from the new postgresql install directory. I am still getting the same error. any insight is greatly appreciated, Fiona
Reply With Quote Top Bottom

01-10-2013 09:50 AM

#13

mboeringa2010
Marco Boeringa Join Date: Aug 2010 Posts: 138 Points: 68 Answers Provided: 9

Re: Problem connecting to postgis / postgre query layer - database cleint software is
Originally Posted by fleith

OOps, I noticed that 9.2 was not supported (yet),

6 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

so I have reconfigured my environment as follows: PostgreSQL 9.1.3 (64bit) + Post GIS 2.0 (64bit) Connecting using ArcGIS desktop 10.1 sp1 (32bit) I have recopied the .dlls from the new postgresql install directory. I am still getting the same error. any insight is greatly appreciated, Fiona

Fiona, I think Vince already answered your question:


Originally Posted by vangelo

The supported versions are 9.0.5 / 1.5.1. PostgreSQL has a history of making non-trivial changes in minor patches, so it's never safe to assume .x support even if .+1 or .+2 works. -V

Seems ESRI currently only really "supports" 9.0.5 / 1.5.1 as highest versions. Using any other version, especially taking into account Vince's further remarks about "non-trivial" changes in new minor releases, is a potential gamble.
Reply With Quote Top Bottom

01-10-2013 10:13 AM

#14

fleith
Fiona Hatfield Join Date: Mar 2010 Posts: 4 Points: 0 Answers Provided: 0

Re: Problem connecting to postgis / postgre query layer - database cleint software is
I feel so foolish, I did have the wrong versions of PostgreSQL installed... Everything is working now, (just as the post suggested)! the great news is I found some super resources as I tried to troubleshoot. If anyone is seeing similar difficulties you should check out: http://proceedings.esri.com/library/...hops/tw_36.pdf Thanks, Fiona

7 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

Reply With Quote

Top

Bottom

01-10-2013 02:29 PM

#15

mboeringa2010
Marco Boeringa Join Date: Aug 2010 Posts: 138 Points: 68 Answers Provided: 9

Re: Problem connecting to postgis / postgre query layer - database cleint software is
Originally Posted by fleith

the great news is I found some super resources as I tried to troubleshoot. If anyone is seeing similar difficulties you should check out: http://proceedings.esri.com/library/...hops /tw_36.pdf

For some reason, Adobe Reader refuses to open this link in Firefox and fails with an error. It can be opened in Internet Explorer.
Reply With Quote Top Bottom

Quick Navigation

Geodatabase & ArcSDE

Top

Previous Thread | Next Thread

8 of 9

03-Feb-13 11:41 AM

Problem connecting to postgis / postgre query layer - database cleint soft...

http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

9 of 9

03-Feb-13 11:41 AM

Vous aimerez peut-être aussi