Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 187959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:55:04+00:00 2026-05-11T15:55:04+00:00

My goal is to connect to an Oracle 9i instance from my OS X

  • 0

My goal is to connect to an Oracle 9i instance from my OS X machine. I’ve followed the setup instructions here and got through them with no errors (eventually). However, I’m finding that sqlplus is unable to connect:

[ 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. 

Looooong wait…

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: 

My tnsnames.ora file…

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

Maybe there’s an env variable that needs to be set?


UPDATE

Able to ping DB host machine no problem.

Tried…

sqlplus xxx/yyy@//dbhost/zzz 

Got…

ERROR: ORA-12170: TNS:Connect timeout occurred 

Tried using SID instead of SERVICE_NAME in tnsnames.ora. Did not seem to change the result. Reverted back to SERVICE_NAME.


Last couple entries in 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 

PARTIAL ANSWER

Thanks everyone for your answers. They were helpful. I found that there was a DNS issue. I was able to ping by hostname, so thought that should work fine. I also tried I.P. address. Turned out that I needed the internal ‘10.1.x.x’ I.P. address for it to work on this OS X machine (but hostname is fine on Windows).

At this point, I can connect with…

sqlplus xxx/yyy@//INTERNAL_IP/zzz 

However, with those values entered into tnsnames.ora, this still doesn’t work…

sqlplus xxx/yyy@zzz 

…

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

I searched for a sample tnsnames.ora file that was close to what I needed and copied the contents into my file. Changed the params and now everything works. Not sure why mine wasn’t working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:55:04+00:00Added an answer on May 11, 2026 at 3:55 pm

    Since you are using a 10g client, it’s advisable to use Easy Connect syntax instead:

    export TWO_TASK=//dbhost/zzz sqlplus xxx/yyy 

    , or just this:

    sqlplus 'xxx/yyy@//dnhost/zzz' 

    Also check your ORACLE_HOME points to the right folder: tnsnames.ora is searched for in $ORACLE_HOME/network/admin/tnsnames.ora

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The goal: Connect to database using php to extract results Loop through results Store
Overall goal of my project is to connect to a Oracle database that is
Goal: Produce an Excel document with information from 3 associated models that is similar
GOAL : To customize the background view of cell. Here is what I am
Goal: to create a percentage column based off the values of calculated columns. Here's
My goal is to connect to an OWA page (Microsoft Office Outlook Web Access
I'm trying to connect actions in Spinner with AutoCompleteTextView. My goal is when user
I just set up a new LAMP server. I can connect to mysql through
My goal is to create telnet clients as endpoints per the TCP4ClientEndpoint implementation. Here's
My goal is to connect to my database either manually or using an sqladapater,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.