[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: oracle 8.7.1



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.
 
From: fabrizio 
Sent: Monday, December 05, 2005 10:25 PM
Subject: Re: oracle 8.7.1

On 12/5/05, salvo.celsomino@virgilio.it <salvo.celsomino@virgilio.it> wrote:
il punto è che la oracle non fornisce più nessun supporto per i
download della versione 8i, client, oci, etc..
che soluzioni ci sono
per connettere in una sarge zope 2.8.2 ad un database oracle 8.1.7
installato su un'altra macchina ?

scusa ma non vedo la necessità di installare per forza un client cosi vecchio.
il database è sito su di una macchina diversa giusto? è un oracle 8.1.7, giusto?
sulla macchina client installi il client della 9.2 o della 10, o se proprio ti vuoi sbrigare addirittura l'instantclient.
ti configuri i tnsnames.ora e vai col mambo! ehm col zope! ;-)
i client sono retrocompatibili con le versioni più vecchie di oracle, e difatti in fase di configurazione del servizio dei nomi locale ti chiede la versione di oracle, se piu nuova della 8 o meno.
quindi scaricati il client tradizionale della 9 o della 10 e vai tranquillo con quello
se ti servono info per la configurazione del tnsnames.ora chiedi pure che anche io ci ho sminchiettato non poco!!!
ciao fabrizio


Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/159 - Release Date: 02/11/2005
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 :

mac@gulliver:~/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 !

mac@gulliver:~/opt/instantclient_10_2$ sqlplus login/password@DB

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> 

Reply to: