Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ERROR: ORA-12154: TNS:could not resolve the connect identifier specified

872586Jun 30 2011 — edited Jun 30 2011
Hello,

I've instaled oracle 10 in my computer: iMac OS: Mac OS x Version 10.6.8, but when I try connect, I've the error below:


iMac-de-Reinaldo-Ogata:admin oracle$ sqlplus sys/teste@oracle

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jun 30 20:35:05 2011

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


Some commands I've typed and my tnsnames.ora file:


iMac-de-Reinaldo-Ogata:bin oracle$ tnsping teste

TNS Ping Utility for MacOS X Server: Version 10.2.0.4.0 - Production on 30-JUN-2011 20:22:43

Copyright (c) 1997, 2007, Oracle. All rights reserved.

Used parameter files:
/Users/oracle/oracle/product/10.2.0/db_2/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = teste)))
OK (0 msec)
iMac-de-Reinaldo-Ogata:bin oracle$



iMac-de-Reinaldo-Ogata:bin oracle$ tnsping teste

TNS Ping Utility for MacOS X Server: Version 10.2.0.4.0 - Production on 30-JUN-2011 20:22:43

Copyright (c) 1997, 2007, Oracle. All rights reserved.

Used parameter files:
/Users/oracle/oracle/product/10.2.0/db_2/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = teste)))
OK (0 msec)
iMac-de-Reinaldo-Ogata:bin oracle$


# tnsnames.ora Network Configuration File: /Users/oracle/oracle/product/10.2.0/db_2/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

TESTE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = teste)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2011
Added on Jun 30 2011
1 comment
567 views