NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
V-4
Considerations—VERIFY
For an index, VERIFY checks descriptions of the index and its base table, views of
the base table, and partitions. VERIFY also checks the consistency of base table and
partition entries in related file labels.
For an SQL program, VERIFY checks whether the program is valid or invalid and
also checks the consistency of the PCV and PFV values in related file labels. For an
SQL program in a Guardian file, VERIFY also checks descriptions of the program.
For a catalog, VERIFY checks descriptions of each catalog table and each SQL-
supplied index or protection view on a catalog table.
For partitioned objects, VERIFY makes the checks previously described for each
partition of the object. However, VERIFY does not check whether first key values
for partitions are the same in the catalog and in the file label.
VERIFY does not check whether a file label is internally consistent with itself.
Invalid objects
If VERIFY locates an invalid object, you might want to change the VALIDDEF flag
in the appropriate catalog table to prevent further use of the object until the problem
is corrected. (For example, if a view is invalid, change the value of the VALIDDEF
column of the VIEWS table to N.) A user with the super ID can change values in a
catalog table by using the UPDATE command with a licensed version of SQLCI2.
(See the NonStop SQL/MP Installation and Management Guide for more
information about using a licensed SQLCI2 process.)
Invalid programs
A program can be invalid for a variety of reasons. In some cases, the appropriate
action is to recompile the program. In other cases (especially if the program uses
execution-time name resolution), you might want to continue using the invalid
program. See Program Invalidation
on page P-28 if you need information about
changes that can cause program invalidation.
If VERIFY returns SQL error -9853 (a column in the catalog table is corrupted) for
a program file, SQL-compiling the program again might correct the problem.
Transactions and breaks
Avoid using VERIFY within user-defined transactions, because it reduces
concurrency for other operations. If a user-defined transaction is not in progress
when you execute VERIFY, SQL automatically starts a transaction before verifying
each object or program and ends the transaction when the verification of that object
or program is complete.
You can use the Break key to interrupt a VERIFY operation. If you roll back the
transaction and want to restart the operation, you must issue the VERIFY command
again.