7 Share Data
This chapter provides details on managing data shares, assets, and recipients in your AI Data Platform.
Topics:
- Data Sharing
- Create a Share
- Modify a Share
- Delete a Share
- View Share Details
- Add an Asset to a Share
- Remove an Asset from a Share
- Add Recipients to Data Sharing
- Add an Existing Recipient to a Share
- Manually Activate a Recipient
- Resend Activation Link to a Recipient
- Remove Recipient from a Share
- Modify a Recipient
- View Recipient Details
- Delete a Recipient
Data Sharing
Data Sharing in Oracle AI Data Platform enables secure and efficient real-time data sharing across and within the organization without data duplication.
- Create a share.
- Add assets that you want to share. An asset can be a schema or table.
- Create and add recipients to a share. A share and recipient can be access controlled using permissions model.
- Activate the recipients.
From the Data Sharing page you can see all Shares in your AI Data Platform, all recipients of Shares in your AI Data Platform, your Shares, and Shares others have made you a recipient for.
From the Shares tab, you can see the details of Shares in your AI Data Platform, including the number of assets in a Share, number of recipients, and who owns the share. You can create a new Share by clicking Create share next to the search bar.
Clicking on a Share lets you see the shared assets, recipients, details, and RBAC permissions. From the Assets tab you can add assets to the share. From the Recipients tab you can manage the recipients for this specific share, create new recipients, or share with existing recipients. The Details tab provides the name, description and creation details of the Share. From the Permissions tab you can manage the RBAC permissions for that Share.
From the Recipients tab at the top level of Data Sharing, you can see details of the Share recipients in your AI Data Platform. You can create new recipients by clicking Create recipient next to the search bar.
Clicking on a recipients name shows Shares the recipient is added to, details for that recipient, and the RBAC permissions for that recipient.
Handling Token Expiry
Oracle AI Data Platform can regenerate bearer tokens for data sharing for active recipients. If the current bearer token has not expired, you can extend the duration of the bearer token by calling the updateSecretExpiry API using a curl command:
curl
--header 'Authorization: Bearer <token>’
--header 'Content-Type: application/json'
--data '{"existingTokenExpireInSeconds":"<duration>"}'
--request POST ‘<delta_share_endpoint>/updateSecretExpiry'
- <token> is the bearer token value in the share profile
- <duration> is the duration of the new token in seconds
- <delta_share_endpoint> is the Delta Share endpoint. You can get this value for a recipient by using
sql("DESCRIBE recipient <<recipient_name>>")
and checking the value of the recipient'sdelta_share_enpoint
.
Limitations
- You can send the activation token email using an email application or by copying the activation link and composing an email using their existing email service.
- You cannot share volumes or workspace files (data, notebook, sql or python files) using data sharing.
Create a Share
You must create a Share as a container for managing shared assets as part of AI Data Platform data sharing.
- On the Home page, click Data Sharing.
- Click
Create Share.
- Enter a name and description for your Share.
- Click Create.
Modify a Share
You can update the name and description of your Shares after creation.
- On the Home page, click Data Sharing.
- Next to the share to modify, click
Actions then click Edit.
- Enter a new name or description for your Share. Click Save.
Delete a Share
You can delete a Share that is no longer needed.
- On the Home page, click Data Sharing.
- Next to the share to delete, click
Actions then click Delete.
- Click Delete.
View Share Details
- On the Home page, click Data Sharing.
- Click to the Shares tab.
- Click the share name and click the Details tab.
Add an Asset to a Share
After creating a Share, you can add assets to be shared with recipients.
- On the Home page, click Data Sharing.
- Click the name of the Share to add assets to.
- On the Assets tab, click
Add asset.
- Select Workspace or Catalog as the asset source.
- Use the search bar or navigate to the asset you want to share. Select it and click Add.
Remove an Asset from a Share
You can remove assets you no longer want to be a part of a Share.
- On the Home page, click Data Sharing.
- Click the name of the Share to remove assets from.
- On the Assets tab, next to asset you want to remove
click
Actions then click Delete.
- Click Delete.
Add Recipients to Data Sharing
You must add recipients before you can include them in Shares.
- On the Home page, click Data Sharing.
- Click the Recipients tab.
- Click
Create recipient.
- Enter a name and description for the recipient.
- Optional: Enter the email address to send an activation link to for the recipient.
- Click Create.
Add an Existing Recipient to a Share
You can add recipients that already exist in your AI Data Platform to a Share.
- On the Home page, click Data Sharing.
- Click the name of a Share to add an existing recipient to.
- Click the Recipients tab.
- Click
Share with existing recipients.
- Search for a user and select the box next to the recipient name.
- Click Share.
Manually Activate a Recipient
You can choose to manually activate recipients if there are issues preventing them from using the email activation links.
- On the Home page, click Data Sharing.
- Click to the Recipient tab.
- Click the recipient name and click the Details tab.
- Next to Activation status click Activate.
- Copy the activation link from the prompt and paste into a separate window.
- Verify the Activation status is now set to Active.
Resend Activation Link to a Recipient
If the activation link was lost, deleted, or otherwise not received by a recipient, you can resend the activation link to the provided email address.
- On the Home page, click Data Sharing.
- Click to the Recipient tab.
- Click the recipient name and click the Details tab.
- Next to Activation email link click Send activation link. Your configured email application opens.
- Review and send the email to the recipient.
Remove Recipient from a Share
You can remove a recipient from a Share, keeping the recipient but removing their access to assets in that Share.
- On the Home page, click Data Sharing.
- Click the share you want to remove recipients from.
- Click the Recipients tab.
- Next to the recipient you want to remove, click
Actions then click Remove.
Modify a Recipient
You can update the name, description, and email address for a recipient after creation.
- On the Home page, click Data Sharing.
- Click to the Recipient tab.
- Next to the recipient to update, click
Actions then click Edit.
- Enter a new name or description for your recipient. Click Save.