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

3394
1
03-11-2015 06:34 AM
Highlighted
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

Reply
0 Kudos
1 Reply
Highlighted
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.
Reply
0 Kudos