- Categories:
System functions (System Information)
SYSTEM$GET_ CATALOG_ LINKED_ DATABASE_ CONFIG¶
Returns the configuration parameters set on the specified catalog-linked database. The output is in JSON format.
Syntax¶
Arguments¶
catalog_linked_database_nameThe name of the catalog-linked database you want to get the configuration for.
Specify it as a string literal enclosed in single quotes.
Returns¶
The function returns a string that contains a JSON object with the database’s configuration parameters.
| Field | Description |
|---|---|
catalog_integration | Name of the catalog integration used by the catalog-linked database. |
catalog_name | Name of the catalog namespace in the external catalog. Returns null if not specified. |
external_volume | Name of the external volume used for table storage. |
sync_interval_seconds | Interval (in seconds) that Snowflake polls the remote catalog to detect changes. |
namespace_mode | Mode for handling namespaces. Possible values: FLATTEN_NESTED_NAMESPACE, IGNORE_NESTED_NAMESPACE. |
namespace_flatten_delimiter | Delimiter used when flattening nested namespaces. Only applicable when namespace_mode is FLATTEN_NESTED_NAMESPACE. |
allowed_write_operations | Types of write operations allowed on the catalog-linked database. Possible values: NONE, ALL. |
catalog_case_sensitivity | Case sensitivity setting for the catalog. Possible values: CASE_SENSITIVE, CASE_INSENSITIVE. |
is_suspended | Whether the catalog-linked database synchronization is suspended. Returns true if suspended, false otherwise. |
allowed_namespaces | List of namespaces that are allowed to be synced. Returns null if all namespaces are allowed. |
blocked_namespaces | List of namespaces that are blocked from being synced. Returns null if no namespaces are blocked. |
For a sample output, see Examples.
Access control requirements¶
A role used to execute this operation must have the MONITOR or OWNERSHIP privilege on the catalog-linked database.
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Usage notes¶
- The function also applies to catalog-linked databases created from a Zero-Copy connector. To read the Zero-Copy connector settings of such a database, use SYSTEM$GET_ZEROCOPY_CONNECTOR_LINKED_DATABASE_CONFIG.
Examples¶
Get the configuration for a catalog-linked database named my_db:
An example output: