6.5 Using Easy Connect to Connect to a Database
Easy Connect extends the functionality of the host naming method by enabling clients to connect to a database server with an optional port and service name in addition to the host name of the database.
After network connectivity has been verified, you can use the Easy Connect naming method to connect to the database. This naming method provides out-of-the-box TCP/IP connectivity to databases.
The following is the syntax to connect using Easy Connect:
CONNECTusername
/password
@host
[:port
][/service_name
][:server_type
][/instance_name
]
Note:
In Oracle Call Interface documentation, server is referred to as connect_type
.
If Oracle Database server installation was performed in Typical mode, then the default service name used by the Oracle instance is the database name, and the following Easy Connect syntax can be used to connect to that instance:
SQLPLUS /nolog SQL> CONNECTusername
@"host
/db_name"
SQL> Enter password:password
Parent topic: Quick Start to Oracle Net Services