The situation is as follows:
Oracle and PHP are not on the same machine and Oracle is accessible on the machine where Oracle resides.
However, the remote connection via PHP, Error oci_connect (): Ora-12541:tns:no listener.
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:
Oracle and PHP are not on the same machine and Oracle is accessible on the machine where Oracle resides.
However, the remote connection via PHP, Error oci_connect (): Ora-12541:tns:no listener.
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.