Open the navigation menu and click Developer
Services.
Under Database Tools, click Connections. The
Connections window displays a list of existing
connections.
In the List Scope section, select the
Compartment containing the database for which you
want to view a connection.
To display only database connections in a specific state, use the
State menu in the Filters
section. The choices are:
Any state (default)
Creating
Active
Updating
Failed
Deleting
Deleted
In the Tag filters section, use the
add and clear controls to
filter your list of connections by defined or free-form tags. See Resource Tags for
information about using tags to manage your OCI resources, and To filter a list of
resources by a tag for instructions on filtering resources by
tags.
Optionally, you can use the Actions menu (three dots) at the end of each row to
perform the following tasks:
View Details
SQL Worksheet
Validate
Move Resource
Copy OCID
Add Tags
View Tags
Delete
To view Database Connection details 🔗
Using the Database Connections Details page, you can make updates
to an existing connection. You can also do the following:
Use this connection in a SQL Worksheet
Use SQLcl in an Oracle Cloud Infrastructure Cloud Shell session for
Oracle Cloud Databases
Validate the connection
Move the connection to another compartment
Add resource tags to the connection
Delete the connection
In the Console, open the navigation menu and click Developer
Services.
Under Database Tools, click
Connections. The Connections
window displays a list of existing connections.
In the List Scope section, click the
Compartment drop-down menu to select the compartment
containing the database for which you want to view a connection. Alternately, click
on the field displaying the name of the currently selected compartment. The field
text changes to Search compartments, and you can type the
name of your desired compartment into the field.
To display only database connections in a specific state, use the
State menu in the Filters
section. The choices are:
Any state (default)
Creating
Active
Updating
Failed
Deleting
Deleted
In the Tag filters section, use the
add and clear controls to
filter your list of connections by defined or free-form tags. See Resource Tags for
information about using tags to manage your OCI resources, and To filter a list of resources by
a tag for instructions on filtering resources by tags.
To view the details of a Database Tools connection, click the name of
the listed connection. The Connection Details page for the connection is
displayed.
Click SQL Worksheet to open an SQL Worksheet. See Using SQL Worksheet for instructions.
Click >_Launch SQLcl to open an SQL Cloud
Shell session. The session then uses SQLcl and the database connection to
directly log into the database.This option is only available for Oracle Cloud
Databases.
Note
By default, Cloud Shell limits network access to OCI internal resources in
your tenancy home region unless you have enabled the Cloud Shell managed Public
Network. Your administrator must configure an Identity policy to
enable Cloud Shell Public Network. For more information, see Cloud Shell Networking.
When using a database with a private endpoint, you can connect over a
Bastion Service. In the Launch SQLcl panel, click the
Bastion menu to choose an existing Bastion.
Optionally, click Change Compartment link to find a
bastion in a different compartment. See the Bastion Serivce documentation for
information about using bastions.
If no bastions are available, click Create
Bastion to create one. Enter the bastion name and
compartment you want to create it in, then click
Create.
Once a bastion is
selected, click Launch at the bottom of the
Launch SQLcl panel. SQLcl creates a tunnel to access the database
service and opens the OCI Cloud Shell interface in the browser.
Click Edit to update the connection name, database user name
and password, password secret, connection string, wallet format, and wallet
secret.
Click Validate to validate the connection. Validating a
connection uses the connection details to attempt to log into the database and run a
simple SQL query. After the validation is attempted, the Validate
Connection message box is displayed, showing the results of the
validation.
Click More Actions and select an item from the menu to move
the connection to another compartment, add tags, or delete the connection.
Click Move Resource to move the connection to a
different compartment. In the Move Resource to a Different
Compartment dialog, use the Choose New
Compartment menu to select another compartment, then click
Move Resource to move the connection to the
selected compartment.
Select a different compartment for the password secret.
Enter a different connection string.
Select a new key store (wallet) format.
Click Save Changes.
To add or remove Connection Properties 🔗
The Connection Details page includes a Connection
Properties section that shows any additional properties of the
connection. This section displays by default when you navigate to the details page, or
whenever you click Connection Properties in the
Resources section.
Used to create an encrypted connection to a MySQL Database. The three
option values are:
REQUIRED: Establish an encrypted
connection if the server supports encrypted connections. The
connection attempt fails if an encrypted connection cannot be
established.
VERIFY_CA: Like REQUIRED, but
additionally verify the server Certificate Authority (CA)
certificate against the configured CA certificates. The
connection attempt fails if no valid matching CA certificates
are found.
VERIFY_IDENTITY: Like VERIFY_CA, but
additionally perform host name identity verification by checking
the host name the client uses for connecting to the server
against the identity in the certificate that the server sends to
the client.
In the list of Connection Properties on the Connection
Details page, click the checkbox at the beginning of the row for each connection
property you want to remove.
Click Remove, then confirm that you want to remove the
selected connection properties.
To view Database Connection work requests 🔗
The Connection Details page includes a section that shows any work requests
generated for the connection in the last 72 hours. See Work Requests for more information
on using work requests in Oracle Cloud Infrastructure.
Click Work Requests under
Resources on the Connection Details page. See To view Database Connection details for instructions on navigating to a Connection Details page.
In the list of work requests, click the name of the Operation
to display the Work Request Details page.
On the Work Request Details page, under Resources:
Click Log Messages to display any logs for the work
requests.
Click Error Messages to display any error messages
for the work requests.
Click Associated Resources to show the name of the
connection associated with the work request.
To delete a Database Connection 🔗
You can delete a database connection in the two following locations.