Select to view content in your preferred language

Re-register ArcGIS Relational Data Store 10.9.1

1412
5
11-21-2024 03:04 PM
Becca_
by
Emerging Contributor

Is there absolutely any way to recover/re-register the ArcGIS Data Store relational database and/or its data that was unregistered through ArcGIS Server Manager? I tried reconfiguring it through the configuration wizard but the relational database store type was already checked and greyed out. I’m currently unsure if a snapshot is available. I do see a couple of backups on our data store machine specifically but don’t want to risk causing further damage to our hosted data. This seems like it should be a really simple fix, but can find nothing on the internet to help. 

0 Kudos
5 Replies
BillFox
MVP Notable Contributor
0 Kudos
Becca_
by
Emerging Contributor

Thanks for the response! I did see that online when I was researching. I have a ticket in with Esri Support right now which has not been very helpful or I wouldn’t have posted here, but I asked him about that exact piece of the article and his response was this “The command line for registerdatastore and configuredatastore is a data store administrator tool from the datastore tools directory to configure a new datastore. The server machine is currently configured with existing relational data stores.” He is trying to tell me that the only way to “fix” this is if I have a snapshot of the entire environment to backup to, which I found hard to believe so I posted here. I’m a little hesitant to try it since I don’t want to cause more problems. We do have a Dev environment but I would have to “break” that one too to test it. 

0 Kudos
TimoT
by
Frequent Contributor

It's good practice to create a backup before making changes, particularly in a production environment. If you don't have one, I suggest making a backup of the current state before making further changes.

Typically, unregistering a datastore through Server Manager also unregisters it on the ArcGIS Data Store. Sometimes this may fail if there's a connectivity issue between the Hosting Server and Datastore (or other reasons). In such cases, you can manually run the unregisterdatastore utility on the relational datastore. Note that an unregistered relational datastore doesn't mean data gets wiped; it's simply in a state where the underlying postgres database isn't running.

The registerdatastore and configuredatastore utilities won't create a new database if one already exists. As long as the configuration files at \arcgisdatastore\etc are intact, either of these tools can be used to reconnect the existing relational database to the Hosting Server site.

For the most part, you can think of the registerdatastore and configuredatastore tools as providing your ArcGIS Server access with a database connection file containing credentials and other database details without altering the database itself.

If you encounter errors about an existing datastore during re-registration, you may need to modify the dsconnections.lst file on the Hosting Server. Various technical articles cover this workflow such as:

Let's hope the initial issue was just a momentary blip that caused the ArcGIS relational datastore to fail to unregister itself. Otherwise, it could be a sign of deeper issues to come.

BillFox
MVP Notable Contributor

maybe try the command line tool to force un-register as a windows admin in admin window

0 Kudos
simoxu
by MVP Regular Contributor
MVP Regular Contributor

step 1, run the registerdatastore utility tool

https://enterprise.arcgis.com/en/data-store/latest/install/windows/data-store-utility-reference.htm#...

if that doesn't work, step 2, run the unregisterdatastore utility tool, then run the above registerdatastore tool.

https://enterprise.arcgis.com/en/data-store/latest/install/windows/data-store-utility-reference.htm#...

unregisterdatastore utility tool won't delete the data. I've used it several times.

Step 3, restart the datastore and run describedatastore utility tool

https://enterprise.arcgis.com/en/data-store/latest/install/windows/data-store-utility-reference.htm#...

Check the "Owning system url", make sure it's pointing to your hosting server.

0 Kudos