Unable to connect to another computer databases via ip address, but they can ping, the configuration is not wrong, but the difference between a step

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_41885819/article/details/100081373

In fact, this is really a scene, there are many projects under construction synchronous data interfaces, data temporarily on my own oracle database, so the need to use objects generated jdbc connect to a local database, and then get the data. But web applications have emerged in the generation of connection objects unusual, first of all, my investigation is the local system's firewall, directly turn off; then on the server ping your computer's ip address, can be found also to ping, however, the system still can not create examples of connected objects, fk
with plsql connect to the local database, usually with localhost: 1521 / orcl or 127.0.0.1:1521/orcl, now I'm testing the IP address of their computer connection, namely 192.168.xx.xx: 1521 / orcl, Sure enough, on their own they are not connected.

In the view of many online Raiders, in fact, they are basically right, but, after your own pro-test, most of the time will not work.
First, in the case of guaranteed service starts, the root of the problem lies in the basic configuration issue of Net Manager. By the beginning of -oracle-net manager (different systems may have small differences) to open the screen as
Here Insert Picture Description
Next, click on the service named orcl (your own service name) directory, see the specific configuration
Here Insert Picture Descriptionspecial attention to the figure the hosts in the red box name, display if you open a localhost, replace it with your computer name computer to view the right way to my computer - attribute. Next, the configuration is switched to the listener in the listener.
Here Insert Picture DescriptionThe host also replaced at your computer name. Click on the top left corner of the page file - save the configuration. In general, here we will begin to test the open plsql, but most of the time the result of the test is failed, error no listener, it is not quite silent.
Finally, you have to open the service management interface, the oracle service in the following figure and the corresponding monitoring service restart it .
Here Insert Picture DescriptionAfter the restart the service, do not rush to test, it is best to wait a dozen twenty seconds again after the test, it should be properly properly the

Guess you like

Origin blog.csdn.net/qq_41885819/article/details/100081373