遠端存取rhel7的oracle中的問題

來源:互聯網
上載者:User

標籤:訪問   客戶   conf   rest   開放   start   編輯   iptables   錯誤資訊   

用戶端得到的錯誤資訊通常是:ORA-12170: TNS:連線逾時 
這時,我們基本可以肯定是伺服器沒有開放1521連接埠(假設你用預設設定)

解決方案: 
(1)假如你是在一個區域網路環境,配置了防火牆。那麼可以關閉Linux的防火牆。
sudo service iptables stop
(2)編輯iptables, 開放1521連接埠:
sudo vi /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT 
:wq

重啟防火牆
sudo service iptables restart
儲存配置,以便linux重啟後依然有效
sudo service iptables save 
查看防火牆規則:
sudo iptables -L –n

遠端存取rhel7的oracle中的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.