NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
D-60
Examples—DOWNGRADE SYSTEM CATALOG
Temporary disk space requirements
DOWNGRADE SYSTEM CATALOG creates a new temporary catalog on the same
volume as the catalog being downgraded. Such volumes must have enough disk
space available to store files twice as large as the original system catalog.
Not allowed in user-defined transactions
You cannot use DOWNGRADE SYSTEM CATALOG in a user-defined transaction.
Failure situations
In unusual failure situations (such as a system failure during the downgrade
operation), temporary files with names that begin with the letters “ZZDN” might be
left on the same subvolume as the catalog. You can delete these with CLEANUP.
Examples—DOWNGRADE SYSTEM CATALOG
The following command downgrades the local system catalog to version 2:
>> DOWNGRADE SYSTEM CATALOG TO 2;
DROP Statement
DROP is a DDL statement that deletes a catalog, collation, constraint, index, SQL-
program Guardian file, table, or view, and deletes comments associated with the dropped
object.
CATALOG [ catalog ]
specifies the name (or an equivalent DEFINE) of an empty catalog to delete. If you
omit the catalog name, SQL deletes the default catalog.
COLLATION collation
specifies the name (or an equivalent DEFINE) of a collation to delete.
CONSTRAINT constraint ON table
specifies the name of a constraint to delete, and the name (or an equivalent
DEFINE) of the table with which the constraint is associated.
DROP { CATALOG [ catalog ] }
{ COLLATION collation }
{ CONSTRAINT constraint ON table }
{ INDEX index }
{ PROGRAM file }
{ TABLE table }
{ VIEW view }