자동 복제 설정하기¶
이 섹션에서는 클라우드 데이터 보안 공유 데이터 제품 및 애플리케이션 패키지 데이터 제품에 대한 클라우드 간 자동 복제(자동 복제)를 설정하는 방법에 대해 설명합니다. 또한 목록에 대한 오브젝트 수준 자동 복제를 설정하는 방법도 설명합니다.
먼저 목록에 데이터 제품을 추가해야 자동 복제를 설정할 수 있습니다. 또한 자동 복제를 설정하는 단계는 제공하는 데이터 제품과 목록을 제공하는 방법에 따라 다릅니다.
오브젝트 수준 자동 복제 설정¶
목록과 연결된 데이터 제품을 다른 Snowflake 리전으로 자동 전송하도록 자동 복제를 구성할 수 있습니다. SUB_DATABASE 자동 복제를 사용하고 자동 복제를 통해 데이터 제품의 테이블과 뷰만 원격 리전으로 복제하도록 선택할 수도 있습니다. 이를 통해 비용을 절감하고 자동 복제 데이터 제품의 관리 부담을 완화할 수 있습니다.
아래 단계에서는 목록에 대한 오브젝트 수준 자동 복제를 설정하는 방법을 설명합니다. 일반적인 워크플로의 일부로, 리전 가용성을 설정할 때(Snowflake Marketplace 에 게시된 목록의 경우) 또는 다른 리전에 위치한 컨슈머를 추가할 때(비공개로 공유된 목록의 경우) 오브젝트 수준 자동 복제를 설정할 수 있습니다.
목록 만들기. 새 목록 만들기 섹션을 참조하십시오.
지원되는 오브젝트만 포함된 데이터 제품을 추가하십시오.
자동 복제 설정을 시작하려면 공유할 리전 또는 계정을 설정합니다.
Snowflake Marketplace 에 게시된 목록의 경우:
Region Availability 섹션을 찾고 Add 를 선택합니다.
Region availability 의 경우 기본값인 All regions 를 유지하거나 목록에 Custom regions 를 선택합니다.
비공개로 공유되는 목록의 경우 원격 리전의 컨슈머 계정을 추가합니다.
원격 리전의 데이터 제품을 업데이트할 때 원하는 새로 고침 간격을 선택합니다.
목록을 게시하거나 초안으로 저장합니다.
Set up auto-fulfillment for a listing that spans databases¶
Providers can create a single listing that spans databases, eliminating the need to create one combined database per listing. In this case, all listings associated with a database are auto-fulfilled together.
Workflow¶
A provider has a database (main database) that they want to share. They also have views in that database that reference objects in another database (referenced database).
The provider creates a share in the main database.
Using GRANT <권한> … TO SHARE, the provider grants the following required privileges to the share:
The provider grants the USAGE privilege on the main database that contains the view to the share.
The provider grants the REFERENCE_USAGE privilege on the referenced database to the share.
The provider grants the USAGE privilege on the schema that contains the view to the share.
The provider grants the SELECT privilege on the view to the share.
The provider creates a listing with the share and enables auto-fulfillment for cross-region cross-cloud consumers.
For more information, see 여러 데이터베이스에서 데이터 공유하기.
Supported reference types¶
When REFERENCE_USAGE is granted on a database to a share, the following reference types are supported:
A view referencing a table or view in another database.
Tables or views with policies when these policies are stored in another database.
Tables or views with tags when these tags are stored in another database.
참고
A tag without an attached policy in a different database will only be replicated if reference usage is granted. Otherwise, replication will be skipped. See GRANT <권한> … TO SHARE for more information. If the tag is used in tag-based masking, then the share is treated as a table or view with row-access policies.
Limitations¶
Snowflake groups listings together when refreshing the data. Setting up listings that span multiple databases can change the way listings are grouped. As a result, the following might be affected:
The listing refresh history can be missing or incorrect after update the auto-fulfillment schedule.
Setting the
refresh_schedule_overrideoption may be required. When this option is missing, a resulting error message will include the list of listings that were affected by the change in the order that the listings were grouped.
Usage notes¶
When setting up auto-fulfillment, if the selected and referenced databases include existing listings, then the values in the Data product refresh section default to the existing refresh schedule. As a result, changes to the auto-fulfillment refresh schedule apply to all other listings associated with this database and with the referenced database.
Examples¶
For examples on how to create a secure view that references objects and other views in one or more databases, see the Share data from multiple databases examples.
After you create a secure view, you can create a listing that includes the secure view and set up auto-fulfillment on the listing. For examples on how to create listings on the Snowflake Marketplace, see Create and publish a listing.