¿Cómo es que sqlplus no se conecta?

Mi objetivo es conectarme a una instancia de Oracle 9i desde mi máquina con OS X. He seguido las instrucciones de configuraciónaqu y los superé sin errores (eventualmente). Sin embargo, descubro que sqlplus no puede conectarse:

[ ethan@gir ~ ]$ sqlplus xxx/yyy@zzz

SQL*Plus: Release 10.2.0.4.0 - Production on Fri Apr 17 10:13:08 2009

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

Muuuy espera ...

ERROR:
ORA-12170: TNS:Connect timeout occurred

Enter user-name: xxx
Enter password: 
ERROR:
ORA-12162: TNS:net service name is incorrectly specified

Enter user-name:

Mitnsnames.ora archivo..

zzz =
  (DESCRIPTION = 
    (ADDRESS_LIST =
      (ADDRESS =
        (PROTOCOL = TCP)
        (HOST = dbhost)
        (PORT = 1521))
    )
  (CONNECT_DATA =
    (SERVICE_NAME = zzz)
  )
)

Tal vez hay una variable de entorno que debe establecers

ACTUALIZA

Puede hacer ping a la máquina host DB sin problema.

Intentó..

sqlplus xxx/yyy@//dbhost/zzz

Tiene..

ERROR:
ORA-12170: TNS:Connect timeout occurred

Intenté conSID en lugar deSERVICE_NAME en tnsnames.ora. No pareció cambiar el resultado. Volvió aSERVICE_NAME.

Últimas entradas en sqlnet.log ...

***********************************************************************
Fatal NI connect error 12170.

  VERSION INFORMATION:
    TNS for MacOS X Server: Version 10.2.0.4.0 - Production
    TCP/IP NT Protocol Adapter for MacOS X Server: Version 10.2.0.4.0 - Production
  Time: 17-APR-2009 10:33:06
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535
    TNS-12535: Message 12535 not found; No message file for product=network, facility=TNS
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Message 505 not found; No message file for product=network, facility=TNS
    nt secondary err code: 60
    nt OS err code: 0


***********************************************************************
Fatal NI connect error 12170.

  VERSION INFORMATION:
    TNS for MacOS X Server: Version 10.2.0.4.0 - Production
    TCP/IP NT Protocol Adapter for MacOS X Server: Version 10.2.0.4.0 - Production
  Time: 17-APR-2009 11:24:08
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535
    TNS-12535: Message 12535 not found; No message file for product=network, facility=TNS
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Message 505 not found; No message file for product=network, facility=TNS
    nt secondary err code: 60
    nt OS err code: 0

RESPUESTA PARCIAL

Gracias a todos por sus respuestas. Fueron de gran ayuda. Encontré que había un problema de DNS. Pude hacer ping por nombre de host, así que pensé que debería funcionar bien. También probé I.P. habla a. Resultó que necesitaba laintern "10.1.x.x" I.P. dirección para que funcione en esta máquina con OS X (pero el nombre de host está bien en Windows).

En este punto, puedo conectarme con ...

sqlplus xxx/yyy@//INTERNAL_IP/zzz

Sin embargo, con esos valores ingresados en tnsnames.ora, esto todavía no funciona ...

sqlplus xxx/yyy@zzz

...

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

Busqué un archivo tnsnames.ora de muestra que estaba cerca de lo que necesitaba y copié el contenido en mi archivo. Cambió los parámetros y ahora todo funciona. No estoy seguro de por qué el mío no estaba funcionando.

Respuestas a la pregunta(9)

Su respuesta a la pregunta