Oracle 视图 ALL_TAB_PRIVS_RECD 官方解释,作用,如何使用详细说明
本站中文解释
?
ALL_TAB_PRIVS_RECD视图用于显示当前用户在每个表上的允许和禁止的权限。它主要包括表名,权限种类,权限对象,对象的类型,用于授予的登录类型等列。你可以使用它来查询给定用户的Oracle表权限。
使用方法:
查询当前用户在哪些表上具有什么权限:
SELECT * FROM ALL_TAB_PRIVS_RECD;
查看指定用户 user_name 在指定表 table_name 上具有什么权限:
SELECT * FROM ALL_TAB_PRIVS_RECD WHERE TABLE_NAME = ‘table_name’ AND GRANTEE = ‘user_name’;
官方英文解释
ALL_TAB_PRIVS_RECD
describes object grants.
ALL_TAB_PRIVS_RECD
describes the following types of grants:
-
Object grants for which the current user is the grantee
-
Object grants for which an enabled role or
PUBLIC
is the grantee
Related View
USER_TAB_PRIVS_RECD
describes the object grants for which the current user is the grantee. This view does not display the GRANTEE
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Name of the user or role to whom access was granted |
|
|
|
Owner of the object |
|
|
|
Name of the object |
|
|
|
Name of the user who performed the grant |
|
|
|
Privilege on the object |
|
|
|
Indicates whether the privilege was granted with the |
|
|
|
Indicates whether the privilege was granted with the |
|
|
|
Indicates how the grant was made. Possible values:
|
|
|
|
Type of the object |
|
|
|
Indicates whether the privilege grant was inherited from another container ( |
See Also:
“USER_TAB_PRIVS_RECD”