当前位置: 技术问答>linux和unix
Red Hat Enterprise Linux 4 上安装oracle client时出现如下错误,请高手帮忙。
来源: 互联网 发布时间:2016-04-14
本文导语: 我是先用 groupadd oacle useradd oracle -g oracle passwd oracle 新建了一个用户和组后再安装的。 ..[oracle@localhost home]$ Xlib: connection to ":0.0" refused byr v er Xlib: No protocol specified Exception in thread "main" java.lang.InternalError...
我是先用
groupadd oacle
useradd oracle -g oracle
passwd oracle
新建了一个用户和组后再安装的。
..[oracle@localhost home]$ Xlib: connection to ":0.0" refused byr
v er
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Sour
ce)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at oracle.ewt.popup.PopupFrame.(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.(Unknown Source)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.(OiocOneClickInsta
ller.java:378)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstall
er.java:2091)
groupadd oacle
useradd oracle -g oracle
passwd oracle
新建了一个用户和组后再安装的。
..[oracle@localhost home]$ Xlib: connection to ":0.0" refused byr
v er
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Sour
ce)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at oracle.ewt.popup.PopupFrame.(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.(Unknown Source)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.(OiocOneClickInsta
ller.java:378)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstall
er.java:2091)
|
安装 oracle 客户端时,需要先设置环境变量,如 ORACLE_BASE, ORACLE_HOME 等等,如果楼上所述。
另外,还需要安装C,C++编译器、库等,楼主可以从网上搜索一下这方面的资料。
另外,还需要安装C,C++编译器、库等,楼主可以从网上搜索一下这方面的资料。