ArcGIS Data Store的只读事务

0
分享 2018-04-04
今天把ArcGIS Data Store玩坏了,提示不能在一个只读事务中进行执行删除操作,下面是ArcMap中要删除ArcGIS Data Store中一个要素类的效果。

查了半天ArcGIS Data Store帮助,发现没有对症的药,只找到了这样的描述:

当我将托管要素图层发布到我的门户时,我收到消息无法创建服务:基础 DBMS 错误 [错误:无法在只读事务中执行 CREATE> TABLE…],且看到消息关系数据存储的可用磁盘空间小于1024 MB。关系数据存储将置于 READONLY> 模式。增加驱动的磁盘空间后,可将关系数据存储置回 READWRITE 模式。
为防止数据丢失,当运行主要关系数据存储的计算机的磁盘空间低于特定大小时,主要关系数据存储将处于只读模式。默认情况下,该大小为 1024 MB,但您可能已使用 changedbproperties 实用程序将其更改为不同的大小。
一旦主关系数据存储计算机处于只读模式,您便无法将托管要素图层发布到使用关系数据存储的门户。要使关系数据存储退出只读模式,请向主数据存储计算机添加磁盘空间,运行 changedatastoremode 实用程序将关系数据存储恢复为读写模式,并运行 updatebackupschedule 实用程序重新建立关系数据存储的自动备份。


突然想,是不是ArcGIS Data Store自动备份啥的,把占用空间搞大了。跑到ArcGIS Data Store的工具文件夹下面,看看都有哪些备份,备份在哪
我的ArcGIS Data Store装在这
C:\Program Files\ArcGIS\DataStore\tools

跑完效果如下:
Microsoft Windows [版本 10.0.15063]
(c) 2017 Microsoft Corporation。保留所有权利。

C:\Program Files\ArcGIS\DataStore\tools>listbackups
Backups in the relational data store: ================================================================================
Backup_Name Status Backup_Time Mode ================================================================================
ds_x1aum1mq-20170427124527803 BackupComplete 2017-04-27 20:45 scheduled Backups located at: 'C:\arcgisdatastore\backup\relational'. Operation completed successfully C:\Program Files\ArcGIS\DataStore\tools>

备份文件核实后也没多大(删除备份可以使用deletebackup+备份名称Backup_Name)。好吧,最近下电影不少,可能是因为电影下多,记得有过一次把盘占满了,刚好放置Data Store(C:\arcgisdatastore)的盘。磁盘也不用增加了,因为电影都挪走了。直接更改ArcGIS Data Store的模式为读写模式。
changedatastoremode的官方介绍如下:

适用于关系数据存储。
changedatastoremode 实用程序可用于将关系数据存储置于只读模式,同时对数据存储执行维护。例如,如果您需要执行会导致数据存储重启的维护任务(例如,将备份位置从一个驱动器更改为另一个驱动器或更改数据库属性),则您可以将关系数据存储置于只读模式,以便数据存储重启时,无任何用户会处于发布或编辑数据的过程中。
changedatastoremode 实用程序也可在完成维护或为主数据存储计算机增加足够磁盘空间后将关系数据存储转换回读写模式,从而使数据存储在读写模式下可以正常工作。
语法:
changedatastoremode readonly|readwrite [–prompt


Microsoft Windows [版本 10.0.15063]
(c) 2017 Microsoft Corporation。保留所有权利。
C:\Program Files\ArcGIS\DataStore\tools>changedatastoremode readwrite
You are attempting to change the relational data store to READWRITE mode.
Do you wish to continue (Yes or No)?y
Now that the relational data store is back in read-write mode, run the backupdatastore command to manually create a full backup of the relational data store. If the data store was set to read-only mode due to low disk space, run the updatebackupschedule command to re-enable automatic backups.
Operation completed successfully
C:\Program Files\ArcGIS\DataStore\tools>


文章来源:http://blog.csdn.net/allenlu2008/article/details/78608526

0 个评论

要回复文章请先登录注册