Connect to Autonomous Database Using Oracle Database Tools
Oracle Database Tools such as SQL Developer, SQLcl and SQL*Plus can be used with the Autonomous Database.
The following sections provide step-by-step instructions for connecting to Autonomous Database using these tools.
Connect with Oracle Database Actions
Tip:
For a "try it out" alternative that demonstrates these instructions, run Lab 14: Database Actions Console in the Oracle Autonomous Database Dedicated Workshop.By default, only the ADMIN database user has access to Database Actions. Before you can sign in as another database user, the ADMIN user must enable access for that user, as described in Enabling User Access to Database Actions in Using Oracle Database Actions.
Note:
To sign into Database Actions, the system you are using must have network access to the dedicated Autonomous Database, as described in Configure a Development System to Access the Database.-
In your web browser, sign in to Oracle Cloud and navigate to the Details page for the dedicated Autonomous Database.
For instructions, see View Details of a Dedicated Autonomous Database.
-
Open the Tools tab.
-
Click Open Database Actions in the Database Actions tile.
-
In the Database Actions dialog, click the Copy link in the Access URL field to copy the URL to your clipboard.
-
If you are an application developer, paste the URL into a text editor and then change "admin" to the user name of the database user you are signing in as. Copy the edited URL and paste it into your web browser's address bar.
However, as a database administrator, you can paste the copied URL into your web browser's address bar directly.
Connect with Oracle SQL Developer Version 18.2 or Later
Tip:
For a "try it out" alternative that demonstrates these instructions, run Lab 8: Configuring a Development System in the Oracle Autonomous Database Dedicated Workshop.Note:
To connect Oracle SQL Developer to a dedicated Autonomous Database, the system running Oracle SQL Developer must have network access to the database, as described in Configure a Development System to Access the Database.To create a new connection to a dedicated Autonomous Database, do the following:
Connect with Oracle SQL Developer Versions Earlier Than 18.2
Oracle SQL Developer is a free integrated development environment that simplifies the development and management of Oracle Database in both traditional and cloud deployments.
Note:
To connect Oracle SQL Developer to a dedicated Autonomous Database, the system running Oracle SQL Developer must have network access to the database, as described in Configure a Development System to Access the Database.Oracle recommends that you use Oracle SQL Developer version 18.2 or later; however, earlier versions of SQL Developer will work with Autonomous Database.
To create a new connection to a dedicated Autonomous Database, do the following:
Connect with Oracle SQLcl
Tip:
For a "try it out" alternative that demonstrates these instructions, run Lab 8: Configuring a Development System in the Oracle Autonomous Database Dedicated Workshop.Note:
To connect Oracle SQLcl to a dedicated Autonomous Database, the system running Oracle SQLcl must have network access to the database, as described in Configure a Development System to Access the Database.You can use SQLcl version 4.2 or later with Autonomous Database. Download SQLcl from oracle.com.
SQLcl can connect to a dedicated Autonomous Database using either an Oracle Call Interface (OCI) or a JDBC thin connection.
-
If you use Oracle Call Interface (OCI), start by following the instructions in Prepare for Oracle Call Interface (OCI), ODBC, and JDBC OCI Connections.
-
If you use JDBC Thin, start by following the instructions in Prepare for JDBC Thin Connections.
SQLcl with Oracle Call Interface
To connect using Oracle Call Interface, use the –oci
option, supply the database user name, a password, and the database service name provided in the tnsnames.ora
file. For example:
sql -oci
SQLcl: Release 19.1 Production on Mon Jan 18 09:28:38 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Username? (''?) sales_trans@atpc1_low
Password? (**********?) **************
Last Successful login time: Mon Jan 17 2019 15:29:19 -07:00
Connected to:
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Version 19.9.0.0.0
SQL>
When connecting using Oracle Call Interface, the Oracle Wallet is transparent to SQLcl.
SQLcl with a JDBC Thin Connection
To connect using a JDBC Thin connection, first configure the SQLcl cloud configuration and then connect to the dedicated Autonomous Database.
For more information, on the connection types specified in
tnsnames.ora
, see Predefined Database Service Names for Autonomous
Databases.
For information on SQLcl, see Oracle SQLcl.
Connect with SQL*Plus
Tip:
For a "try it out" alternative that demonstrates these instructions, run Lab 8: Configuring a Development System in the Oracle Autonomous Database Dedicated Workshop.Note:
To connect SQL*Plus to a dedicated Autonomous Database, the system running SQL*Plus must have network access to the database, as described in Configure a Development System to Access the Database.To install and configure the client and connect to a dedicated Autonomous Database using SQL*Plus, do the following:
Connect to Autonomous Database Using Oracle Database Tools
Copyright © 2021, Oracle and/or its affiliates.