In my case, I received ORA-12514 error when trying to connect via SQL * Plus from the client only . remote database:
C:\Temp>sqlplus username@connect _descriptor SQL*Plus: Release 11.2.0.3.0 Production on Wed Sep 24 09:43:04 2014 Copyright (c) 1982, 2011, Oracle. All rights reserved. Enter password: ERROR: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
I found this cryptic because tnsping answered successfully:
C:\Temp>tnsping connect_descriptor TNS Ping Utility for 32-bit Windows: Version 11.2.0.3.0 - Production on 24-SEP-2 014 09:48:04 Copyright (c) 1997, 2011, Oracle. All rights reserved. Used parameter files: D:\Oracle\product\11.2.0\client_1\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host .intranet.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = HOST13))) OK (20 msec)
Ultimately, I found my problem as an incorrect SERVICE_NAME value in the tnsnames.ora file:
CONNECT_DESCRIPTOR = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host.intranet.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = HOST13) ) )
After changing HOST13 (via a regular text editor) to the correct value for SERVICE_NAME , I was able to connect to the remote Oracle database.
On my Oracle 11.2 client machine, here is the location of tnsnames.ora :
C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora
DavidRR
source share