Connect with SQL*Plus

SQL*Plus is a command-line interface used to enter SQL commands. SQL*Plus connects to an Oracle database.


To connect SQL*Plus to an Autonomous Transaction Processing dedicated database, the system running SQL*Plus must have network access to the database.

To install and configure the client and connect to an Autonomous Transaction Processing dedicated database using SQL*Plus, do the following:

  1. Prepare to connect by following the instructions in Prepare for Oracle Call Interface (OCI), ODBC, and JDBC OCI Connections.
  2. Connect using a database user, password, and database service name provided in the tnsnames.ora file.

    For example:

    sqlplus sales_trans@atpc1_low  
    SQL*Plus: Release - Production on Wed Apr 3 15:09:53 2019
    Copyright (c) 1982, 2018, Oracle.  All rights reserved.
    Enter password:
    Last Successful login time: Wed Apr 03 2019 14:50:39 -07:00
    Connected to:
    Oracle Database 18c Enterprise Edition Release - Production


    The Oracle Wallet is transparent to SQL*Plus because the wallet location is specified in the sqlnet.ora file. This is true for any Oracle Call Interface (OCI), ODBC, or JDBC OCI connection.