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

Table Of Contents
The node with an automatic catalog reference for a catalog has one CAT_REFERENCES row
for each node that has a reference for that catalog.
A node with an empty manual reference for a catalog has one CAT_REFERENCES row for
the automatic catalog reference node and one CAT_REFERENCES row for itself.
Catalog Reference Examples
To better illustrate how user catalogs and their schemas are referenced in the system schema tables
for SQL/MX Release 3.x, consider this next example scenario.
A four-node network example consists of the nodes \N1, \N2, \N3, and \N4. A user catalog
CAT1, with two schemas, SCH1 and SCH2, is created on node \N1. Node \N1, therefore, has
the only automatic catalog reference to CAT1. For SQL/MX Release 3.x, the object metadata for
CAT1 cannot be replicated to any other nodes in the network. However, catalog references for
CAT1 can be registered for other nodes.
Suppose, for example, that you issue the REGISTER CATALOG command from node \N1 to create
catalog references to CAT1 for nodes \N2 and \N3, but not for \N4. As a result, the system
schema tables on nodes \N2 and \N3 would identify CAT1 and the node where its object metadata
is located (\N1). However, they would not have object metadata for CAT1. Nodes \N2 and N3
would have to access this object metadata from node \N1. Node \N4 would not see CAT1 or
be able to access its object metadata.
For the contents of the system schema tables on these example nodes, see:
“System Schema Tables on Node \N1” (page 269)
“System Schema Tables on Nodes \N2 and \N3” (page 270)
“System Schema Tables on Node \N4” (page 270)
System Schema Tables on Node \N1
Node \N1 has an automatic catalog reference for the catalog CAT1. The system schema tables
on \N1 contain this information:
The CATSYS table on \N1 contains one row for the catalog CAT1, including these entries in
the CAT_NAME and REPLICATION_RULE columns.
REPLICATION_RULECAT_NAME
A CAT1
(for automatic replication)
The SCHEMATA table on \N1 contains one row for each CAT1 schema, including these
entries in the SCHEMA_NAME column:
SCHEMA_NAME
SCH1
SCH2
The CAT_REFERENCES table on \N1 contains three rows for the catalog CAT1, one for the
automatic catalog reference node and one for each empty manual reference node. This
includes these entries in the CAT_UID, NODE_NAME, and REPLICATION_RULE columns:
REPLICATION_RULENODE_NAMECAT_UID
A\N112345678912345678
M\N212345678912345678
Managing a Network-Distributed SQL/MX Database 269