SYSTEM$CATALOG_LINK_STATUS
functionsupportedIceberg & external tablesReturns the link status for a specified catalog-linked database.
Syntax
SYSTEM$CATALOG_LINK_STATUS( '<catalog_linked_db_name>' )
Parameters
| Name | Required | Description |
|---|---|---|
'catalog_linked_db_name' | required | Specifies the name of the catalog-linked database that you want to check the status of. |
Returns
The function returns a JSON object containing the following name/value pairs: Where:
Usage notes
- The failureDetails field returns information about DROP SCHEMA and DROP ICEBERG TABLE failures.
- Returns results as long as you use a role with a privilege on the specified catalog-linked database. For more information, see Database privileges.
- The function also applies to catalog-linked databases created from a Zero-Copy connector.
Access control requirements
A role used to execute this SQL command must have either of the following privileges at a minimum: Privilege | Object OWNERSHIP | The target catalog-linked database. MONITOR | The target catalog-linked database.