红联Linux门户
Linux帮助

linux安装oracle启动图形界面问题

发布时间:2015-12-30 10:44:42来源:linux网站作者:常飞梦

今天安装oracle时,在启动xhost服务时出现:

_X11TransSocketINETConnect() can't get address for localhost:6001: Name> > or service not known Error: Can't open display: localhost:1.0


解决方法:

1、看/etc/hosts中是否有127.0.0.1 localhost.localdomain localhost,没有则

配置主机名;

编辑配置文件:/etc/hosts

127.0.0.1      localhost              localhost.localdomain localhost

192.2.3.38    gxnndb         gxnndb.happyu.cn             gxnndb

其中 192.2.3.38 为本机地址,gxnndb 为主机名

2、用oracle用户登录,设置 DISPLAY 环境变量;

export DISPLAY=your_IPaddress:0.0

注:your_IPaddress 是A机器的IP地址。


Linux非图形界面安装Oracle数据库:http://www.linuxdiyf.com/linux/14391.html

fedora22安装oracle11gr2:http://www.linuxdiyf.com/linux/13991.html

ubuntu-15.04-desktop-amd64.iso:安装Oracle11gR2:http://www.linuxdiyf.com/linux/13116.html

64位Ubuntu安装Oracle 11G:http://www.linuxdiyf.com/linux/9955.html

Ubuntu 14.04 LTS 64位安装Oracle 11g:http://www.linuxdiyf.com/linux/9954.html