日期:2014-05-17  浏览次数:20991 次

oracle 安装时显示图形化界面的问题
各位前辈,因为要做一测试环境,就弄了一虚拟机,装了个redhat 5.4 的系统,因为空间关系 没有装 GENOME 。 用SecureCRT远程连接上去,将oracle安装所需要的rpm包以及相关环境等都配置好了。 可是在最后安装时,却不能使用xmanager将图形界面显示出来,出现如下错误:
[oracle@pdasit database]$ export DISPLAY=192.168.2.97:0.0  
[oracle@pdasit database]$ export LANG=C
[oracle@pdasit database]$ ls
doc install response runInstaller stage welcome.html
[oracle@pdasit 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, asianux-2 or redhat-5 Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-09-22_05-08-32PM. Please wait ...[oracle@pdasit database]$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '192.168.2.97:0.0' as the value of the DISPLAY variable.
  at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
  at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
  at java.awt.Window.init(Unknown Source)
  at java.awt.Window.<init>(Unknown Source)
  at java.awt.Frame.<init>(Unknown Source)
  at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
  at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
  at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:378)
  at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)

试着在root用户下执行 xhost + 之后依然不行。 请各位前辈指教!


------解决方案--------------------
要安装图形界面包X window