SQL/MX 3.2 Management Manual (H06.25+, J06.14+)

Table Of Contents
inconsistent through database changes that are not applied consistently throughout related objects.
SQL can prevent many of the operations that cause inconsistency, but it does not always detect
all operational errors. For example, when you drop a table, SQL attempts to drop all dependencies.
However, a user might restore objects that might not be consistent with the related objects. System
operational problems or system failures can also cause inconsistencies in the data dictionary.
NOTE: HP recommends that you run the mxtool VERIFY command once a week on frequently
used objects for early problem detection and resolution.
For more information, see the SQL/MX Reference Manual.
Displaying Version Numbers
Topics in this subsection:
“Displaying the NonStop SQL/MX Release Identifier” (page 147)
“Displaying the Schema Version” (page 147)
“Displaying the System Schema Version” (page 147)
“Displaying the Object Schema Version (OSV)” (page 147)
“Displaying the Object Feature Version (OFV)” (page 147)
Displaying the NonStop SQL/MX Release Identifier
To obtain the release number of the SQL/MX software running on a specified node, see the banner
generated by mxci. For SQL/MX Release 3.2, mxci displays the release identifier 3.2.
For example, the mxci banner displays the following information for SQL/MX Release 3.2:
Hewlett-Packard NonStop(TM) SQL/MX Conversational Interface 3.2 (c)
Copyright 2003, 2004-2011 Hewlett-Packard Development Company, LP.
Displaying the Schema Version
This example displays the version number of a specified schema:
>> select s.schema_version
from nonstop_sqlmx_node.system_schema.schemata s,
nonstop_sqlmx_node.system_schema.catsys c
where c.cat_name = 'catalog-name'
and c.cat_uid = s.cat_uid
and s.schema_name = 'schema-name';
Displaying the System Schema Version
This example displays the version number of the system schema:
>> select s.schema_version
from nonstop_sqlmx_node.system_schema.schemata s,
nonstop_sqlmx_node.system_schema.catsys c
where c.cat_name = 'NONSTOP_SQLMX_node'
and c.cat_uid = s.cat_uid
and s.schema_name = 'SYSTEM_SCHEMA';
Displaying the Object Schema Version (OSV)
The example in “Displaying the System Schema Version” (page 147) also applies to the OSV.
The MXCI SHOWLABEL command also displays object schema and object feature version
information.
Displaying the Object Feature Version (OFV)
This example displays the object feature version (OFV) of a specified database object:
Displaying Version Numbers 147