Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

9
Forum ArcGIS Functions Geodatabase & ArcSDE Problem connecting to postgis / postgre query layer - database cleint software issue? Thread: Problem connecting to postgis / postgre query layer - database cleint software issue? Help Sign In undefined Home Communities Help Blog Forums Videos Forums What's New? Today's Posts FAQ Forum Actions Advanced Search Search Forums Search All Forums Results 1 to 15 of 15 Thread Tools Search Thread Display 07-10-2012 09:06 AM 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 Join Date: Posts: Points: Answers Provided: Aug 2010 56 0 0 lygismav Mark Volz Forum Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po... 1 of 9 03-Feb-13 11:41 AM

description

Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

Transcript of Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

Page 1: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

Forum ArcGIS Functions Geodatabase & ArcSDE

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

Thread: Problem connecting to postgis / postgre query layer - database cleint softwareissue?

HelpSign InundefinedHomeCommunitiesHelpBlogForumsVideos Forums

What's New?

Today's Posts FAQ Forum Actions

Advanced Search

Search Forums

Search All Forums

Results 1 to 15 of 15

Thread Tools Search Thread Display

07-10-2012 09:06 AM

0

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

Hello,

I am trying to connect to a query layer and I amreceiving the following error "Unable to connect todatabase server to retrice database list; please verifyyour server name, user name, and password info and tryagain. Cannot connect to database because the databaseclient software failed to load. Be sure the database clientsoftware is installed and configured correctly"

I set up the database connection using the following:platform - PostgreSQLInstance - localhost (my computer name does not workeither)Authentication Type - Database

#1

Join Date:Posts:Points:Answers Provided:

Aug 2010560

0

lygismav

Mark Volz

Forum

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

1 of 9 03-Feb-13 11:41 AM

Page 2: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

User name and password - set correctlyDatabase - cannot select (this is where the errorappears)

I am using postgresql 9.0.5 and postgis 1.5.3. I canconnect to the database using other software. Doesanyone have any troubleshooting tips?

Thanks

Reply With Quote Top Bottom

07-10-2012 09:28 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

What version of ArcSDE and ArcGIS are you using?PostgreSQL 9.0.5 isn't supporteduntil ArcGIS 10.1 (with PostGIS 1.5.1).

- V

#2

Join Date:Posts:Points:Answers Provided:

Feb 20101,729320

45

vangelo

Vince Angelo

Reply With Quote Top Bottom

07-10-2012 09:51 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

vangelo,

I am using ArcGIS 10.1. I am not using ArcSDE. I amtrying to connect directly to a postgresql / postgisdatabase, which I have done in a workshop usingFile>Add Data> Add Query Layers.

#3

Join Date:Posts:Points:Answers Provided:

Aug 2010560

0

lygismav

Mark Volz

Reply With Quote Top Bottom

07-10-2012 09:56 AM

0

Re: Problem connecting to postgis / postgre query

#4

Join Date: Feb 2010

vangelo

Vince Angelo

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

2 of 9 03-Feb-13 11:41 AM

Page 3: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

layer - database cleint software is

Do you have the correct client DLL installed? 32-bitclients require 32-bit libraries.

- V

Posts:Points:Answers Provided:

1,729320

45

Reply With Quote Top Bottom

07-10-2012 10:06 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

vangelo,

how can I download / or verify that I am using thecorrect dll? Right now I have a 32 bit server and 32 bitclient. Eventually we will move the server to 64 bit, witha mixture of 32 and 64 bit clients.

I should also ask what is the current supported version ofpostgres / 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 installpostgresql 9.0.8 and postgis 1.5.4?

#5

Join Date:Posts:Points:Answers Provided:

Aug 2010560

0

lygismav

Mark Volz

Reply With Quote Top Bottom

07-10-2012 10:44 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

The database server application wordsize doesn't matter-- only the client does. Esri shipsclient ibraries in the install media -- use them.

The supported versions are 9.0.5 / 1.5.1. PostgreSQL hasa history of making non-trivialchanges in minor patches, so it's never safe to assume .xsupport even if .+1 or .+2 works.

- V

#6

Join Date:Posts:Points:Answers Provided:

Feb 20101,729320

45

vangelo

Vince Angelo

Reply With Quote Top Bottom

07-10-2012 11:08 AM #7

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

3 of 9 03-Feb-13 11:41 AM

Page 4: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

where are the dlls stored on the ArcGIS 10.1 disc for thePOSTGRESQL / PostGIS query layers, and where should Iplace them?

Join Date:Posts:Points:Answers Provided:

Aug 2010560

0

lygismav

Mark Volz

Reply With Quote Top Bottom

07-10-2012 11:47 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

