Oracle database connection error: ORA-12514

Oracle database connection error: ORA-12514

kqw1983kqw1983 Posts: 5Questions: 2Answers: 0

Hey guys,

When I connected to Oracle database through config.php of Editor package, the following error was thrown.

{"error":"An error occurred while connecting to the database 'xxxx'. The error reported by the server was: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"}

I'm guessing this might be solved by setting pdoAttr of $sql_details? Help, please~~~~!!!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Very possibly! Can you show me what you would use to connect via PDO normally, and what you are currently using in the $sql_details array? (Blanking out any sensitive information of course!).

    Allan

  • kqw1983kqw1983 Posts: 5Questions: 2Answers: 0

    Hi Allan,

    Thanks~ I found the cause and it was my bad where I mistakenly input the wrong db name. :)

This discussion has been closed.