作者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的资料库 我还少了哪里没设定麻?
谢谢各位
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.120.255.187
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Database/M.1413780610.A.89C.html
※ 编辑: sabreur (59.120.255.187), 10/20/2014 12:51:05
※ sabreur:转录至看板 Linux 10/20 13:04
1F:推 iamnotfat: tnsping ORA11G 可以通吗? 10/20 18:34
2F:推 waterpeng: lsnrctl status正常吗??? 10/20 20:41
谢谢大大提示... lsnrctl 启动失败
是我的host only那张网卡的固定ip没有设定好..冏
然後重启 lsnrctl & db 就可以连了 QQ"
※ 编辑: sabreur (111.254.212.106), 10/20/2014 22:48:31
※ 编辑: sabreur (111.254.212.106), 10/20/2014 23:23:27