|
Re: how to start sqlplus instantclient [message #124901 is a reply to message #124859] |
Wed, 22 June 2005 03:58 |
Frank Naude
Messages: 4581 Registered: April 1998
|
Senior Member |
|
|
Hi,
Start the Oracle Net Configuration Assistant (from menu or by running netca.bat). Select "Net Service Name Configuration" and define your remove databases. If you are not the GUI type, you can edit your TNSNAMES.ORA and SQLNET.ORA files directly.
Restart sqlplus and log in with the remote database's userid/password and the service name you have defined above.
Best regards.
Frank
|
|
|
Re: how to start sqlplus instantclient [message #125010 is a reply to message #124859] |
Wed, 22 June 2005 14:28 |
gia_thornton
Messages: 5 Registered: June 2005
|
Junior Member |
|
|
Hi Frank,
Thank you for your reply. Inorder to use Oracle Net Configuration Assistant, it seems that I need to install oracle. I don't have oracle installed on the machine that I installed instantclient. According to http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html, instantclient does not need oracle. Is it right?
Also according to http://download-west.oracle.com/docs/cd/B12037_01/network.101/b10775/naming.htm#i479578, if I need to define network service name in tnsnames.ora, I need to have one of the following (which I don't have because I don't have oracle on the client machine):
Oracle Enterprise Manager
Oracle Net Manager
Oracle Net Configuration Assistant
Therefore, what I tried at least was to create tnsnames.ora in c:\instantclient with content as:
TNS_ADMIN=c:\instantclient
export TNS_ADMIN
sqlplus system/manager@sevice_name
and put TNS_ADMIN(c:\instantclient) as environment variable.
However, I don't know where to put remote host name. When I started sqlplus, I entered system and manager as user/password. Here is the output I got:
-------------------------------------------------------------
SQL*Plus: Release 10.1.0.3.0 - Production on Wed Jun 22 10:11:15 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter user-name: system
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
-------------------------------------------------------------
Please let me know if you have any suggestion. Thank you.
|
|
|