Oracle 视图 ALL_COL_PRIVS_MADE 官方解释,作用,如何使用详细说明
  iDU31ygkXmx7 2023年11月21日 14 0

本站中文解释

Oracle视图 ALL_COL_PRIVS_MADE 是一个数据字典视图是用于显示当前用户针对表中某个列拥有何种权限。该视图包含以下列:

TableOwner:列拥有权限表的拥有者

TableName:列拥有权限表的名称

ColumnName:拥有权限的列的名称

Grantor:授予该列权限的用户

Grantee:被以授予该权限的用户

Privilege:给予的权限

Grantable:是否可以将权限授予给他人

使用 Oracle 视图ALL_COL_PRIVS_MADE, 你可以查询当前用户对表中特定列拥有何种权限,例如:

SELECT table_owner, table_name, column_name, privilege, grantor, grantee
FROM all_col_privs_made
WHERE table_name = ‘MY_TABLE’
AND column_name = ‘MY_COLUMN’;

通过执行这个语句,可以返回当前用户在表MY_TABLE的列MY_COLUMN上面拥有的具体权限:Grantor(授予该权限的用户),Grantee(被以授予该权限的用户), 以及 Privilege(给予的权限)。

官方英文解释

ALL_COL_PRIVS_MADE describes the column object grants for which the current user is the object owner or grantor.

Related View

USER_COL_PRIVS_MADE describes the column object grants for which the current user is the object owner. This view does not display the OWNER column.

Column Datatype NULL Description

GRANTEE

VARCHAR2(128)

Name of the user or role to whom access was granted

OWNER

VARCHAR2(128)

Owner of the object

TABLE_NAME

VARCHAR2(128)

Name of the object

COLUMN_NAME

VARCHAR2(128)

Name of the column

GRANTOR

VARCHAR2(128)

Name of the user who performed the grant

PRIVILEGE

VARCHAR2(40)

Privilege on the column

GRANTABLE

VARCHAR2(3)

Indicates whether the privilege was granted with the GRANT OPTION (YES) or not (NO)

COMMON

VARCHAR2(3)

Indicates how the grant was made. Possible values:

  • YES if the privilege was granted commonly (CONTAINER=ALL was used)

  • NO if the privilege was granted locally (CONTAINER=ALL was not used)

INHERITED

VARCHAR2(3)

Indicates whether the privilege grant was inherited from another container (YES) or not (NO)

See Also:

“USER_COL_PRIVS_MADE”

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月21日 0

暂无评论

iDU31ygkXmx7