NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
M-20
Examples—MODIFY LABEL
The MODIFY LABEL command produces the following display when requested
with the LISTALL option:
Checking \SYS.$VOL.SUBVOL.T1 label.
--- \SYS.$VOL.SUBVOL.T1 label was modified.
Checking \SYS.$VOL.SUBVOL.T2 label.
--- \SYS.$VOL.SUBVOL.T2 label was not modified.
The following summary information is included whether you specify LISTALL or
NO LISTALL:
Summary Information:
nnn label(s) modified.
nnn label(s) not modified.
MODIFY LABEL and Partitioned Objects
The examples following show how you would use MODIFY LABEL when you move
partitioned objects.
Suppose you have table T1 with one partition at \A.$DA1.SQL.T1, a second partition at
\A.$DB1.SQL.T1, and a third partition at \C.$DC1.SQL.T1. The catalogs where the
partitions are registered contain references to the other partitions; in other words, the
catalog where \A.$DA1.SQL.T1 is registered contains a reference in the PARTNS
catalog table to all three partitions, and likewise for the catalogs where
\A.$DB1.SQL.T1 and \C.$DC1.SQL.T1 are registered.
The following SELECT statements illustrate this point:
>> SELECT FILENAME,PARTITIONNAME,CATALOGNAME
+> FROM \A.$DA1.CATSUBV.PARTNS;
FILENAME PARTITIONNAME CATALOGNAME
-------------- -------------- ---------------
\A.$DA1.SQL.T1 \A.$DA1.SQL.T1 \A.$DA1.CATSUBV
\A.$DA1.SQL.T1 \A.$DB1.SQL.T1 \A.$DB1.CATSUBV
\A.$DA1.SQL.T1 \C.$DC1.SQL.T1 \C.$DC1.CATSUBV
>> SELECT FILENAME,PARTITIONNAME,CATALOGNAME
+> FROM \A.$DB1.CATSUBV.PARTNS;
FILENAME PARTITIONNAME CATALOGNAME
-------------- -------------- ---------------
\A.$DB1.SQL.T1 \A.$DA1.SQL.T1 \A.$DA1.CATSUBV
\A.$DB1.SQL.T1 \A.$DB1.SQL.T1 \A.$DB1.CATSUBV
\A.$DB1.SQL.T1 \C.$DC1.SQL.T1 \C.$DC1.CATSUBV
>> SELECT FILENAME,PARTITIONNAME,CATALOGNAME
+> FROM \C.$DC1.CATSUBV.PARTNS;
FILENAME PARTITIONNAME CATALOGNAME
-------------- -------------- ---------------
\C.$DC1.SQL.T1 \A.$DA1.SQL.T1 \A.$DA1.CATSUBV
\C.$DC1.SQL.T1 \A.$DB1.SQL.T1 \A.$DB1.CATSUBV
\C.$DC1.SQL.T1 \C.$DC1.SQL.T1 \C.$DC1.CATSUBV
Now suppose that the $DB1 volume is moved from the \A node (node number 101) to
the \B node (node number 102). The MODIFY DICTIONARY commands needed to
make the NonStop SQL/MP database consistent after the move are shown following.