Create a Database Connection
For Password-Based Authentication
-
Create a Database Tools connection
dbuser@dbtoolsmcpwith the schema that will be used to connect to the database.For more information about creating a connection, see Creating a Connection.
-
Enter the following details when creating the connection:
- Select Oracle Autonomous AI Database.
- Enter username: ADMIN.
- Select user password secret.
- Select Wallet format: Oracle auto-login wallet (for example, cwallet.sso)
- Select SSO wallet content secret.
- In Advanced options - Settings, set Runtime
Identity to Resource Principal.
Note
- Connection resource principal is used to retrieve secrets.
- The user password secret and wallet content secret must be created in the same compartment where the Database Tools connection resource principal is allowed to read secrets.
For Token-Based Authentication
- Create a Database Tools connection
admin@dbtoolsmcpin thedbtools-mcpcompartment with a privileged user (for example,ADMIN) using password-based authentication.Note
This connection is required only for configuring OCI_IAM external authentication in the database. - Enable IAM Authentication in the database.
- Select the
admin@dbtoolsmcpconnection. - Expand Actions and select Configure external authentication.
- For External authentication type, select OCI_IAM.
- Click Update to save the configuration.
- Select the
-
Create another Database Tools connection
dbtoolsmcpin thedbtools-mcpcompartment using token-based authentication.When creating the connection, do the following:
- Select Oracle Autonomous AI Database.
- In Advanced Options - Authentication, enable Use token based authentication.