Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SHOW DATASHARES - Amazon Redshift

SHOW DATASHARES

Displays the inbound and outbound shares in a cluster either from the same account or across accounts. If you don't specify a datashare name, then Amazon Redshift displays all datashares in all databases in the cluster. Users who have the ALTER and SHARE privileges can see the shares that they have privileges for.

Syntax

SHOW DATASHARES [ LIKE 'namepattern' ]

Parameters

LIKE

An optional clause that compares the specified name pattern to the description of the datashare. When this clause is used, Amazon Redshift displays only the datashares with names that match the specified name pattern.

namepattern

The name of the datashare requested or part of the name to be matched using wildcard characters.

Examples

The following example displays the inbound and outbound shares in a cluster.

SHOW DATASHARES; SHOW DATASHARES LIKE 'sales%'; share_name | share_owner | source_database | consumer_database | share_type | createdate | is_publicaccessible | share_acl | producer_account | producer_namespace -------------+-------------+-----------------+-------------------+------------+---------------------+---------------------+-----------+------------------+--------------------------------------- 'salesshare' | 100 | dev | | outbound | 2020-12-09 01:22:54.| False | | 123456789012 | 13b8833d-17c6-4f16-8fe4-1a018f5ed00d
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.