An error occurred while connecting to oracle11

Source: Internet
Author: User

Today, when I tested connecting oracle from another machine A to machine B, I was always unable to connect, neither timeout nor resolution service, nor firewall or anti-virus software had been shut down and still could not be solved, however, the database can be connected to the database on the server where the database is installed, and Google gets the 11g listening service. The default configuration is localhost (in listener. ora file), in this case, the listener is only valid for the local machine, and other machines cannot access the server by IP address or something:
Listener =
(Description_list =
(Description =
(Address = (Protocol = IPC) (Key = extproc1521 ))
(Address = (Protocol = TCP) (host =Localhost) (Port = 1521 ))
)
)

After you change the localhost to the machine name or local IP address, restart the listening service to solve the problem of connection failure.

 

 

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.