Getting and Setting Cleanup Job Parameters
Cleanup Job Parameters は、削除されるエントリを識別するために使用される条件 (それらの年齢と使用頻度) を定義します。これらのパラメータは、getJobProperty
、setJobProperty
、それぞれ手順を使用して表示および設定できます。
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 |
---|---|
| ID of the job; mandatory |
| Specifies the time measurement unit that is used to determine whether the entry is old enough to be deleted; at the moment, only the |
| Specifies the value of the time interval that is used to determine whether the entry is old enough to be deleted; default: |
| Applicable to optimizations; specifies optimisation usage frequency (optimizations with lower usage frequency are subject to deletion); default: |
List of Cleanup Jobs Supporting and Not Supporting Parameters
すべてのCleanup Jobがこれらのパラメータをサポートしているわけではありません:
- 終了したジョブのログをきれいにします;
- 終了したクエリログタスクを削除します;
- Optimizations タスクの前に実現されたことのない古いタスクをクリーンアップします;
- 古い履歴を消去するタスク;
- クリーンなパフォーマンス・メトリクス・タスク。
これらのパラメータは、以下のタスクではサポートされていません:
- 無効なインデックスの削除タスク;
- 古くなったレプリケータのテーブルを掃除するタスク。