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

Table Of Contents
QTY_ORDERED NUMERIC (5) UNSIGNED NO DEFAULT NOT NULL,)
LOCATION \B.$DATA02;
3. From the local node \A, create a local index for the table TABREM on the remote node \B:
CREATE INDEX CAT1.SCH1.INDEXLOC
ON TABREM (ORDERITEM, ORDERNUM)
LOCATION \A.$DATA02;
Example—Creating a Table With Partitions on a Local and Remote Node
To create a table with one partition on the local node \A and one partition on the remote node
\B:
1. Check that the catalog for the table and index is registered on the remote node \B:
REGISTER CATALOG CAT1 ON \B.$DATA02;
2. From the local node, create a table where the first partition, PARTLOCAL, is on the local node
and a second partition, PARTREMOTE, is on the remote node \B:
CREATE TABLE CAT1.SCH1.TABPART
(A INT NOT NULL NOT DROPPABLE,
B INT NOT NULL NOT DROPPABLE,
C INT NOT NULL NOT DROPPABLE,
PRIMARY KEY (A,B))
LOCATION $DATA11 NAME PARTLOCAL
RANGE PARTITION BY (A)
(ADD FIRST KEY (200) LOCATION \B.$DATA1 NAME PARTREMOTE);
Altering Distributed Objects
Use the ALTER TABLE and ALTER INDEX statements to alter SQL/MX tables and indexes. If a table
or index is partitioned across multiple nodes, changes caused by ALTER can affect the attributes
of partitions located on remote nodes.
You perform MODIFY operations to add, split, move, move boundaries, and drop partitions on
range-partitioned and hash-partitioned SQL/MX tables and indexes.
For more information, see the SQL/MX Reference Manual.
Dropping Distributed Objects
Before you can drop a distributed table, index, or view, all objects dependent on that table and
its metadata must be accessible.
For range-partitioned tables or indexes, use the MODIFY utility to drop empty partitions on remote
nodes. For hash-partitioned tables and indexes, use MODIFY to drop nonempty partitions only.
Enhancing the Performance of a Distributed Database
The performance issues of a distributed database encompass those of a local database and also
include:
“Using Co-located Indexes in a Distributed Database” (page 278)
“Using Remote Application Processes” (page 278)
These other issues, not covered in this manual, also affect performance of a distributed database:
Network availability and use
Remote node availability
For more information about enhancing performance, see “Enhancing SQL/MX Database
Performance” (page 290).
Altering Distributed Objects 277