My Oracle Support Banner

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:
Information in this document applies to any platform.


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.


To view full details, sign in with your My Oracle Support account.

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

In this Document
     Scenario #1
     Scenario #2
     Scenario #3

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.