SQL/MX Database Distribution White Paper

NonStop SQL/MX Database Distribution White Paper 22 November 2004
Hewlett-Packard Company – 529627-001 Page 1 of 12
Title: HP NonStop™ SQL/MX Database Distribution White Paper
Author: Vilmar Olsen, NonStop SQL/MX Development
Date: 22 November 2004
Version: 2.0
Abstract: This white paper addresses some situations where common use of the Guardian default and
name-substitution mechanisms cannot be directly mapped to ANSI names.
1. A High-Level Description of SQL/MX Database Distribution
An SQL/MX database can be distributed over multiple nodes in an Expand network. However, unlike HP
NonStop SQL/MP tables and Guardian files, which are automatically accessible from all nodes in the
network, SQL/MX database objects are accessible only from those nodes where their catalog has been
explicitly registered.
When a SQL/MX catalog is created using the CREATE CATALOG command, it is known only to the
local Expand node. For other Expand nodes to access the catalog and the schemas and database objects in
it, the user must explicitly register the catalog on those Expand nodes that need access by using the
REGISTER CATALOG command. The catalog will then be visible on those nodes.
1.1. Visibility Rules
In a distributed environment, certain rules guide the use of ANSI names. Note that these rules are not
security mechanisms. ANSI authorization applies in both single-node environments and in distributed
environments, and users need remote passwords to access database objects on remote nodes.
A catalog, and the schemas and database objects in it, can be accessed from all nodes where the
catalog is visible.
A catalog, and its schemas and database objects, cannot be accessed from nodes where the catalog
is not visible.
A database object can be distributed to all nodes where its catalog is visible.
A database object cannot be distributed to nodes where its catalog is not visible.
The ANSI name uniquely identifies a database object on all nodes where the object is visible,
regardless of the actual location and distribution of the object. As a result, database distribution is
transparent to the user, except for commands that actually manage the distribution (such as
partition-management commands).

Summary of content (12 pages)