Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

who to connect to another server using sqlplus 1

Status
Not open for further replies.

zum

Technical User
Mar 31, 2003
148
US
Hi,

I'm trying to use sqlplus to connect to another server running Oracle. I'm doing this on a FreeBSD server.

I use the command,
#sqlplus
which then asks for my username and password.

I'm really just trying to make sure that the Freebsd server can talk to the Sun server that is running Oracle 9i.

FYI, I'm very new to Oracle.

Thanks.
 
Zum,

Yours are good questions, especially for a newbie to Oracle. There are several syntactical options for connecting with a user-name and password to Oracle via SQL*Plus:
Code:
Option 1: sqlplus <username>/<password>@<tns alias>

Option 2: sqlplus <return key>
          username: <username>/<password>@<tns alias>

Option 3: sqlplus <return key>
          username: <username>
          password: <password>@<tns alias>
          (in above option, "****" appear during pw entry)
Once you have connected successfully and you have an SQL> prompt, you can change log-in account with the following command:
Code:
SQL> connect <username>/<password>@<tns alias>
The "tns alias" is the "nickname" for the database to which you are trying to connect. The "nickname" appears in the tnsnames.ora file that resides in your Oracle Home directory, in the network\admin sub-directory.

Let us know of your success.


[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Mufasa,

Thanks for the help, that worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top