SHOW REPLICATION DATABASES

statementsupportedReplication, failover & backup

docs.snowflake.com ↗

Lists all the primary and secondary databases (that is to say, all the databases for which replication has been enabled) in your account and indicates the region in which each account is located.

Syntax

supportedpartialnot supportednot scored

SHOW REPLICATION DATABASES [ LIKE '<pattern>' ]
                           [ WITH PRIMARY <account_identifier>.<primary_db_name> ]

Parameters

NameRequiredDescription
LIKE 'pattern'Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _). For example, the following patterns return the same results: ... LIKE '%testing%' ... ... LIKE '%TESTING%' ... Default: No value (no filtering is applied to the output).
WITH PRIMARY {account_identifier}.{primary_db_name}Specifies the scope of the command, which determines whether the command lists records only for the specified primary database. The account_identifier can be in the form org_name.account_name or snowflake_region.account_locator. See Account identifiers for replication and failover for details.

Usage notes

Output

The command output provides primary and secondary database properties and metadata in the following columns. The command output for organizations that span multiple region groups includes an additional region_group column. Column | Description region_group | Region group where the account is located. Note: This column is only displayed for organizations that span multiple region groups. snowflake_region | Snowflake Region where the account that stores the database is located. A Snowflake Region is a distinct location within a cloud platform region that is isolated from other Snowflake Regions. A Snowflake Region can be either multi-tenant or single-tenant (for a Virtual Private Snowflake account). created_on | Date and time when the database was created. account_name | Name of the account in which the database is stored. name | Name of the database. comment | Comment for the database. is_primary | Whether the database is a primary database; otherwise, is a secondary database. primary | Fully-qualified name of a primary database, including the region, account, and database name. replication_allowed_to_accounts | Where IS_PRIMARY is TRUE, shows the fully-qualified names of accounts where replication has been enabled for this primary database. A secondary database can be created in each of these accounts. failover_allowed_to_accounts | Where IS_PRIMARY is TRUE, shows the fully-qualified names of accounts where failover has been enabled for this primary database. A secondary database can be created in each of these accounts for business continuity and disaster recovery. organization_name | Name of your Snowflake organization. account_locator | Account locator in a region.

See also

Referenced by