« Installing Required RPMs from DVD Before You Install Oracle Database 10g or 11g | Main | New Oracle Public Yum Server »

Another One From the Archives: Easy Connection Identifier

My good friend Joel showed me how you can connect to a (remote) database using an easy connect identifier. Here's how it works:

    sqlplus sergiodb/sergiodb@//127.0.0.1:1521/mvl

It looks to be a way of constructing a connect identifier that's new since database 10g Release 1. The syntax is as follows:

   [//]host[:port][/service_name]

The documentation sums it up nicely: The easy connection identifier can be used wherever you can use a full connection identifier, or a net service name. The easy syntax is less complex, and no tnsnames.ora entry is required.

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mt/mt-tb.cgi/10544

Comments (1)

The syntax was enhanced in Oracle 11g:

[//]host_name[:port][/service_name][:server_type][/instance_name]

E.g. to use Oracle 11g DRCP connection pooling in a tool that supports it, the connection string would be: hr/hrpwd@myserver.mydomain:pooled

See http://download.oracle.com/docs/cd/B28359_01/network.111/b28316/naming.htm#BABIHAAA

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on March 10, 2009 1:30 PM.

The previous post in this blog was Installing Required RPMs from DVD Before You Install Oracle Database 10g or 11g.

The next post in this blog is New Oracle Public Yum Server.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle