<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ERROR: Create Enterprise Geodatabase for PostgreSQL 9.1 on Linux Server in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604320#M34052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that several users have similar issue and post it before. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was really looking for the answer but none of them work for me. Can someone please give me some advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a dialog message on ArcToolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Executing: CreateEnterpriseGeodatabase PostgreSQL xxx.xxx.com arcgisdb DATABASE_AUTH postgres ***** SDE_SCHEMA sde ***** # "C:\Program Files (x86)\ESRI\License10.1\sysgen\keycodes"&lt;BR /&gt;Start Time: Fri Sep 13 15:30:44 2013&lt;BR /&gt;User has privileges required to create database objects.&lt;BR /&gt;Geodatabase admin user already exists.&lt;BR /&gt;Database already exists.&lt;BR /&gt;Validated authorization file.&lt;BR /&gt;User has required privileges for geodatabase setup.&lt;BR /&gt;XML support is enabled for the database instance.&lt;BR /&gt;&lt;SPAN style="color:#ff0000;"&gt;You must copy the latest ST_GEOMETRY and dependent libraries to the PostgreSQL software location. Refer to the ArcGIS help topics for more details.&lt;BR /&gt;&lt;BR /&gt;Connected RDBMS instance is not setup for Esri spatial type configuration.&lt;BR /&gt;Failed to execute (CreateEnterpriseGeodatabase)&lt;/SPAN&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my current environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Client/ArcGIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop 10.1 Advanced on Win2008 R2 (64bit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Server 10.1 for Windows and SQL Server are installed on the same machine, but I'm transferring all data to Linux server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Linux Server: 64-bit CentOS5 (Red hat base)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Server 10.1 Advanced for Linux&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PostgreSQL 9.1.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that since our linux server is located different place, pg_hda.conf is already edited. I can see databases (Postgresql on Linux) via pgAdminIII (on Windows).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by using pg_config, I made sure the &lt;/SPAN&gt;&lt;STRONG&gt;PKGLIBDIR = /usr/lib/postgresql&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also set up &lt;/SPAN&gt;&lt;STRONG&gt;$SDEHOME&lt;/STRONG&gt;&lt;SPAN&gt; = /home/xxx/arcgis/server&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;$PG_HOME&lt;/STRONG&gt;&lt;SPAN&gt; = /usr/pgsql-9.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, &lt;/SPAN&gt;&lt;STRONG&gt;$LD_LIBRARY_PATH&lt;/STRONG&gt;&lt;SPAN&gt; = /usr/lib/postgresql:/usr/pgsql-9.1/lib:/home/xxx/arcgis/server/lib:/usr/lib64/postgresql/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Just in case, I added /usr/lib64/postgresql as well)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After this, I copy st_geometry.so and post it to /usr/lib/postgresql (see attached)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also save it to /usr/pgsql-9.1/lib and /usr/lib64/postgresql just in case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I copied and pasted by root user and set the access permission 755.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I even restarted postgresql.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tested st_geometry.so from both ArcGIS Desktop machine and ArcGIS Server for Linux&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\DatabaseSupport\PostgreSQL\9.1\Linux64\st_geometry.so &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/home/xxx/arcgis/server/DatabaseSupport/PostgreSQL/9.1/Linux64/st_geometry.so&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What else should I try to figure out? Can someone give me some advice?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2013 20:27:19 GMT</pubDate>
    <dc:creator>ShinKobara1</dc:creator>
    <dc:date>2013-09-13T20:27:19Z</dc:date>
    <item>
      <title>ERROR: Create Enterprise Geodatabase for PostgreSQL 9.1 on Linux Server</title>
      <link>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604320#M34052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that several users have similar issue and post it before. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was really looking for the answer but none of them work for me. Can someone please give me some advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a dialog message on ArcToolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Executing: CreateEnterpriseGeodatabase PostgreSQL xxx.xxx.com arcgisdb DATABASE_AUTH postgres ***** SDE_SCHEMA sde ***** # "C:\Program Files (x86)\ESRI\License10.1\sysgen\keycodes"&lt;BR /&gt;Start Time: Fri Sep 13 15:30:44 2013&lt;BR /&gt;User has privileges required to create database objects.&lt;BR /&gt;Geodatabase admin user already exists.&lt;BR /&gt;Database already exists.&lt;BR /&gt;Validated authorization file.&lt;BR /&gt;User has required privileges for geodatabase setup.&lt;BR /&gt;XML support is enabled for the database instance.&lt;BR /&gt;&lt;SPAN style="color:#ff0000;"&gt;You must copy the latest ST_GEOMETRY and dependent libraries to the PostgreSQL software location. Refer to the ArcGIS help topics for more details.&lt;BR /&gt;&lt;BR /&gt;Connected RDBMS instance is not setup for Esri spatial type configuration.&lt;BR /&gt;Failed to execute (CreateEnterpriseGeodatabase)&lt;/SPAN&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my current environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Client/ArcGIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop 10.1 Advanced on Win2008 R2 (64bit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Server 10.1 for Windows and SQL Server are installed on the same machine, but I'm transferring all data to Linux server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Linux Server: 64-bit CentOS5 (Red hat base)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Server 10.1 Advanced for Linux&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PostgreSQL 9.1.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that since our linux server is located different place, pg_hda.conf is already edited. I can see databases (Postgresql on Linux) via pgAdminIII (on Windows).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by using pg_config, I made sure the &lt;/SPAN&gt;&lt;STRONG&gt;PKGLIBDIR = /usr/lib/postgresql&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also set up &lt;/SPAN&gt;&lt;STRONG&gt;$SDEHOME&lt;/STRONG&gt;&lt;SPAN&gt; = /home/xxx/arcgis/server&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;$PG_HOME&lt;/STRONG&gt;&lt;SPAN&gt; = /usr/pgsql-9.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, &lt;/SPAN&gt;&lt;STRONG&gt;$LD_LIBRARY_PATH&lt;/STRONG&gt;&lt;SPAN&gt; = /usr/lib/postgresql:/usr/pgsql-9.1/lib:/home/xxx/arcgis/server/lib:/usr/lib64/postgresql/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Just in case, I added /usr/lib64/postgresql as well)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After this, I copy st_geometry.so and post it to /usr/lib/postgresql (see attached)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also save it to /usr/pgsql-9.1/lib and /usr/lib64/postgresql just in case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I copied and pasted by root user and set the access permission 755.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I even restarted postgresql.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tested st_geometry.so from both ArcGIS Desktop machine and ArcGIS Server for Linux&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\DatabaseSupport\PostgreSQL\9.1\Linux64\st_geometry.so &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/home/xxx/arcgis/server/DatabaseSupport/PostgreSQL/9.1/Linux64/st_geometry.so&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What else should I try to figure out? Can someone give me some advice?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604320#M34052</guid>
      <dc:creator>ShinKobara1</dc:creator>
      <dc:date>2013-09-13T20:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Create Enterprise Geodatabase for PostgreSQL 9.1 on Linux Server</title>
      <link>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604321#M34053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm a firm believer that application software should be installed as application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;software, not as part of the OS.&amp;nbsp; If you &lt;/SPAN&gt;&lt;A href="http://www.enterprisedb.com/products-services-training/pgdownload"&gt;download&lt;/A&gt;&lt;SPAN&gt; and extract the latest stable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;binary release of PostgreSQL, you wouldn't be subject to strange operating&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;system behavior (or subject to unplanned database upgrades).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's quite possible that your PG install is 32-bit; using 'file' on one of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;other DLLs and/or the running version of 'postgres' would tell for sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I strongly recommend applying 10.1 SP1 *before* doing an initial geodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;install.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 23:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604321#M34053</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-09-13T23:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Create Enterprise Geodatabase for PostgreSQL 9.1 on Linux Server</title>
      <link>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604322#M34054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince, thank you for your comment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server for Linux is actually 10.1 SP1. Sorry, I should have written it accurately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I've checked postgresql version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is said: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;psql (9.1.5, server 9.1.9)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# select version();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PostgreSQL 9.1.9 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54), 64-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 10.1 SP1 was installed and then PostgreSQL 9.1 was installed. But 9.0 was running so our colleague switched to 9.1 as a main database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop is also 10.1 SP1 by the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;re-installing postgresql-9.1 is only option?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 13:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604322#M34054</guid>
      <dc:creator>ShinKobara1</dc:creator>
      <dc:date>2013-09-16T13:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Create Enterprise Geodatabase for PostgreSQL 9.1 on Linux Server</title>
      <link>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604323#M34055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You appear to be using two different sets of binaries ("psql (9.1.5, server 9.1.9)") with a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lower client accessing a higher server.&amp;nbsp; The client should always be at or higher than the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try explicitly setting the PATH so that the 9.1.9 binaries come first before staring the PG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;service ('pg_ctl start').&amp;nbsp; ArcGIS isn't going to raise the "&lt;/SPAN&gt;&lt;SPAN style="color:#ff0000;"&gt;You must copy the latest&lt;BR /&gt; ST_GEOMETRY.."&lt;/SPAN&gt;&lt;SPAN&gt; error if the DLL is installed in the correct directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 14:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604323#M34055</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-09-16T14:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Create Enterprise Geodatabase for PostgreSQL 9.1 on Linux Server</title>
      <link>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604324#M34056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We've upgraded a client version same as server (9.1.9) and set PATH as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bash-3.2$ echo $PATH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/usr/java/jdk1.7.0_02/bin:/usr/kerberos/sbin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin://usr/java/jdk1.7.0_02/bin:/usr/pgsql-9.1/bin:/home/ags/arcgis/server/bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bash-3.2$ echo $LD_LIBRARY_PATH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:/usr/lib/postgresql:/usr/pgsql-9.1/lib:/home/ags/arcgis/server/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System admin and I checked all pg_config folders and realized that sysconfdir=/usr/etc/postgresql doesn't exist. It's located at var/lib/pgsql/9.1/data. So the error might be due to our configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but thank you for your suggestion. I appreciate it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-create-enterprise-geodatabase-for-postgresql/m-p/604324#M34056</guid>
      <dc:creator>ShinKobara1</dc:creator>
      <dc:date>2013-09-18T16:18:19Z</dc:date>
    </item>
  </channel>
</rss>

