<?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 Managing ArcGIS Datastore in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183336#M33348</link>
    <description>&lt;P&gt;I have ArcGIS Datastore and&lt;/P&gt;&lt;P&gt;1. I want to know how to monitor its health. I need to be able to tell when it's running normally or not.&lt;/P&gt;&lt;P&gt;2. I want to know how much data is stored in it and where.&lt;/P&gt;&lt;P&gt;3. I want to be able to manage backups for it.&lt;/P&gt;&lt;P&gt;4. I can see it has its own log files but I don't see how I am supposed to access them.&lt;/P&gt;&lt;P&gt;This snippet of code dumps out information, but that's about all I've come up with so far.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis.gis.server
from config import Config

server = arcgis.gis.server.Server(url = Config.SERVER_URL + '/admin',
    username = Config.PORTAL_USER, password = Config.PORTAL_PASSWORD
)
dsm = arcgis.gis.server.DataStoreManager(url = server.url + "/data", gis = server)
for ds in dsm.list():
    print(ds.properties)
    print()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 22:11:01 GMT</pubDate>
    <dc:creator>Brian_Wilson</dc:creator>
    <dc:date>2022-06-15T22:11:01Z</dc:date>
    <item>
      <title>Managing ArcGIS Datastore</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183336#M33348</link>
      <description>&lt;P&gt;I have ArcGIS Datastore and&lt;/P&gt;&lt;P&gt;1. I want to know how to monitor its health. I need to be able to tell when it's running normally or not.&lt;/P&gt;&lt;P&gt;2. I want to know how much data is stored in it and where.&lt;/P&gt;&lt;P&gt;3. I want to be able to manage backups for it.&lt;/P&gt;&lt;P&gt;4. I can see it has its own log files but I don't see how I am supposed to access them.&lt;/P&gt;&lt;P&gt;This snippet of code dumps out information, but that's about all I've come up with so far.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis.gis.server
from config import Config