It's been nearly a decade since I last saw a media kit, soI have no idea what yourprocedure would be. I know the files are in the downloaddirectory somewhere, butthe best way to determine where is to communicate withCustomer Service.

- V

#8

Join Date:Posts:Points:Answers Provided:

Feb 20101,729320

45

vangelo

Vince Angelo

Reply With Quote Top Bottom

07-24-2012 05:32 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

Not sure if the necessary postgres client dll's are on theinstall media - I don't get to see DVD's any more thesedays, but what is strange is that these are notautomatically deployed as part of the install process. At10.1 you DO have to manually copy the dll's to your bindirectory - surely this could be an install option (ask userwhich 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 customercare portal you can apparently get them there, we gotthem from our international distributor....

#9

Join Date:Posts:Points:Answers Provided:

Feb 2010140

0

speedell

steve peedell

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

4 of 9 03-Feb-13 11:41 AM

Page 5: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

Windows 32-bit PostgreSQL 9.0.5 Client Libraries:Libpq.dllLibeay32.dllLibintl-8.dllSsleay32.dll

Place these files in the bin folders of your Windows 32-bitEsri client application.

I will no doubt post some further examples of ouradventures in PostGIS/ArcGIS integration, but for nowam happy to report that with the above fix we are able touse our PostGIS tables.........

Reply With Quote Top Bottom

07-24-2012 07:43 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

Normally, the client libraries are part of the serverinstall, so there's no need for Esri todistribute or install client libraries (which do increase theinstall footprint, after all).

The problem comes when you start mix-n-match with theapplication word size(client and server) without ArcSDE to do the clientmiddle-man. There's a numberof ways to accomplish the net result, but copying theDLLs will serve.

- V

#10

Join Date:Posts:Points:Answers Provided:

Feb 20101,729320

45

vangelo

Vince Angelo

Reply With Quote Top Bottom

01-10-2013 07:12 AM

0

Re: Problem connecting to postgis / postgre querylayer - 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)

#11

Join Date:Posts:Points:Answers Provided:

Mar 201040

0

fleith

Fiona Hatfield

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

5 of 9 03-Feb-13 11:41 AM

Page 6: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

I am trying to connect via ArcCatalog to take a look atmy loaded data.I get the same error from ArcCatalog when I try to set upa connection.

I am a bit confused by the work around.I have located the 4 libraries in C:\ProgramFiles\PostgreSQL\9.2\binI have copied these to my ArcGIS Desktop (32bit) bindirectory 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

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

OOps, I noticed that 9.2 was not supported (yet), so Ihave 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 installdirectory.I am still getting the same error.

any insight is greatly appreciated,Fiona

#12

Join Date:Posts:Points:Answers Provided:

Mar 201040

0

fleith

Fiona Hatfield

Reply With Quote Top Bottom

01-10-2013 09:50 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

#13

Join Date:Posts:Points:Answers Provided:

Aug 201013868

9

mboeringa2010

Marco Boeringa

Originally Posted by fleith

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

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

6 of 9 03-Feb-13 11:41 AM

Page 7: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

Fiona, I think Vince already answered your question:

Seems ESRI currently only really "supports" 9.0.5 / 1.5.1as highest versions. Using any other version, especiallytaking into account Vince's further remarks about"non-trivial" changes in new minor releases, is apotential gamble.

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 postgresqlinstall directory.I am still getting the same error.

any insight is greatly appreciated,Fiona

Originally Posted by vangelo

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

- V

Reply With Quote Top Bottom

01-10-2013 10:13 AM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

I feel so foolish, I did have the wrong versions ofPostgreSQL installed...Everything is working now, (just as the post suggested)!

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

Thanks,Fiona

#14

Join Date:Posts:Points:Answers Provided:

Mar 201040

0

fleith

Fiona Hatfield

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

7 of 9 03-Feb-13 11:41 AM

Page 8: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

« Previous Thread | Next Thread »

Reply With Quote Top Bottom

01-10-2013 02:29 PM

0

Re: Problem connecting to postgis / postgre querylayer - database cleint software is

For some reason, Adobe Reader refuses to open this linkin Firefox and fails with an error. It can be opened inInternet Explorer.

#15

Join Date:Posts:Points:Answers Provided:

Aug 201013868

9

mboeringa2010

Marco Boeringa

Originally Posted by fleith

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

Reply With Quote Top Bottom

Quick Navigation Geodatabase & ArcSDE Top

Problem connecting to postgis / postgre query layer - database cleint soft... http://forums.arcgis.com/threads/61937-Problem-connecting-to-postgis-po...

8 of 9 03-Feb-13 11:41 AM

Page 9: Problem Connecting to Postgis _ Postgre Query Layer - Database Cleint Software Issue

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