Lists all the accounts in your organization that are enabled for replication and indicates the region in which each account is located.
SHOW REPLICATION ACCOUNTS [ LIKE '<pattern>' ]
Copy
Parameters¶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).
The command output provides replication account 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 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 account was created.
account_name
Account name in your organization.
account_locator
Account locator in a region.
comment
Comment for the account.
organization_name
Name of your Snowflake organization.
is_org_admin
Indicates whether the ORGADMIN role is enabled in an account. If TRUE, the role is enabled.
Usage notes¶Only account administrators (users with the ACCOUNTADMIN role) can execute this SQL command.
Returns results only when an account administrator (user with the ACCOUNTADMIN role) executes the command in a replication-enabled account.
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.
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.
The command returns a maximum of ten thousand records for the specified object type, as dictated by the access privileges for the role used to execute the command. Any records above the ten thousand records limit aren’t returned, even with a filter applied.
To view results for which more than ten thousand records exist, query the corresponding view (if one exists) in the Snowflake Information Schema.
Show all the global accounts whose name starts with myaccount
:
SHOW REPLICATION ACCOUNTS LIKE 'myaccount%';
Copy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4