SHOW FAILOVER GROUPS¶
Lists the primary and secondary failover groups in your account, as well as the failover groups in other accounts that are associated with your account.
对于其他账户:
- 列出为了复制和故障转移到此账户而启用的主要故障转移组。
- 列出链接到此账户中的组的辅助故障转移组。
- See also:
CREATE FAILOVER GROUP , ALTER FAILOVER GROUP , DROP FAILOVER GROUP
语法
参数
accountSpecifies the identifier for the account. Account name is a unique identifier within your organization. For more details about account name, see Format 1 (preferred): Account name in your organization.
使用说明
-
Executing this command requires a role with any one of the following privileges on a failover group:
- FAILOVER
- MONITOR
- OWNERSHIP
- REPLICATE
-
The output of SHOW FAILOVER GROUPS only includes groups of type
FAILOVER.
- The command doesn’t require a running warehouse to execute.
- The command only returns objects for which the current user’s current role has been granted at least one access privilege.
- The MANAGE GRANTS access privilege implicitly allows its holder to see every object in the account. By default, only the account administrator (users with the ACCOUNTADMIN role) and security administrator (users with the SECURITYADMIN role) have the MANAGE GRANTS privilege.
-
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.For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.
When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column
type, specifySELECT "type".You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.
输出
该命令返回以下列:
| Column | Description |
|---|---|
region_group | Region group where the account is located. Note: this column is only visible to organizations that span multiple Region groups. |
snowflake_region | 账户所在的 Snowflake 区域。Snowflake 区域是云平台区域内与其他 Snowflake 区域隔离的独特位置。Snowflake 区域可以是多租户或单租户(对于 Virtual Private Snowflake 账户)。 |
created_on | Date and time failover group was created. |
account_name | Name of the account. |
name | Name of the failover group. |
type | Type of group. Valid value is FAILOVER. |
comment | Comment string. |
is_primary | Indicates whether the failover group is the primary group. |
primary | Name of the primary group. |
object_types | List of specified object types enabled for replication and failover. |
allowed_integration_types | 为复制启用的集成类型列表。 即使未在 CREATE FAILOVER GROUP 或 ALTER FAILOVER GROUP 命令中指定集成,Snowflake 也始终在输出中包含此列。 |
allowed_accounts | List of accounts enabled for replication and failover. |
organization_name | Name of your Snowflake organization. |
account_locator | Account locator in a region. |
replication_schedule | Scheduled interval for refresh; NULL if no replication schedule is set. |
secondary_state | Current state of scheduled refresh. Valid values are started or suspended. NULL if no replication schedule is set. |
next_scheduled_refresh | Date and time of the next scheduled refresh. |
owner | Name of the role with the OWNERSHIP privilege on the failover group. NULL if the failover group is in a different region. |
is_listing_auto_fulfillment_group | TRUE if the replication group is used for Cross-Cloud Auto-Fulfillment. FALSE otherwise. |
示例
List failover groups in account myaccount1.