The X_OBJECT_PRIVILEGES
and the X_EFFECTIVE_OBJECT_PRIVILEGES views contain both the privileges
for users and groups on all objects
2 and
indicates inheritance. They show all direct (explicit) and inherited
privileges based on the privileges of the user and group or its group
membership. Unlike most other views, the views do not strictly derive
the information from system tables. It will merge metadata from the
physical data sources with metadata in system tables to produce a
complete result set for all objects.
The X_OBJECT_PRIVILEGES
result set contains rows for users and groups that have any privilege
directly set. If a user or group does not have any direct privilege,
it will not be shown in this view. It is a condensed view of the X_EFFECTIVE_OBJECT_PRIVILEGES
view.
The X_EFFECTIVE_OBJECT_PRIVILEGES
result set contains rows for all users and groups that have any privilege
directly set or a privilege can be derived from its group membership.
For instance, even if a user does not have any privileges directly
set, records for this user will be in the result set if any of the
groups in its group hierarchy has a privilege directly set.
If a privilege is not
explicitly listed in the result sets, it is DENIED by default.
|
|
|
|
|
|
|
Specifies the data service
name.
|
|
|
|
Specifies the catalog
name.
|
|
|
|
Specifies the schema
name.
|
|
|
|
Specifies the AuthID
of the grantor.
|
|
|
|
Specifies the name of
the grantor. This field could be NULL if the user no longer exists.
|
|
|
|
Specifies the grantor type as U (User) or R (Role).
|
|
|
|
Specifies the AuthID
of the grantee.
|
|
|
|
Specifies the grantee
name.
|
|
|
|
Specifies the grantee type as U (User) or G (Group).
|
|
|
|
Name of privilege as
reflected in the following list:
|
|
|
|
Specifies the privilege type as GRANT or DENY.
|
|
|
|
Specifies if the privilege is grantable. The only valid value
is N (No).
|
|
|
|
Specifies if the privilege
is inherited with Y or N.
|
|
|
|
Specifies the object
level where the privilege is inherited from:
|
|
|
|
AuthID of group or user
the privilege is derived from.
|
|
|
|
Specifies the group
or user name the privilege is derived from.
|
|
|
|
Specifies the grantee
as U - User or G - Group.
|
|
|
|
Specifies the name of
the object.
|
2 Current
list of objects includes: