The DBMS_ILM_ADMIN
package provides an interface to customize Automatic Data Optimization (ADO) policy execution. In combination with partitioning and compression, ADO policies can be used to help implement an Information Lifecycle Management (ILM) strategy.
See Also:
Oracle Database VLDB and Partitioning Guide for information about managing Automatic Data Optimization (ADO) with this package
This chapter contains the following topics:
Overview
Security Model
Constants
To implement your ILM strategy, you can use Heat Map in Oracle Database to track data access and modification. You can also use Automatic Data Optimization (ADO) to automate the compression and movement of data between different tiers of storage within the database.
The DBMS_ILM_ADMIN
package uses the constants shown in Table 80-1, "DBMS_ILM_ADM Constants"
Table 80-1 DBMS_ILM_ADM Constants
Constant | Value | Type | Description |
---|---|---|---|
|
1 |
|
Determines the frequency with which ADO background evaluation occurs. Specified in minutes. |
|
|
|
Controls the amount of time ADO history should be maintained. Specified in days. |
|
4 |
|
Controls whether ADO execution is online, offline. The value for this parameter should either be |
|
|
|
Controls the upper limit on number of ADO jobs at any time. The maximum number of concurrent ADO jobs is |
|
|
|
Provides a way to turn background ADO off or on |
|
|
|
Decides when a tablespace is considered full. Specified as a percentage of tablespace quota. |
|
|
|
Decides the targeted tablespace storage through ADO actions as a percentage of tablespace quota. |
|
|
|
Decides the degree of parallelism to be used for ADO jobs |
|
11 |
|
Decides if ADO policies are treated as though they are specified in seconds rather than days. Can take value |
|
1 |
|
Segment read done |
|
2 |
|
Segment write done |
|
4 |
|
Full table scan done |
|
8 |
|
Index scan done |
Table 80-2 DBMS_ILM_ADM Constants Used as Parameter Values
Constant | Value | Type | Description |
---|---|---|---|
|
1 |
|
Specifies that the object may be offline while ADO action is performed. |
|
|
|
Specifies that the object should be online while ADO action is performed |
|
4 |
|
Indicates automatic ADO policy evaluation and execution is enabled |
|
|
|
Indicates automatic ADO policy evaluation and execution is disabled |
|
|
|
Indicates policy is specified in days. This is the default. |
|
|
|
Indicates policy is specified in seconds (rather than days). This could be used to test ADO policy evaluation quickly instead of waiting for the policy duration. |
Table 80-3 DBMS_ILM_ADMIN Package Subprograms
Subprogram | Description |
---|---|
Deletes all rows except the dummy row |
|
Clears all or some statistics for the heat map table, deleting rows for a given table or segment which match a given pattern, or all such rows |
|
Customizes environment for ILM execution by specifying the values for ILM execution related parameters |
|
Turns off all background ILM scheduling |
|
Turns on all background ILM scheduling |
|
Updates or inserts heat map rows for all tables |
|
Sets the start date for collecting heat map data |
|
Updates or inserts a row for the specified table or segment |
This procedure deletes all rows in HEAT_MAP_STAT$
except the dummy row.
This procedure clears all or some statistics for the heat map table, deleting rows for a given table or segment which match a given pattern, or all such rows.
DBMS_ILM_ADMIN.CLEAR_HEAT_MAP_TABLE ( owner IN VARCHAR2, tablename IN VARCHAR2, partition IN VARCHAR2 default '', access_date IN DATE DEFAULT NULL, segment_access_summary IN NUMBER DEFAULT NULL);
Table 80-4 CLEAR_HEAT_MAP_TABLE Procedure Parameters
Parameter | Description |
---|---|
|
Table owner |
|
Table name |
|
Name of the subobject, defaults to |
|
Date for the entry in |
|
Summary of segment access constants indicating access operations performed on the segment |
This procedure customizes environment for ILM execution by specifying the values for ILM execution related parameters. These values take effect for the next background scheduling.
This procedure updates or inserts a row for the specified table or segment.
DBMS_ILM_ADMIN.SET_HEAT_MAP_TABLE ( owner IN VARCHAR2, tablename IN VARCHAR2, partition IN VARCHAR2 DEFAULT '', access_date IN DATE DEFAULT NULL, segment_access_summary IN NUMBER DEFAULT NULL);
Table 80-8 SET_HEAT_MAP_TABLE Procedure Parameters
Parameter | Description |
---|---|
|
Table owner |
|
Table name |
|
Name of the subobject, defaults to |
|
Date for the entry in |
|
Summary of segment access constants indicating access operations performed on the segment |