SHOW REFERENCES¶
列出清单文件中为应用程序定义的引用以及使用者与该应用程序关联的引用。
语法¶
SHOW REFERENCES IN APPLICATION <name>
参数¶
name指定应用程序的名称。
访问控制要求¶
权限 |
对象 |
备注 |
|---|---|---|
OWNERSHIP |
应用程序 |
要运行此命令,您必须拥有应用程序的所有权权限。 |
有关创建具有指定权限集的自定义角色的说明,请参阅 创建自定义角色。
输出¶
此命令显示有关为应用程序定义的引用的以下信息:
列 |
描述 |
|---|---|
name |
引用的名称。 |
标签 |
清单文件中指定的引用标签。 |
描述 |
对引用及其用途的描述。 |
权限 |
引用所需的权限。有关引用可能需要的对象权限的列表,请参阅 引用中可以包含的对象类型和权限。 |
object_type |
与引用相关的对象类型。有关支持对象的列表,请参阅 引用中可以包含的对象类型和权限。 |
multi-valued |
表示引用是否需要多种类型的对象。 |
object_name |
使用者将对象与应用程序关联后,由引用指定的对象的名称。 |
schema_name |
与此引用关联的对象架构的名称;如果没有关联对象或关联对象是账户对象,则为 NULL。 |
database_name |
与此引用关联的对象的数据库名称,如果满足以下条件之一,则为 NULL:
|
别名 |
唯一标识对象引用的名称,包括对象名称、范围和权限。 |
使用说明¶
该命令不需要正在运行的仓库即可执行。
该命令仅返回当前用户的当前角色已获授至少一项访问权限的对象。
MANAGE GRANTS 访问权限隐式允许其持有者查看账户中的每个对象。默认情况下,只有账户管理员(具有 ACCOUNTADMIN 角色的用户)和安全管理员(具有 SECURITYADMIN 角色的用户)才具有 MANAGE GRANTS 权限。
To post-process the output of this command, you can use the pipe operator (
->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is
type, then specify"type"for the identifier.