Home » RDBMS Server » Networking and Gateways » connect remote database without providing SID (ORALCE 8.0.5)
connect remote database without providing SID [message #450210] Mon, 05 April 2010 14:12 Go to next message
awesome75
Messages: 1
Registered: April 2010
Location: FAIRFAX
Junior Member
Hi
i need to connect to a remote database located on a different server using sqlplus without using database name in connect string.

e.g. if mydb1 (located on another database server on network)

sqlplus username/password

is it possible? i am able to do this on local database but not on the remote database

Re: connect remote database without providing SID [message #450214 is a reply to message #450210] Mon, 05 April 2010 14:18 Go to previous messageGo to next message
BlackSwan
Messages: 22845
Registered: January 2009
Senior Member
>is it possible?
NO

sqlplus username/password@TNS_alias


Re: connect remote database without providing SID [message #450215 is a reply to message #450210] Mon, 05 April 2010 14:18 Go to previous messageGo to next message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes you can connect, just read the documentation:
SQL*PlusĀ® User's Guide and Reference

Regards
Michel

[Updated on: Mon, 05 April 2010 14:19]

Report message to a moderator

Re: connect remote database without providing SID [message #450217 is a reply to message #450215] Mon, 05 April 2010 14:24 Go to previous messageGo to next message
BlackSwan
Messages: 22845
Registered: January 2009
Senior Member
OK, I had forgotten about TWO_TASK
I'm getting old & senile.

When you get older, the memory is the 2nd faculty that fails & I don't remember which is the 1st
Re: connect remote database without providing SID [message #450218 is a reply to message #450217] Mon, 05 April 2010 14:36 Go to previous messageGo to next message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
You can also use Easy Connect Naming

Regards
Michel
Re: connect remote database without providing SID [message #450220 is a reply to message #450210] Mon, 05 April 2010 14:37 Go to previous messageGo to next message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
2 useful topics in AskTom:
How to connect SQLPlus without tnsnames.ora
TWO_TASK environment variable on windows

Regards
Michel

[Updated on: Mon, 05 April 2010 14:38]

Report message to a moderator

Re: connect remote database without providing SID [message #450221 is a reply to message #450218] Mon, 05 April 2010 14:40 Go to previous messageGo to next message
BlackSwan
Messages: 22845
Registered: January 2009
Senior Member
Michel Cadot wrote on Mon, 05 April 2010 12:36

Easy Connect Naming


Did Easy Connect exist for V8.0.5?
Re: connect remote database without providing SID [message #450259 is a reply to message #450221] Tue, 06 April 2010 01:16 Go to previous message
Michel Cadot
Messages: 59293
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Doh! didn't see the version.
Of course, it doesn't, was introduced in 10.1

Regards
Michel
Previous Topic: oracle connection
Next Topic: Instalation-Product-Specific Prerequisite Checks Window
Goto Forum:
  


Current Time: Thu Oct 02 04:33:45 CDT 2014

Total time taken to generate the page: 0.13861 seconds