怎麼連VM(CentOS7)內的 Oracle? - Linux

By Kama
at 2014-10-20T13:04
at 2014-10-20T13:04
Table of Contents
※ [本文轉錄自 Database 看板 #1KH9I2YS ]
作者: sabreur (無奈) 看板: Database
標題: [討論] 怎麼連VM(CentOS7)內的 Oracle?
時間: Mon Oct 20 12:50:07 2014
各位先進好
在下參考了下面兩篇文章 在CentOS7 中安裝了Oracle database
http://ppt.cc/bt8y
http://ppt.cc/CPIt
CentOS7 是VM 的Guest 將之固定IP設定為 192.168.56.101
Host 是 Win8
$ORACLE_HOME/network/admin/listener.ora 修改如下
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /ora01/app/oracle
$ORACLE_HOME/network/admin/tnsnames.ora 修改如下
ORA11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORA11G)
)
)
防火牆情況
[oracle@localhost admin]$ service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
Active: inactive (dead)
情況是
1. 用SSH 連線到192.168.56.101 -> OK
2. ping 192.168.56.101 -> OK
3. 用SQL Developer 連 192.168.56.101 -> 失敗
失敗原因:
執行要求的作業時發生錯誤:
IO 錯誤: The Network Adapter could not establish the connection
廠商代碼 17002
各位先進們 我想從Host連Guest的資料庫 我還少了哪裡沒設定麻?
謝謝各位
--
作者: sabreur (無奈) 看板: Database
標題: [討論] 怎麼連VM(CentOS7)內的 Oracle?
時間: Mon Oct 20 12:50:07 2014
各位先進好
在下參考了下面兩篇文章 在CentOS7 中安裝了Oracle database
http://ppt.cc/bt8y
http://ppt.cc/CPIt
CentOS7 是VM 的Guest 將之固定IP設定為 192.168.56.101
Host 是 Win8
$ORACLE_HOME/network/admin/listener.ora 修改如下
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /ora01/app/oracle
$ORACLE_HOME/network/admin/tnsnames.ora 修改如下
ORA11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORA11G)
)
)
防火牆情況
[oracle@localhost admin]$ service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
Active: inactive (dead)
情況是
1. 用SSH 連線到192.168.56.101 -> OK
2. ping 192.168.56.101 -> OK
3. 用SQL Developer 連 192.168.56.101 -> 失敗
失敗原因:
執行要求的作業時發生錯誤:
IO 錯誤: The Network Adapter could not establish the connection
廠商代碼 17002
各位先進們 我想從Host連Guest的資料庫 我還少了哪裡沒設定麻?
謝謝各位
--
Tags:
Linux
All Comments

By Elma
at 2014-10-21T06:47
at 2014-10-21T06:47

By George
at 2014-10-25T14:43
at 2014-10-25T14:43

By Caitlin
at 2014-10-28T02:44
at 2014-10-28T02:44

By Caitlin
at 2014-11-01T02:16
at 2014-11-01T02:16

By Harry
at 2014-11-03T21:35
at 2014-11-03T21:35

By Ursula
at 2014-11-06T01:02
at 2014-11-06T01:02
Related Posts
HackingThursday 固定聚會 (2014-10-23)

By Anonymous
at 2014-10-20T12:11
at 2014-10-20T12:11
EmbeddedLinux核心

By Agatha
at 2014-10-20T04:04
at 2014-10-20T04:04
ubuntu ssh root登入

By Brianna
at 2014-10-19T22:35
at 2014-10-19T22:35
雙系統WIN8 CENTOS7無開機選單

By Emily
at 2014-10-18T23:34
at 2014-10-18T23:34
請問可以架NAT2NAT的server嗎?

By Christine
at 2014-10-18T17:17
at 2014-10-18T17:17