Oracle Database - Connect Identifier


A connect idenfier is the part of the connect string when a users initiate a connection to designate the service to which they want to connect to.

The connect identifier is :

One of the most common connect identifiers is a net service name, a simple name for a service.

Here below a connection with the connect command of SQL Plus (but you can initiate a connection with an other client such as SQL developer of code)

CONNECT [email protected]_identifier


Connect identifiers used in a connect string cannot contain spaces, unless enclosed within single quotes (') or double quotes (“). In the following examples, a connect identifier and a connect descriptor that contain spaces are enclosed within single quotes:

CONNECT scott/[email protected]'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)
CONNECT scott/[email protected]'cn=sales, cn=OracleContext, dc=us, dc=acme, dc=com'

Single quotes (') are required if a double quote (”) is used in a connect identifier. For example:

CONNECT scott/[email protected]'[email protected]"Fast"' 

Likewise, double quotes (“) are required if a single quote (') is used in a connect identifier. For example:

CONNECT scott/[email protected]"cn=sales, cn=OracleContext, ou=Mary's Dept, o=acme" 

Powered by ComboStrap