通常在项目中,如果用到很多服务,比如ArcGIS Server地图服务,oracle服务,SDE服务,每当更新数据的时候,我们可能都要一个个重启相关服务,比较麻烦,所以可以将这些服务写成bat方式,就比较方便了。
例如:
net stop "ArcGIS Server Object Manager"
net stop "ArcGIS Soc Monitor"
net stop "ArcSde Service(esri_sde)"
net stop "OracleServiceORCL"
net stop "OracleDBConsoleorcl"
net stop "OracleOraDb10g_home1iSQL*Plus"
net stop "OracleOraDb10g_home1TNSListener"
net start "OracleDBConsoleorcl"
net start "OracleOraDb10g_home1iSQL*Plus"
net start "OracleOraDb10g_home1TNSListener"
net start "OracleServiceORCL"
net start "ArcSde Service(esri_sde)"
net start "ArcGIS Soc Monitor"
net start "ArcGIS Server Object Manager"