Virtual Linux systems using the Windows system Oracle Database

Source: Internet
Author: User

Premise: The local Oracle database is working properly.

Database: Oracle 11g

Virtual machine: vmware_workstation_full_12.5.2

Native System: Windows 7 Ultimate Edition

Virtual machine system: OpenSUSE LINUX

Network adapter The IP address of the VMware networks Adapter VMnet8 and the IP address of the virtual machine system can ping each other on the same network segment

VMnet8 IP:192.168.14. 1

Virtual machine IP:192.168.14. 131

Windows ip:192.168.1.111

Ping Linux system 192.168.14.131 in Windows can ping the

Ping Windows system 192.168.1.111 in virtual Linux can also ping the

The database can be used normally in Windows, and Plsql can connect properly.

However, the virtual machine is an Oracle database that cannot connect to Windows.

Attempt to telnet 192.168.1.111 1521 connection failed in Linux

In window, try Telnet 192.168.1.111 1521 cannot open the connection to the host on port 1521 ....

Here, the preliminary judgment is the reason for the firewall. Using commands to view netstat-a

Found the reason: The connection is limited to 127.0.0.1 that is the local connection, check the data found that the monitoring error, when the listener is set to localhost, this situation will occur

WORKAROUND: Simply change the listener to the name of the host

Locate the Listener.ora file for H:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN under the Oracle installation directory

Will

LISTENER =
(Description_list =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))
)
)

Switch

LISTENER =
(Description_list =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = PC201701061306) (PORT = 1521))
)
)

Where PC201701061306 is the name of the machine.

attempt to telnet 192.168.1.111 1521 connection succeeded in window .

Virtual Linux systems using the Windows system Oracle Database

Related Article

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.