Getting and Setting Cleanup Job Parameters

Cleanup Job Parameters は、削除されるエントリを識別するために使用される条件 (それらの年齢と使用頻度) を定義します。これらのパラメータは、getJobPropertysetJobProperty、それぞれ手順を使用して表示および設定できます。

Getting a Cleanup Job Parameter

CALL "SYSADMIN.getJobProperty"(
"jobid" => 2,
"propertyName" => 'CALENDAR_FIELD_VALUE'
) ;;

Setting a Cleanup Job Parameter

CALL "SYSADMIN.setJobProperty"(
"jobid" => 2,
"propertyName" => 'CALENDAR_FIELD_VALUE',
"propertyValue" => '-17'
) ;;

Parameters

どちらのプロシージャも以下のパラメータを取ります:

Parameter

Description

jobid

ID of the job; mandatory

CALENDAR_FIELD_TYPE

Specifies the time measurement unit that is used to determine whether the entry is old enough to be deleted; at the moment, only the DAY_OF_MONTH calendar field type is supported

CALENDAR_FIELD_VALUE

Specifies the value of the time interval that is used to determine whether the entry is old enough to be deleted; default: 14; mandatory for getJobProperty

FREQUENCY

Applicable to optimizations; specifies optimisation usage frequency (optimizations with lower usage frequency are subject to deletion); default: 15

List of Cleanup Jobs Supporting and Not Supporting Parameters

すべてのCleanup Jobがこれらのパラメータをサポートしているわけではありません:

  • 終了したジョブのログをきれいにします;
  • 終了したクエリログタスクを削除します;
  • Optimizations タスクの前に実現されたことのない古いタスクをクリーンアップします;
  • 古い履歴を消去するタスク;
  • クリーンなパフォーマンス・メトリクス・タスク。

これらのパラメータは、以下のタスクではサポートされていません:

  • 無効なインデックスの削除タスク;
  • 古くなったレプリケータのテーブルを掃除するタスク。