安装完Solaris后安装Oracle时候出现的问题!
配置完系统参数和环境变量后,执行安装程序出现如下错误!
CODE:
[Copy to clipboard]
$ ./runInstaller
$ Initializing Java Virtual Machine from /tmp/OraInstall2007-06-18_11-35-05AM/jre/bin/java. Please wait...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using '192.168.0.253:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>;(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.<init>;(Window.java:188)
at java.awt.Frame.<init>;(Frame.java:315)
at java.awt.Frame.<init>;(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
通过这个帖子$ Initializing Java Virtual Machine from /tmp/OraInstall2007-06-18_11-35-05AM/jre/bin/java. Please wait...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using '192.168.0.253:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>;(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.<init>;(Window.java:188)
at java.awt.Frame.<init>;(Frame.java:315)
at java.awt.Frame.<init>;(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
http://bbs.chinaunix.net/viewthread.php?tid=170975&extra=&page=1
了解到有两种解决方法,
1、以root 身份执行xhost +192.168.0.253:
提示xhost:unknown address family "192.168.0.253"
xhost: bad hostname "192.168.0.253:"
2、以Oracle用户登录,错误依旧!
请大家帮忙!~谢谢!
Xmanager直接登录,不用设置xhost +
谢谢Race~
但是执行./runInstaller时出错啊!
有个问题,
vi .profile
DISPLAY=hostname:1.0 export DISPLAY
关于环境变量, hostname是Xmanager端的IP还是Sun服务器端的IP?
DISPLAY=hostname:1.0 export DISPLAY
可以注释掉之后,再试一下。xmanager登录成功之后,DISPLAY已经自动设置好了,.profile
再设置一次的话肯定会报错的。
谢谢!可以了!
会员注册
会员登录
个人空间
发表评论