Creating an Identity
When you create an identity, it creates a new credential in the target database associated with the connection. You can create multiple identities for a connection. However, you can create an identity only for a connection with runtime identity as resource principal.
Prerequisites
Before creating an identity, ensure that you complete the following tasks.
- Create a connection with the runtime identity as resource principal. See Resource Principal.
-
Grant execute privileges on the
DBMS_CLOUDpackage for the user and the schema specified in the associated Database Tools connection. Each identity is associated with a Database Tools connection, which has a schema and user. For identity to work properly, you must grant the required privileges on theDBMS_CLOUDpackage to this user or schema.grant execute on DBMS_CLOUD to <user>
Additionally, ensure that you complete the following tasks for Oracle Base Database Service. You don't have to perform these tasks for Autonomous Database instances as OCI manages the configuration.
- Install and configure the
DBMS_CLOUDpackage on the target database. Oracle Cloud Infrastructure uses theDBMS_CLOUDpackage to manage and update the credential that you create in the target database. See Installing DBMS_CLOUD. - Create the required networking rules to enable communication between the target database and OCI using HTTPS.
- Install the required certificates and wallet to access the target database.
An identity is created and it creates a new credential, with the specified name, in the target database associated with the connection.