|
Step 4 - Connection requests
|
Learn Oracle - Connection Requests
Users initiate a connection request by providing a connect string. A connect string
includes a username and password, along with a connect identifier. This connect
identifier can be the connect descriptor itself, or a name that resolves to the connect
descriptor. One of the most common connect identifiers is a net service name, a simple
name for a service.
The following example shows a connect string that uses net service
name mydb as the connect identifier.
CONNECT scott/tiger@mydb
While the connect identifier is relatively simple as shown, the y can be long and
inconvenient to use if your environment configuration is more complex. With long
connect identifiers, you can use a mapping method that maps the net service name to
the connect descriptor. This mapping information is stored in one or more repositories
of information that are accessed with naming methods.
|
|
|