Oracle databases cannot be accessed using localhost and 127.0.0.1. oraclelocalhost

Source: Internet
Author: User

Oracle databases cannot be accessed using localhost and 127.0.0.1. oraclelocalhost

I recently learned about Oracle databases and installed Oracle 10g (Version: oracle_10g_10.2.0.20.win32) in Windows XP SP3 on a virtual machine ).

After the installation is complete, use PL/SQL Developer to access the Oracle database and find that the database can only be accessed using IP addresses (192.168.135.90), rather than localhost and 127.0.0.1.

After research, it is found that this is caused by LISTENER Configuration problems.

Solution: When configuring LISTENER, use the host name instead of the IP address or localhost.

The LISTENER Configuration after resolution is shown in:

Open the Oracle Net Manager tool and configure LISTENER:


Host entry in LISTENER ConfigurationHost Name of the Local Machine: Here I am zht-ylmf


The host name can be passed in the cmd command line>HostnameCommand:



After configuring LISTENERHost NameEnter localhost, 127.0.0.1, or 192.168.135.90. Then PL/SQL Developer can access the database.





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.