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

Table Of Contents
from schemata s, catsys c
where cat_name = 'SAMDBCAT'
and s.cat_uid = c.cat_uid
for read uncommitted access;
SCHEMA_OWNER
------------
SCHEMA_NAME
------------------------------
65535
65535
DEFINITION_SCHEMA_VERSION_3000
INVENT
65535
65535
PERSNL
SALES
Displaying Users With Catalog and Schema Creation Rights
This section discusses the following topics:
“Displaying Users With Catalog Creation Rights” (page 124)
“Displaying Users With Schema Creation Rights” (page 124)
Displaying Users With Catalog Creation Rights
In the following example, only Guardian users whose user IDs are 44801 and 44802 can create
catalogs in the system:
>> select grantee, privilege_type from
NONSTOP_SQLMX_COBOLT.SYSTEM_SECURITY_SCHEMA.MGM_PRIVILEGES where
PRIVILEGE_TYPE like '%CC%';
PRIVILEGE_TYPE
--------------
GRANTEE
-----------
CC44801
CC44802
--- 2 row(s) selected.
Displaying Users With Schema Creation Rights
In the following example, only the Guardian user whose user ID is 44802 can create schemas in
the catalog, CAT1:
>> select substring (c.cat_name, 1, 10) as cat_name, m.grantee,
m.privilege_type from NONSTOP_SQLMX_COBOLT.SYSTEM_SCHEMA.catsys
c, NONSTOP_SQLMX_COBOLT.SYSTEM_SECURITY_SCHEMA.MGM_PRIVILEGES m
where c.cat_uid = m.target_uid;
CAT_NAME
----------
PRIVILEGE_TYPE
--------------
GRANTEE
-----------
CAT1CS44802
--- 1 row(s) selected.
Displaying Table Information
This subsection discusses the following topics:
“Displaying all Tables in a Catalog” (page 125)
“Displaying all Tables in a Schema” (page 126)
“Displaying all DDL Locks on a Table” (page 127)
124 Querying SQL/MX Metadata