This chapter briefly introduces the DBMS_VERIFY package, and describes how to use the procedures and functions of the package.
This section describes the procedures provided by the DBMS_VERIFY package, in alphabetical order.
Checks integrity of all indexes in the specified schema.
Details about the SCHEMA_INDEX procedure are as follows:
Prototype
DBMS_VERIFY.SCHEMA_INDEX ( SCHEMA IN VARCHAR2, DOP IN NUMBER DEFAULT 0 );
Parameter
Parameter | Description |
---|---|
SCHEMA | Schema name of the index to check integrity for. |
DOP | Degree Of Parallelism. |
Example
declare schema varchar2(1024); begin schema := 'TIBERO'; DBMS_VERIFY.SCHEMA_INDEX(schema); end; /
Checks integrity of all indexes in the specified table.
Details about the TABLE_INDEX procedure are as follows:
Prototype
DBMS_VERIFY.TABLE_INDEX ( SCHEMA IN VARCHAR2, TBLNAME IN VARCHAR2, DOP IN NUMBER DEFAULT 0 );
Parameter
Parameter | Description |
---|---|
SCHEMA | Schema name of the indexes to check integrity for. |
TBLNAME | Table name of the indexes to check integrity for. |
DOP | Degree Of Parallelism. |
Example
declare schema varchar2(1024); tblname varchar2(1024); begin schema := 'TIBERO'; tblname := 'TT'; DBMS_VERIFY.TABLE_INDEX(schema, tblname); end; /
Compares the number of rows found by using an index and by scanning a table for index integrity checking.
Details about the INDEX procedure are as follows:
Prototype
DBMS_VERIFY.INDEX ( SCHEMA IN VARCHAR2, TBLNAME IN VARCHAR2, IDXNAME IN VARCHAR2, DOP IN NUMBER DEFAULT 0 );
Parameter
Parameter | Description |
---|---|
SCHEMA | Schema name of the index to check integrity for. |
TBLNAME | Table name of the index to check integrity for. |
IDXNAME | Index name to check integrity for. |
DOP | Degree Of Parallelism. |
Example
declare schema varchar2(1024); tblname varchar2(1024); idxname varchar2(1024); begin schema := 'TIBERO'; tblname := 'TT'; idxname := 'TT_IDX'; DBMS_VERIFY.INDEX(schema, tblname, idxname); end; /