Optimoi indeksit

Microsoft.SystemCenter.SqlJobs.OptimizeIndexes (Rule)

Knowledge Base article:

Yhteenveto

Tätä sääntöä käytetään sisäisesti tietokannan ylläpitotehtävien ja -töiden suorittamiseen. Tätä sääntöä ei tule korvata, sillä säännön korvaaminen vaikuttaa negatiivisesti toimintatietokannan yleiseen tilaan, toimivuuteen ja yhtenäisyyteen.

Syyt

Tämä kohta ei sovellu tämän tyyppiseen sääntöön.

Ratkaisut

Tämän tyyppiseen sääntöön ei ole olemassa käyttäjän toimia.

Element properties:

TargetMicrosoft.SystemCenter.AllManagementServersPool
CategoryMaintenance
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.Scheduler Default
WA WriteAction Microsoft.SystemCenter.SqlJobExecuter Default

Source Code:

<Rule ID="Microsoft.SystemCenter.SqlJobs.OptimizeIndexes" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.AllManagementServersPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Maintenance</Category>
<DataSources>
<DataSource ID="DS" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Days">1</Interval>
<SyncTime>02:30</SyncTime>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.SystemCenter.SqlJobExecuter">
<JobName>p_OptimizeIndexes</JobName>
</WriteAction>
</WriteActions>
</Rule>