ho installato il più recente Oracle instant client
package - basic, sqlplus,sdk version 10.2.0.1
quindi ho seguito le istruzioni trovate in rete che
allego a questo post:
mi ritorna un TNS Error da sqlplus
ORA-12154:
could not resolve the connect identifier
specified.
|
Thu, 15 Sep 2005 How to run an Oracle client on Debian Sarge Get the files Go to http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html and download the following files : instantclient-basic-linux32-10.2.0.1-20050713.zip, instantclient-sqlplus-linux32-10.2.0.1-20050713.zip, instantclient-sdk-linux32-10.2.0.1-20050713.zip (free reg. required)
Unzip them. pkunzip instantclient*zip This will create a directory named instantclient_10_2 with all the files you need. Put it somewhere which makes sense (I moved it to /home/mac/opt/instantclient_10_2) Prepare the environment Create a file named setenv.sh : export ORACLE_HOME=/home/mac/opt/instantclient_10_2 export PATH=/home/mac/opt/instantclient_10_2/:${PATH} export LD_LIBRARY_PATH=/home/mac/opt/instantclient_10_2/:${LD_LIBRARY_PATH} and source it : . setenv.sh Test Just run sqlplus. If you got this things look really cool : [EMAIL PROTECTED]:~/opt/instantclient_10_2$ sqlplus SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 15 17:05:51 2005 Copyright (c) 1982, 2005, Oracle. All rights reserved. Enter user-name: Configure your tnsnames.ora Create a file named ~/.tnsnames.ora with the usual tnsnames content : DB=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=db.sample.com))) Enjoy ! [EMAIL PROTECTED]:~/opt/instantclient_10_2$ sqlplus login/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 15 18:31:00 2005 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production SQL>