天天看點

ArcGIS Data Store的隻讀事務

今天把ArcGIS Data Store玩壞了,提示不能在一個隻讀事務中進行執行删除操作,下面是ArcMap中要删除ArcGIS Data Store中一個要素類的效果。

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>      
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      

繼續閱讀