changedatastoremode
This ArcGIS Data Store utility is used with the relationalm, object, and spatiotemporal big data store.
The changedatastoremode utility allows you to place a relational store, spatiotemporal big data store, or object store in read-only mode while you perform maintenance on the data store. For example, if you need to perform a maintenance task that will cause the data store to restart, such as changing the backup location from one drive to another drive or changing database properties, you can place the relational store in read-only mode so no users are in the process of publishing or editing data when the data store restarts.
The changedatastoremode utility is also used to place the data store back in a read-write mode after you finish maintenance
You must run the changedatastoremode utility on the primary relational store machine, not the standby machine. You must run the changedatastoremode utility on the coordinator node in the spatiotemporal big data store cluster. You can run the changedatastoremode utility on any machine in the object store cluster.
When the relational store, spatiotemporal big data store, or object store gets close to running out of disk space, ArcGIS Data Store places it in read-only mode to avoid data corruption. You can use the changedatastoremode utility to return the data store to read-write mode after you have added sufficient disk space to the machines to allow the data store to function properly in read-write mode.
Note:
If ArcGIS Data Store places the data store in read-only mode due to insufficient disk space, automatic backups are also disabled to avoid filling the disk further. Therefore, you must reset your automatic backup schedule using the updatebackupschedule utility after you place the data store back in read-write mode.
Syntax
changedatastoremode {readonly | readwrite} [--prompt {yes | no}] --store {relational | spatiotemporal | object}
Examples
In this example, the relational store is placed in read-only mode, meaning clients cannot perform such activities as publishing hosted feature layers to ArcGIS Enterprise or editing data through a hosted feature layer. The --prompt option is provided to suppress the confirmation prompt.
./changedatastoremode.sh readonly --store relational --prompt no
changedatastoremode readonly --store relational --prompt no
To place a spatiotemporal big data store in read-write mode after you add disk space to the machines in the cluster, specify the readwrite option and specify spatiotemporal with the --store option as shown in the following example:
./changedatastoremode.sh readwrite --prompt no --store spatiotemporal
changedatastoremode readwrite --prompt no --store spatiotemporal