19 DBMS_AUTOIM
This API provides functions to manage the execution of the AIM feature.
Using DBMS_AUTOIM
Automatic In-Memory Management (AIM) is an In-Memory column store feature that optimizes the column store through actions such evicting cold data, populating frequently accessed data, and compressing cold columns.
The DBMS_AUTOIM package provides APIs to manage the execution of the AIM feature. These are procedures to get and set AIM parameters as well as a reporting function.
Summary of DBMS_AUTOIM Subprograms
The table in this topic lists and describes the DBMS_AUTOIM subprograms.
Table 19-1 DBMS_AUTOIM Subprograms
Subprogram | Description |
---|---|
SET_PARAMETER |
Sets the value of one of the available parameters:
|
ACTIVITY_REPORT |
Reports AIM task activity within the specified time interval for the given feature or for all features. |
SET_PARAMETER Procedure
Use this DBMS_AUTOIM procedure to set configuration parameter values for AIM features.
Syntax
DBMS_AUTOIM.SET_PARAMETER( parameter_name IN VARCHAR2, parameter_value IN VARCHAR2 );
Parameters
The parameters for DBMS_AUTOIM.SET_PARAMETER are as follows.Table 19-2 SET_PARAMETER Procedure Parameters
Parameter | Description |
---|---|
|
Turns the automatic IM automatic performance feature creation task on or off. Values: |
|
Controls the statistics time window used by AIM to compute decisions. Value: Any positive integer representing the time window in seconds. The default is 900 seconds. |
ACTIVITY_REPORT Function
Use this function to generate a report on the automatic creation of IM performance features. These features include Autonomous Join Groups, Autonomous Bloom Filter Optimization, Autonomous Optimized Arithmetic, and Autonomous Vector Optimization.
Syntax
DBMS_AUTOIM.ACTIVITY_REPORT( feature_id IN NUMBER, start_time IN TIMESTAMP, end_time IN TIMESTAMP, type IN VARCHAR2, level IN VARCHAR2 )
Table 19-3 ACTIVITY_REPORT Function Parameters
Parameter | Type | Description |
---|---|---|
|
integer |
A NULL You can get the |
|
timestamp | Start of the time window in which AIM
activities are considered for the report. A NULL
start_time returns the report for last
execution. Default is NULL.
|
|
timestamp |
End of time window in which AIM
activities are considered for the report. A NULL
end_time returns the report for last execution.
Default is NULL.
|
|
varchar2 |
Type of the report. Possible values are: 'TEXT', 'HTML', 'XML'. Default is 'TEXT'. |
|
varchar2 |
Level of verbosity. Possible values are 'BASIC' and 'DETAILED'. Default is 'BASIC'. |
Example 19-1 ACTIVY_REPORT function
Create an AIM activity report for the previous day in TEXT format. The return type is CLOB.
declare
report clob := null;
begin
report := DBMS_AUTOIM.activity_report();
end;
Note:
See the view V$AIM_FEATURES to obtain thefeature_id
for each feature.