[Solution] connect to the Oracle database server on Fedora14

Source: Internet
Author: User
Recently, Oracle11gR1 was installed on Fedora14. The database can be normally connected from the local machine, but the connection cannot be established from other hosts. Later I found it was the reason for the firewall. First, run the following command in the terminal: serviceiptablesstop. Then, open the oracle connection port: configure the/etc/sysconfig/iptables file vim/etc/sysconfig/iptables1.

Recently, Oracle 11gR1 was installed on Fedora 14. The database can be normally connected from the local machine, but the connection cannot be established from other hosts.
Later I found it was the reason for the firewall.

First, run the following command in the terminal: service iptables stop

Then, open the oracle connection Port:
Configure the/etc/sysconfig/iptables File
Vim/etc/sysconfig/iptables

1 # Firewall configuration written by system-config-firewall
2 # Manual customization of this file is not recommended.
3 * filter
4: input accept [0: 0]
5: forward accept [0: 0]
6: output accept [0: 0]
7-a input-m state -- state ESTABLISHED, RELATED-j ACCEPT
8-a input-p icmp-j ACCEPT
9-a input-I lo-j ACCEPT
10-a input-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT
11-a input-m state -- state NEW-m tcp-p tcp -- dport 1521: 1523-j ACCEPT
12 #-a input-j REJECT -- reject-with icmp-host-prohibited
13-a forward-j REJECT -- reject-with icmp-host-prohibited
14 COMMIT

12th Replace the content in the behavior source file with 11 rows.

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.