How to Use SQL*Plus to Connect to Database Without Setting Up tnsnames.ora File (Doc ID 376578.1)

Last updated on OCTOBER 28, 2016

Applies to:

SQL*Plus - Version: 9.2.0.6
Information in this document applies to any platform.

Goal

Usually you use a connect string provided in the tnsnames.ora file to connect to a database, for example:

sqlplus scott/tiger@dbconnection

However, you have a requirement to connect to a database using SQL*Plus, without a tnsnames.ora file.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms