changedatastoremode
此 ArcGIS Data Store 实用程序与关系存储、对象存储和时空大数据存储一起使用。
changedatastoremode 实用程序可用于将关系存储、时空大数据存储或对象存储置于只读模式,同时对数据存储执行维护。 例如,如果您需要执行会导致数据存储重启的维护任务(例如,将备份位置从一个驱动器更改为另一个驱动器或更改数据库属性),则您可以将关系存储置于只读模式,以便数据存储重启时,无任何用户会处于发布或编辑数据的过程中。
changedatastoremode 实用程序也可用于维护完成后将数据存储恢复为读写模式。
您必须在主关系存储计算机上而非备用计算机上运行 changedatastoremode 实用程序。 必须在时空大数据存储集群的协调节点上运行 changedatastoremode 实用程序。 对于对象存储集群,可以在任意计算机上运行 changedatastoremode 实用程序。
当关系存储、时空大数据存储或对象存储将用完磁盘空间时,ArcGIS Data Store 会将其置于只读模式,以避免数据损坏。 在为计算机添加足够的磁盘空间后,可以使用 changedatastoremode 实用程序将数据存储恢复为读写模式,使其正常运行。
注:
如果 ArcGIS Data Store 因磁盘空间不足而将数据存储置于只读模式,则系统也会禁用自动备份以避免占用更多磁盘空间。 因此,必须在将数据存储转换回读写模式后使用 updatebackupschedule 实用程序重置自动备份计划。
语法
changedatastoremode {readonly | readwrite} [--prompt {yes | no}] --store {relational | spatiotemporal | object}
示例
在此示例中,关系存储设置为只读模式,意味着客户端无法执行某些活动,例如将托管要素图层发布到 ArcGIS Enterprise 或通过托管要素图层编辑数据。 可以使用 --prompt 选项隐藏确认提示。
./changedatastoremode.sh readonly --store relational --prompt no
changedatastoremode readonly --store relational --prompt no
要在为集群计算机添加磁盘空间后将时空大数据存储设置为读写模式,请指定 readwrite 选项并使用 --store 选项指定 spatiotemporal,如以下示例所示:
./changedatastoremode.sh readwrite --prompt no --store spatiotemporal
changedatastoremode readwrite --prompt no --store spatiotemporal