Need the code or model to auto compress SDE database, rebuild indexes, analyze datasets & reboot once completed

3634
1
03-11-2015 06:34 AM
HunterGwynn
New Contributor


Hello,

I'm using ArcGIS 10.1 & I'm trying to figure out the code or model to auto compress SDE database, rebuild indexes, analyze datasets & reboot once completed. Here's a breakdown:

Compress:
MGSC Prod gis.sde (Wait for process to complete)

Rebuild
Indexes: MGSC Prod gis.sde (Wait for process to complete)

Analyze
Datasets: MGSC Prod gis.sde (Wait for process to complete)

Reboot :PMOBGIS06 (Wait 5 Minutes)

Reboot :PMOBGIS05

(Process complete)

Thanks for you help

Hunter

0 Kudos
1 Reply
George_Thompson
Esri Frequent Contributor

Hi Hunter,

Here is some code that you could use for the ArcPy operations that you are requesting.

Using Python scripting to batch reconcile and post versions

As for rebooting the machine, you may want to consult with the OS manual.

Hope this will get you going in the right direction......

-George

Geodatabase

--- George T.
0 Kudos