Our Blog. We have some things we'd like to share.

Accessing oracle with sqlplus and no tnsnames

If you want to access a database without it being in your tnsnames.ora file, you can use a ‘URL’ at the command line:

sqlplus login/pwd@//hostname:1521/sidname

This should work with versions 9 and above. Let me know if other versions work.

Tagged:

One Response to “Accessing oracle with sqlplus and no tnsnames”

  1. 1

    August 23rd, 2006 @ 4:00 pm Me responded:

    Uh, wrong!
    That only works in 10g and the syntax is:
    sqlplus login/pwd@//hostname:1521/servicename
    Get on the ball bud!

Leave a Response

Cincinnati 513.298.1865

Virginia 7875 Promontory Court Dunn Loring, VA 22027

Kentucky 12910 Shelbyville Road Suite 310 Louisville, KY 40243 502.245.6756

© 2010 Mission Data