PHP Remote Connection Oracle Error Oci_connect (): Ora-12541:tns:no Listener

Source: Internet
Author: User
Keywords oracle php
Tags php error
The situation is as follows:

    1. Oracle and PHP are not on the same machine and Oracle is accessible on the machine where Oracle resides.

    2. However, the remote connection via PHP, Error oci_connect (): Ora-12541:tns:no listener.

    3. The listener of the machine where Oracle is located is already open.

How to solve the PHP remote connection, thank you!

Reply content:

The situation is as follows:

    1. Oracle and PHP are not on the same machine and Oracle is accessible on the machine where Oracle resides.

    2. However, the remote connection via PHP, Error oci_connect (): Ora-12541:tns:no listener.

    3. The listener of the machine where Oracle is located is already open.

How to solve the PHP remote connection, thank you!

Various methods have been tried, and finally the Oracle uninstalled after reinstalling, everything is OK ...

On the Oracle server, use the following command to see if Oracle's monitoring service is functioning properly

su - oraclelsnrctl status

If the monitoring service is normal, you should output the following similar results, XXX is the name of Serive and instance
Service "XXX" has 1 instance (s).
Instance "XXX", status ready, have 1 handler (s) for the This service ...
The command completed successfully

First confirm a little PHP error no listener that is certainly no listener not questioned.

1. Remote connection whether Oracle can connect (whether Oracle allows remote access)
Whether the server on the 2.PHP is connected to the server on which Oracle resides.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.