Validates all, or parts, of a database.
sa_validate( [ tbl_name [, owner_name ] ] )
DBA authority
None
Argument specified | Type of validation |
---|---|
None | All tables, materialized views, and indexes in the database are validated. The database itself is also validated, including checksum validation. |
owner_name | All tables, materialized views, and indexes owned by the specified user are validated. |
tbl_name | The specified table, or materialized view, and all of its indexes, that are owned by the current user are validated. |
owner_name and tbl_name | The specified table, or materialized view, and all of its indexes, that are owned by the specified user are validated. |
The values for tbl_name and owner_name are strings and must be enclosed in quotes.
The procedure returns a single column named Messages. Errors returned during validation appear in the column. If validation succeeds without error, the column contains No error detected.
The following statement performs a validation of tables and materialized views owned by DBA:
CALL sa_validate( owner_name = 'DBA' );