Linux open ports Allow network connectivity

Source: Internet
Author: User

Linux open 1521 port allows network connection to Oracle Listener

Symptoms:
1. TCP/IP connectivity is on-the-pass. You can test with the ping command.

2. The Oracle listener on the server has been started.
Lsnrctl Status View Listener state
Lsnrctl Start Oracle Listener

3. The error message that the client gets is usually: Ora-12170:tns: Connection timed out

At this point, we can basically be sure that the server is not open 1521 port (assuming you use the default settings)

Workaround:

1. If you are in a LAN environment, configure a firewall. Then you can turn off the Linux firewall.
sudo service iptables stop

2. Edit Iptables, open 1521 port:

sudo vi/etc/sysconfig/iptables
-A input-p tcp-m state--state new-m TCP--dport 1521-j ACCEPT
: Wq
Restarting the firewall
sudo service iptables restart
Save the configuration so that it still works after the Linux reboot
sudo service iptables Save

To view firewall rules:
sudo iptables-l-n

Linux open ports Allow network connectivity

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.