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 574783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:52:05+00:00 2026-05-13T13:52:05+00:00

Borderline ServerFault question, but figured I’d try here first since I’ve had luck with

  • 0

Borderline ServerFault question, but figured I’d try here first since I’ve had luck with Oracle questions in the past.

I’m trying to connect to an oracle database from PHP, and I’m getting the following error.

ORA-12505: TNS:listener does not currently know of SID given in connect descriptor

This is the error that PHP reports, and the error that shows up in Oracle’s listener.log.

My immediate problem is fixing this error. The larger question I’d like answered is how does Oracle connection model work?

This is in a development environment that’s running on my local windows machine and has been working up until now. Unfortunately, the environment was handed to me (I didn’t set it up) and the people who did set it up are unavailable to help me debug it.

If I was getting a similar error with MySQL or PostgreSQL (two systems I’m more familiar with), I’d check to ensure that a database process was running, and then attempt to connect manually to the database using the username/password/connection string. Unfortunately, I’m not familiar with the Oracle tools on windows (other than SQL Developer) and I don’t know what a TNS:listener or SID are in the context of Oracle (I have vague ideas, but vague ideas rarely help when you’re debugging something like this)

Any general advice would be appreciated.

Updates per Comments:

There’s a number of entires in my tnsnames.ora file, the relevant entry being

OBS2 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = steel-ae39650)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = OBS2)
    )
  )

This is not reflected in the list of instances when I run

    LSNRCTL> services

So I think my next question is, how do I attempt to manually start up the OBS2 instance?

  • 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. Editorial Team
    Editorial Team
    2026-05-13T13:52:06+00:00Added an answer on May 13, 2026 at 1:52 pm

    A TNS name is like an alias to your service instance. The TNS listener service acts as a sort of lookup service for you in this regard. It will fail with that error message if the actual service you’re trying to connect to via a TNS name isn’t valid.

    You can then test out to see if the TNS listener sees the service correctly using the command line tool:

    %>lsnrctl services
    

    Which should output something like the following:

    Service "myservice" has 1 instance(s).
      Instance "myinstance", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1002 state:ready
             DISPATCHER <machine: LOCALHOST, pid: 12345>
             (ADDRESS=(PROTOCOL=tcp)(HOST=LOCALHOST)(PORT=6789))
    

    Can you please post the relevant TNS entry (in the tnsnames.ora file)? It is located in ORAHOME\client or db\ADMIN\NETWORK. If you have both client and server, make sure both copies of the tnsnames.ora file have correct values, just to be safe.

    Here’s an example of a proper TNS name definition in tnsnames.ora called ‘mydb’:

    myDbAlias =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 12345)(QUEUESIZE = 100))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = myservice)
        )
      )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 300k
  • Answers 300k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Thanks to a nice #boost IRC user (mjcaisse), I have… May 13, 2026 at 8:00 pm
  • Editorial Team
    Editorial Team added an answer How to fetch date ranges that intersect with another range… May 13, 2026 at 8:00 pm
  • Editorial Team
    Editorial Team added an answer You need the command reshape: Say your initial matrix is… May 13, 2026 at 7:59 pm

Related Questions

This might be a borderline Server Fault-question, but here goes. I have a IIS
Does anyone know if Google Chrome Frame will be installable onWindows machines in the
This could be a borderline advertisement, not to mention subjective, but the question is
Ok, this is possibly borderline-subjective, but I wonder where one would put a simple
I have read a lot that LISP can redefine syntax on the fly, presumably

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.