server = arcgis.gis.server.Server(url = Config.SERVER_URL + '/admin',
    username = Config.PORTAL_USER, password = Config.PORTAL_PASSWORD
)
dsm = arcgis.gis.server.DataStoreManager(url = server.url + "/data", gis = server)
for ds in dsm.list():
    print(ds.properties)
    print()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 22:11:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183336#M33348</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-15T22:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Managing ArcGIS Datastore</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183456#M33352</link>
      <description>&lt;P&gt;All the ArcGIS Data Store is is a PostgreSQL database. You can connect to it through PGAdmin or any other PostgreSQL tool. From there, you can query the tables, monitor sizes, etc. like any other PostgreSQL database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as backups, you can manage the backups through Esri here using the backupdatastore command:&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/data-store/latest/install/windows/data-store-utility-reference.htm#ESRI_SECTION1_3F745CDA9DCD4B38A8F928CF25B49E78" target="_blank"&gt;https://enterprise.arcgis.com/en/data-store/latest/install/windows/data-store-utility-reference.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183456#M33352</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2022-06-16T09:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Managing ArcGIS Datastore</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183590#M33355</link>
      <description>&lt;P&gt;So far I don't see any docs on what's in that hidden PostgreSQL database. Have you found anything?&lt;/P&gt;&lt;P&gt;There is one inside Portal too. I was under the impression if they don't tell me it's there, I will get my hand slapped if I go there. I had a tech give me the psql commands to delete an undeletable feature service but that's the closest I've gotten.&lt;/P&gt;&lt;P&gt;Thanks for the link on the backups.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183590#M33355</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-16T15:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Managing ArcGIS Datastore</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183604#M33356</link>
      <description>&lt;P&gt;All of your hosted feature services you published are in there as tables/views. So, if you publish a parcel table as a hosted feature service, that will show up as a table in the ArcGIS Data Store in the PostgreSQL database.&lt;/P&gt;&lt;P&gt;With that being said, you can't just go in and create/delete tables (well, you could, but Esri wouldn't recognize them). All of the interactions you do with the tables needs to be through Esri. Although, editing data directly through the DB should be fine, in theory. Doing anything with the data store outside of Esri is still a risk though.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183604#M33356</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2022-06-16T15:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Managing ArcGIS Datastore</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183667#M33357</link>
      <description>&lt;P&gt;I just had a phone conversation with Esri support and confirmed there's no other official documentation outside of&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/what-is-arcgis-data-store.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/portal/latest/administer/windows/what-is-arcgis-data-store.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I needed to store other data, for example PostGIS tables, I'd put that in a separate PostgreSQL instance.&lt;/P&gt;&lt;P&gt;Currently we don't use the scene storage (aka "tile cache") which is just files so I can ignore that part entirely. That means this really just becomes a PostgreSQL project. I don't need to write anything so I can't see any harm in creating a read-only connection to monitor the database status.&lt;/P&gt;&lt;P&gt;The support tech directed me to the "describedatastore" command, for anyone else reading this you'd find that in "C:\Program Files\ArcGIS\Datastore\tools as a .BAT script. Running it will give config information and also a few status items. I don't really want to remote into the machine and parse the file. It works by running a java binary so it's not possible to dump that out and see what it's doing.&lt;/P&gt;&lt;P&gt;The firewall information page&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/data-store/latest/install/windows/ports-used-by-arcgis-data-store.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/data-store/latest/install/windows/ports-used-by-arcgis-data-store.htm&lt;/A&gt;&amp;nbsp;tells me that PostgreSQL is running on port 9876.&lt;/P&gt;&lt;P&gt;The script "listadminusers" gives the usernames and passwords to access the PostgreSQL server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this information I should be able to set up a pgadmin instance to look at the database and to create a 'read-only' account for monitoring it.&lt;/P&gt;&lt;P&gt;I still don't know how I am supposed access logs but I can see the files in C:/arcgisdatastore/logs so I will just read them as files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 17:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1183667#M33357</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-16T17:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Managing ArcGIS Datastore</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1608647#M42084</link>
      <description>&lt;P&gt;If you're referring to the relational datastore that ArcGIS manages for you, this worked for me with PgAdmin.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Remote into server with the Postgres Data Store&lt;/LI&gt;&lt;LI&gt;Open command prompt&lt;/LI&gt;&lt;LI&gt;CD your way into the C:\Program Files\ArcGIS\DataStore\tools folder&lt;/LI&gt;&lt;LI&gt;Run "listmanageduser.bat"&lt;/LI&gt;&lt;LI&gt;Write down the username, password, and database&lt;/LI&gt;&lt;LI&gt;Run "allowconnection.bat &amp;lt;ip of your computer&amp;gt; &amp;lt;username from step 5&amp;gt;"&lt;UL&gt;&lt;LI&gt;example: "C:\Program Files\ArcGIS\DataStore\tools&amp;gt;allowconnection.bat 12345 user"&lt;/LI&gt;&lt;LI&gt;This will alter the pg_hba.conf file. You can open it to see your changes&lt;/LI&gt;&lt;LI&gt;IP is the computer you are using, not the server that has the datastore&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Open PgAdmin --&amp;gt; register new connection&lt;/LI&gt;&lt;LI&gt;Enter username, password, and database from step 5&lt;/LI&gt;&lt;LI&gt;Enter host name of the server with the datastore installed&lt;/LI&gt;&lt;LI&gt;Port is likely 9876&lt;UL&gt;&lt;LI&gt;Run 'netstat -ano' and search for the PID corresponding with the PID of postgres.exe in Task Manger&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Save connection&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Tables will be listed under the Schema --&amp;gt; username --&amp;gt; Tables&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 18:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/managing-arcgis-datastore/m-p/1608647#M42084</guid>
      <dc:creator>cjms</dc:creator>
      <dc:date>2025-04-23T18:44:18Z</dc:date>
    </item>
  </channel>
</rss>

