You can use the VIEWS system table to determine the following database information, among other things:
·
All privileges of your
own view table MYVIEW
SELECT
privileges
FROM DOMAIN.VIEWS
WHERE owner = user
AND viewname = 'MYVIEW'
·
All view tables and
their comments that the current user can see without being the owner
SELECT
owner, viewname, comment
FROM DOMAIN.VIEWS
WHERE owner <> user
Definition text of a view table: see VIEWDEFS
Existence of a view table: see TABLES
Synonym for a view table: see SYNONYMS
Tables and columns forming the basis for a view table: see VIEWCOLUMNS