SYSTEM$ZEROCOPY_CONNECTOR_LIST_SHARES
functionnot supportedCore SQL functionsLists the data products that a Zero-Copy connector exposes, and shows which of them are already mounted as catalog-linked databases. The output is in JSON format. Use the name of a returned data product as the SHARE_NAME value when you create a catalog-linked database from the connector with CREATE DATABASE … LINKED_ZEROCOPY_CONNECTOR.
Syntax
SYSTEM$ZEROCOPY_CONNECTOR_LIST_SHARES('<connector_name>')
Parameters
| Name | Required | Description |
|---|---|---|
connector_name | required | The name of the Zero-Copy connector. Specify it as a string literal enclosed in single quotes. You can use a fully qualified name (<db>.<schema>.<connector>) or a partially qualified name. |
Returns
Returns a string that contains a JSON array, sorted by name. Each element describes one data product.
Usage notes
- The connector must be connected. The function fails otherwise.
- The function reads the list from the partner each time you call it. The display_name and comment of an SAP® BDC data product are the values that SAP® BDC returns.
- A data product can be MOUNTED while catalog_linked_databases is empty if the database that mounts it is owned by a role that your current role can’t see.
- For a Salesforce connector, a catalog-linked database created with ALL_SHARES = TRUE mounts every data share. For a Workday connector, every catalog-linked database mounts the whole catalog.
Access control requirements
A role used to execute this operation must have at least one privilege (USAGE, OPERATE, MODIFY, MONITOR, or OWNERSHIP) on the Zero-Copy connector. 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.