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.
This entry was posted
on Friday, July 28th, 2006 at 2:07 pm by steveny and is filed under Oracle.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
One Response to “Accessing oracle with sqlplus and no tnsnames”
August 23rd, 2006 at 4:00 pm
Uh, wrong!
That only works in 10g and the syntax is:
sqlplus login/pwd@//hostname:1521/servicename
Get on the ball bud!