指定されたトランザクション ログ ファイルに空き領域がありません。
指定されたトランザクション ログ ファイルに空き領域がありません。
領域を増やすには、関連するデータベースのトランザクション ログ ファイルが格納されている任意のディスク ドライブでディスク領域を解放できます。ディスク領域を解放すると、復旧システムによってログ ファイルを自動的に拡張できます。または、指定されたデータベースのログ ファイルを追加するか大きくすることによって、領域を増やすこともできます。
ローカル ドライブ、または別のディスク ドライブのディスク領域を解放できます。別のドライブ上のディスク領域を解放するには、次の手順に従います。
空きディスク領域が足りないトランザクション ログ ファイルを別のディスク ドライブに移動します。
sp_detach_db を実行して、データベースをデタッチします。
移動したファイルを指すように sp_attach_db を実行して、データベースをアタッチします。
別の解決方法は、ALTER DATABASE ステートメントの ADD FILE 句を使用して、指定されたデータベースにログ ファイルを追加することです。または、ALTER DATABASE ステートメントの MODIFY FILE 句を使用し、SIZE と MAXSIZE 構文を指定して、ログ ファイルを大きくすることもできます。ログ ファイルを追加すると、既存のログを拡張できます。
名前 | 説明 | 既定値 |
有効 | ワークフローを有効または無効にします。 | はい |
優先度 | アラートの優先順位を定義します。 | 1 |
重要度 | アラートの重大度を定義します。 | 2 |
Target | Microsoft.SQLServer.2016.DBEngine | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 9002 | ||
Event Source | $Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application | ||
Comment | Mom2016ID='{AE514F41-328C-4346-8F73-79EFD38BEFDE}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.Windows.EventProvider | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2016.Database_log_file_is_full._Back_up_the_transaction_log_for_the_database_to_free_up_some_log_space_1_5_Rule" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2016ID='{AE514F41-328C-4346-8F73-79EFD38BEFDE}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>9002</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2016.Database_log_file_is_full._Back_up_the_transaction_log_for_the_database_to_free_up_some_log_space_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>