NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
D-68
DUP Command
source-fileset-list
is a qualified fileset list that specifies the objects or files to duplicate. See Filesets on
page F-29 for details.
If source-fileset-list includes a primary partition, DUP duplicates all
partitions of the table or file, deriving names for new secondary partitions from the
values you specify for target-fileset or the MAP NAME option. If
source-file-list explicitly specifies a secondary partition, DUP reports an
error. If source-file-list implicitly specifies secondary partitions, DUP
ignores the secondary partitions.
If ServerWare SMF is installed on your node, source-fileset-list must not
specify an object or file on a $*.ZYS*. subvolume.
Duplication of views and indexes depends on the INDEXES and VIEWS options
described later in this entry.
target-fileset
is a fileset that specifies names and locations for the new objects and files.
An asterisk (*) in the fileset specification indicates that the portion of the name in
which the asterisk appears should be the same as the corresponding portion of the
name of the object or file being duplicated. (Note that the meaning of the asterisk
differs from the usual meaning of an asterisk in a fileset specification. The ?
(question mark) normally allowed in a fileset specification is not allowed.)
DUP $VOL1.SALES.*, $VOL2.*.*
duplicates each table and its dependent objects on $VOL1.SALES, creating the
duplicates on $VOL2.SALES with the same names as the original tables and
dependent objects.
For more information about using target-fileset, see Target specification
under Considerations—DUP
on page D-72.
MAP NAME[S] { map-spec }
{ (map-spec [, map-spec] ... ) }
is a clause that specifies names and locations for the new objects or files. map-
spec is:
simple-fileset-list TO fileset
simple-fileset-list
is a simple fileset list that specifies the objects or files being duplicated for
which names and locations are being specified.
A fileset in the list that does not specify a node matches any node. Specifying
the local node for a fileset is equivalent to not specifying any node for the
fileset. For example, if \LOCAL is the local node name, both the node