NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
U-14
Considerations—UPGRADE SYSTEM CATALOG
You can express version as an integer (2, 300, 310, 315, 320, 325, or 330) or as a
string (A011, A300, A310, A315, A320, A325, or A330), but the version you
specify must be greater than the current version of the catalogs you specify with
catalogs. In addition, version must not be a version later than the NonStop
SQL/MP software installed on the node.
The default is the version of the NonStop SQL/MP software installed on the node.
See Versions
on page V-5 or the NonStop SQL/MP Version Management Guide if
you need more information about NonStop SQL/MP versions.
Considerations—UPGRADE SYSTEM CATALOG
Authorization and access requirements
Only the local super ID can execute UPDATE SYSTEM CATALOG.
UPGRADE SYSTEM CATALOG requires exclusive access to the system catalog
being upgraded. Other processes cannot access the system catalog during the
upgrade. The upgrade fails if other processes have the system catalog open when
you issue the UPGRADE SYSTEM CATALOG command. In addition, all indexes,
views, and programs registered in the system catalog must be available for read
access.
Program invalidation
UPGRADE CATALOG invalidates any program that refers to a table in the system
catalog, but does not invalidate a program merely because it is registered in the
system catalog or because it accesses objects registered in the system catalog.
Examples—UPGRADE SYSTEM CATALOG
The following command upgrades the system catalog on the local system to version
315:
>> UPGRADE SYSTEM CATALOG TO 315;
UPSHIFT Function
UPSHIFT is a function that upshifts single-byte characters. UPSHIFT can appear in a
select list, an ON clause, a WHERE clause, a HAVING clause, a LIKE predicate, an
expression, or qualifying a new value in an UPDATE or INSERT statement.
UPSHIFT returns a string of either character or varying-length character data, depending
on the data type of the input string.
See Character Expressions
on page C-11 for more information.
character-exp
is a character expression that specifies a string of single-byte characters to upshift.
UPSHIFT ( character-exp )