Categories:

System functions (System Control)

SYSTEM$ENABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT

在账户上启用 Cross-Cloud Auto-Fulfillment。Cross-Cloud Auto-Fulfillment 允许您自动向其他 Snowflake 使用者区域提供列表中附带的共享或应用程序包。

See also:

SYSTEM$IS_GLOBAL_DATA_SHARING_ENABLED_FOR_ACCOUNT , SYSTEM$DISABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT, Auto-fulfillment for listings

语法

SYSTEM$ENABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT( '<account_name>' )

实参

account_name

Specifies the account on which to enable Cross-Cloud Auto-Fulfillment. To learn more about Snowflake account identifiers and how to locate them, see Account identifiers.

返回

Returns the VARCHAR value Statement executed successfully if the function successfully enables Cross-Cloud Auto-Fulfillment on the account.

访问控制要求

示例

The following example enables Cross-Cloud Auto-Fulfillment on the account named my_account:

SELECT SYSTEM$ENABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT('my_account');
+--------------------------------------------------------------------+
| SYSTEM$SYSTEM$ENABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT('my_account') |
%--------------------------------------------------------------------%
| Statement executed successfully                                    |
+--------------------------------------------------------------------+