Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1640382
  • 博文数量: 409
  • 博客积分: 6240
  • 博客等级: 准将
  • 技术积分: 4908
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-01 00:04
文章分类

全部博文(409)

文章存档

2021年(1)

2019年(1)

2017年(1)

2016年(13)

2015年(22)

2013年(4)

2012年(240)

2011年(127)

分类: Oracle

2012-08-14 18:37:07

今天安装oracle,报错,cannot connect X11,其中需要的软件包都安装了,上网上查了查,解决方案是:
1.root身份使用图形界面登陆,如果没有,执行startx
2.root身份执行xhost +
3.export DISPLAY=IP:0.0 IP为我当前的ip地址
4.注销root用户,使用oracle用户登陆系统(图形界面系统)
5../runInstaller ok安装
问题:
今天我又报了个错,提示无法转化字符串,结果启动的图形界面安装,是乱码。。。fuck
-- 2012-08-15 乱码解决方案(经过测试):
1.echo $LANG=zh_CN.UTF-8
2.export $LANG=en_US.UTF-8
3./runInstaller
4.ok。我系统安装语言为中文,最后把i18修改为英文,或者export $LANG=en_US.UTF-8 就可以了。其中oracle安装的字符集,还是选择默认的中文ZHS16GBK就可以了。
 
网上找的解决方案:
http://blog.sina.com.cn/s/blog_45b28bfb0100xmj6.html
 
Exception in thread "main" .lang.InternalError: Can't connect to X11 window
using ':0.0' as the value of the DISPLAY variable.
cause:

X-Windows emulation is not yet correctly configured or is being mis-used.
solution:
1.Make sure that "DISPLAY” is set properly as either:
     :0.0
          or
     :0.0
note:In this example, ip_address/hostnameis the host name or IP address of the system that you want to use to display Oracle Universal Installer (your workstation or PC).
eg.[root@rac1 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ export DISPLAY=192.16.2.98:0.0
[oracle@rac1 ~]$ cd database/
[oracle@rac1 database]$ ./runInstaller
Starting Oracle Universal Installer... 
Checking installer requirements... 
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed 
All installer requirements met. 
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-03-05_03-36-28PM. Please wait ...[oracle@rac1 database]$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, , Oracle. All rights reserved.

2. Oracle Customer Support has seen instances where use of the UNIX/Linux “su” command, even “su - oracle” has caused this “Can't connect to X11 window server” error. Therefore, please be sure that you are LOGGED ON as the oracle account. Log directly into the install session. Do not use any variety of “su”.
     use oracle log on , not "su - oracle"
eg. [oracle@rac1 database]$ ./runInstaller

3.Oracle Customer Support has seen instances where the incorrect “ulimit” setting for number of files (aka “-n”, aka “nofiles”) has caused this “Can't connect to X11 window server” error. Therefore, please be sure that your values for “nofiles” in the output of “ulimit -a” is at least 65536.

备注:前2个办法只需要满足其中一个就可以避免这个错误了:直接用oracle登陆,不能su - oracle  or 设置display=ip_address_that you want to use to display Oracle Universal Installer:0.0

阅读(3469) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~