Cross Tenancy and Cross-Region Cloning
You can clone an Autonomous AI Database instance from one tenancy, source tenancy, to a different tenancy (destination tenancy).
- About Cross Tenancy Cloning
When you create a cross tenancy clone you can either select that the clone is created in the same region as the source tenancy or in a different region than the source tenancy (cross-region). - Prerequisites for Cross Tenancy Cloning
Describes prerequisites for creating a cross tenancy clone where the source database is in one tenancy and the cloned database is in a different tenancy. - Create a Cross Tenancy or Cross-Region Clone
Shows the steps to create a cross tenancy clone when the source database and the cloned database are in the same region, or when the source database and the cloned database are in different regions (cross-region). - Create a Cross Tenancy Clone from a Backup
Shows the steps to create a cross tenancy clone from a backup. - Cross Tenancy Cloning Encryption Key Options
Autonomous AI Database provides several options for the type and location of encryption keys for a cross tenancy clone.
About Cross Tenancy Cloning
When you create a cross tenancy clone you can either select that the clone is created in the same region as the source tenancy or in a different region than the source tenancy (cross-region).
Note:
The cross tenancy cloning option is only available using the CLI or the Autonomous AI Database REST APIs. This option is not available using the Oracle Cloud Infrastructure Console.Note the following for cross tenancy cloning:
-
All clone types are supported: the cloned database can be a Full clone, a Metadata clone, or a Refreshable clone.
-
A clone can be created from a source Autonomous AI Database instance or from a backup (using the latest backup, a specified backup, or by selecting a long-term backup).
-
The source Autonomous AI Database instance can use either the ECPU or OCPU compute model. Depending on your workload type, you can clone from a source that uses the OCPU compute model to a clone that uses the ECPU compute model (this is allowed for the Data Warehouse and the Transaction Processing workload types).
-
The cloned database can be in the same region or in a different region (cross-region).
-
By default a cross tenancy clone inherits the source database's encryption method, either Oracle-managed encryption keys or customer-managed encryption keys.
-
When the source database uses customer-managed encryption keys, you have several options for the encryption keys on a cloned database. See Cross Tenancy Cloning Encryption Key Options for more information.
Parent topic: Cross Tenancy and Cross-Region Cloning
Prerequisites for Cross Tenancy Cloning
Describes prerequisites for creating a cross tenancy clone where the source database is in one tenancy and the cloned database is in a different tenancy.
You must run the commands to create a cross tenancy clone on the destination tenancy. Before you create a cross tenancy clone you need to define OCI Identity and Access Management groups and policies on the source tenancy, the tenancy that contains the instance you are cloning, and on the destination tenancy. The groups and policies you define allow you to run commands to create the clone on the destination tenancy and allow the destination tenancy to contact the source tenancy where the source Autonomous AI Database instance resides.
The OCI Identity and Access Management groups and policies you add support the following:
-
A member of a group in the source tenancy allows a group in the destination tenancy to access (read) the source Autonomous AI Database instance on the source tenancy.
You do not need to allow other actions on the source Autonomous AI Database instance (for example, start, stop terminate, or any write operations).
-
A member of a group in the destination tenancy is allowed to create a clone in the destination tenancy using the Autonomous AI Database instance in the source tenancy as the clone source.
On the destination tenancy you also add a policy that allows a group to manage the Autonomous AI Database instance on the source tenancy. For example, this policy allows the group to create the clone database, and allows a refreshable clone to run commands that contact the source tenancy, such as Refresh and Disconnect.
To create a cross tenancy clone use OCI Identity and Access Management to create the required groups and to define the policies that authorize cross tenancy cloning:
See Getting Started with Policies for more information.
Parent topic: Cross Tenancy and Cross-Region Cloning
Create a Cross Tenancy or Cross-Region Clone
Shows the steps to create a cross tenancy clone when the source database and the cloned database are in the same region, or when the source database and the cloned database are in different regions (cross-region).
Cross-region cloning is not supported in the free tier or for Autonomous Database for Developers instances.
These steps cover creating a Full clone or a Metadata clone. See Create a Cross Tenancy or Cross-Region Refreshable Clone for details on creating a cross tenancy refreshable clone.
Note:
The cross tenancy cloning option is only available using the CLI or the Autonomous AI Database REST APIs. This option is not available using the Oracle Cloud Infrastructure Console.To create a cross tenancy clone:
-
See Notes for Cross Tenancy and Cross-Region Cloning for more information.
-
For information about using the API and signing requests, see REST APIs and Security Credentials.
-
For information about SDKs, see Software Development Kits and Command Line Interface.
Parent topic: Cross Tenancy and Cross-Region Cloning
Create a Cross Tenancy Clone from a Backup
Shows the steps to create a cross tenancy clone from a backup.
These steps cover creating a Full clone or a Metadata clone. See Create a Cross Tenancy or Cross-Region Refreshable Clone for details on creating a cross tenancy refreshable clone.
Note:
The cross tenancy cloning option is only available using the CLI or the Autonomous AI Database REST APIs. This option is not available using the Oracle Cloud Infrastructure Console.To create a cross tenancy clone from a backup:
-
For information about using the API and signing requests, see REST APIs and Security Credentials.
-
For information about SDKs, see Software Development Kits and Command Line Interface.
Parent topic: Cross Tenancy and Cross-Region Cloning
Cross Tenancy Cloning Encryption Key Options
Autonomous AI Database provides several options for the type and location of encryption keys for a cross tenancy clone.
The cross tenancy cloning option is only available using the CLI or the Autonomous AI Database REST APIs. This option is not available using the Oracle Cloud Infrastructure Console.
Note:
By default, a cross tenancy clone inherits the source's encryption key method, either Oracle-managed encryption keys or customer-managed encryption keys. To create a cross tenancy clone that uses customer-managed encryption keys, you must explicitly include the customer-managed encryption key details in OCI CLI command when you create the cross tenancy clone.When the source database uses customer-managed encryption keys, you have the following options for specifying the encryption key type and location when you create a cross tenancy clone:
| Clone Encryption Key | Description |
|---|---|
|
Use Same Key as the Source |
If you want the cross tenancy clone to use the same customer-managed encryption key, that is the key from the OCI Vault on the source database, you must create the required Oracle Cloud Infrastructure Identity and Access Management dynamic group and policies so that the clone can reach the source tenancy's encryption key, and the encryption key must be in the same region as the cross tenancy clone. See Create Dynamic Group and Policies for Customer Managed Keys with Vault in Different Tenancy than the Database for more information. |
|
Use Different Key with Vault in same Tenancy as Clone |
If you want to use a different customer-managed encryption key on the cross tenancy clone, where the encryption key for the cross tenancy clone is in an OCI Vault on the clone's tenancy, you must create the required Oracle Cloud Infrastructure Identity and Access Management dynamic group and policies so that the clone can reach the encryption key, and the encryption key must be in the same region as the clone. See Create Dynamic Group and Policies for Customer Managed Keys with Vault in Same Tenancy as Database for more information. |
|
Use Different Key with Vault in Third Tenancy |
If you want to use a different customer-managed encryption key, where the encryption key resides in an OCI Vault on a third tenancy that is not the tenancy of the source database or the tenancy of the cloned database, you must create the required Oracle Cloud Infrastructure Identity and Access Management dynamic group and policies so that the clone can reach the OCI Vault on the remote tenancy and the OCI Vault must be in the same region as the clone. See Create Dynamic Group and Policies for Customer Managed Keys with Vault in Different Tenancy than the Database for more information. |
|
Use Oracle-managed key |
If you want to use Oracle-managed keys on the remote clone, while the source database uses customer-managed encryption keys, this option is also supported. |
When a cloned database uses customer-managed encryption keys from a remote tenancy:
-
If dynamic group and policies are defined, the Autonomous AI Database details page on the Oracle Cloud Infrastructure Console shows the encryption key name and the key OCID.
-
If the dynamic group and policies are missing (or not valid) or the IAM user in the clone's tenancy do not have sufficient privileges to view the remote key details, the Autonomous AI Database details page shows Encryption key as Customer-managed key.
Note:
Creating a cross tenancy refreshable clone with customer-managed key is not supported.Parent topic: Cross Tenancy and Cross-Region Cloning