ho scaricato SQLPLUS da Oracle:errore SQLPLUS: ORA-12504: TNS: l'ascoltatore non è stato dato il SERVICE_NAME in CONNECT_DATA
http://www.oracle.com/technetwork/topics/winx64soft-089540.html
base Lite e SQL * Plus
Poi ho sparato SQL * Plus:
c:\Program Files\Oracle\instantclient_12_1>sqlplus /nolog
SQL*Plus: Release 12.1.0.2.0 Production on Wed Apr 15 15:25:36 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
e ha cercato di connettersi a un database:
connect user\[email protected]
e ha ricevuto il messaggio di errore:
ERROR:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
Che cosa mi manca?
Ho eseguito il domande suggerite da Jakub, ho ottenuto
SQL> select sys_context('USERENV','SERVICE_NAME') from dual;
SYS_CONTEXT('USERENV','SERVICE_NAME')
--------------------------------------------------------------------------------
SYS$USERS
SQL> select sys_context('USERENV','SID') from dual;
SYS_CONTEXT('USERENV','SID')
--------------------------------------------------------------------------------
877
SQL>
Le entrate tns sono state immesse nel file tnsnames.Ora? – anudeepks
Non ho un file tsnames.ora. Sto tentando di connettermi usando un indirizzo IP (avrei dovuto dirlo, mi dispiace!) – gbritton
Il database si trova nella tua macchina (Windows) o su un server? (probabilmente linux, aix ....)? – anudeepks