sa_validate system procedure

Validates all, or parts, of a database.

Syntax

sa_validate(
  [ tbl_name  [, owner_name ] ]
)

Arguments

Permissions

DBA authority

Side effects

None

Remarks

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.

Warning!   Validating a table or an entire database should be performed while no connections are making changes to the database; otherwise, errors may be reported indicating some form of database corruption even though no corruption actually exists.

Example

The following statement performs a validation of tables and materialized views owned by DBA:

CALL sa_validate( owner_name = 'DBA' );