Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

DBMS_AUTO_INDEX

$
0
0
The DBMS_AUTO_INDEX package provides the interface for managing auto indexes in an Oracle database.
The DBMS_AUTO_INDEX package is the interface for configuring auto indexes and generating reports of auto indexing operations in an Oracle database.

This below lists the DBMS_AUTO_INDEX package subprograms and briefly describes them.
CONFIGURE Procedure : Configures settings related to automatic indexing.
DROP_SECONDARY_INDEXES Procedure: Deletes all the indexes, except the ones used for constraints, from a schema or a table.
REPORT_ACTIVITY Function:Returns a report of the automatic indexing operations executed during a specific period in a database.
REPORT_LAST_ACTIVITY Function:Returns a report of the last automatic indexing operation executed in a database.
How To Configure:
Syntax:
DBMS_AUTO_INDEX.CONFIGURE (
 parameter_name   IN VARCHAR2,
   parameter_value  IN VARCHAR2,
   allow            IN BOOLEAN  DEFAULT TRUE);


begin
    dbms_auto_index.configure(
         parameter_name  => 'AUTO_INDEX_SCHEMA',
         parameter_value => 'HR',
         allow           => NULL);
end;
Here HR Schema able to use the feature of Auto Indexing .


Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>