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

Table Of Contents
Displaying Information About SQL/MP Aliases
Topics in this subsection:
“Displaying all SQL/MP Alias Names in a Schema” (page 130)
“Displaying all Attributes of an SQL/MP Alias Name” (page 130)
The MP_PARTITIONS table contains the partition names of SQL/MP tables that have SQL/MP
aliases. For more information about all metadata tables, see Figure 3 (page 108) in this manual or
the SQL/MX Reference Manual.
All queries for information about a specific SQL/MP alias must access information from these
tables:
CATSYS table
SCHEMATA table
OBJECTS table
MP_PARTITIONS table
Displaying all SQL/MP Alias Names in a Schema
This example displays all SQL/MP aliases in a given schema:
>> select substring(object_name,1,25) as SQLMP_Alias
from nonstop_sqlmx_<system name>.system_schema.catsys c,
nonstop_sqlmx_<system name>.system_schema.schemata s, objects
o
where c.cat_uid=s.cat_uid
and c.cat_name='SAMDBCAT'
and s.schema_uid=o.schema_uid
and s.schema_name='SALES'
and o.object_type='MP';
Displaying all Attributes of an SQL/MP Alias Name
This example displays some of the attributes for the SQL/MP aliases in the SAMDBCAT.SALES
schema:
>> set schema samdbcat.definition_schema_version_<schema version>;
--- SQL operation complete.
>> select substring(object_name,1,25) as SQLMP_Alias,
m.mppartition_name
from nonstop_sqlmx_<system name>.system_schema.catsys c,
nonstop_sqlmx_<system name>.system_schema.schemata s,
objects o,
mp_partitions m
where c.cat_uid=s.cat_uid
and c.cat_name='SAMDBCAT'
and s.schema_uid=o.schema_uid
and s.schema_name='SALES'
and o.object_type='MP'
and m.object_uid = o.object_uid
for read uncommitted access;
MPPARTITION_NAME
------------------------------------
SQLMP_ALIAS
-------------------------
\DMR15.$DATA04.SQLMP.CUSTOLDCUSTS
130 Querying SQL/MX Metadata