今天尝试在一个hp 安腾的机器上安装9202的数据库,并且升级到9206的版本,但是当安装的时候,配置好了response file,还是会有报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$ ./runInstaller -silent -responseFile /opt/ora_soft/Disk1/response/IA_custom.rsp $ Initializing Java Virtual Machine from /tmp/OraInstall2009-12-11_04-43-32PM/jre/bin/java. Please wait... Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '211.137.180.5:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53) at java.awt.Window.<init>(Window.java:183) at java.awt.Frame.<init>(Frame.java:310) at java.awt.Frame.<init>(Frame.java:289) at oracle.ewt.popup.PopupFrame.<init>(Unknown Source) at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source) at oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296) at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:599) $ |
从报错的log中,我们看到,虽然使用搜silent模式安装,但是还是去启动的xserver,虽然我们之前没设置DISPLAY,后来设置正确后,还是报这个错,还是需要启动xserver。
在10g中,如果我们用silent mode 安装,得到的log会是这样:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$ ./runInstaller -silent -responseFile /arch/ora_patch/Disk1/response/sims.rsp Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be B.11.23 or B.11.31. Actual B.11.23 Passed Checking swap space: must be greater than 250 MB. Actual 8192 MB Passed Checking Temp space: must be greater than 250 MB. Actual 2949 MB Passed All installer requirements met. …… |
我们从log中看到,9i的silent安装,还是会尝试启动xserver,还是需要你设置DISPLAY,但是在10g的安装中,就没有去启动xserver了。
查询资料,得知在9201~9204中,oracle使用的silent安装并不是真正的silent,还是需要图形化界面:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
Silent Install Failing in RDBMS install < 9.2.0.5 [ID 731770.1] -------------------------------------------------------------------------------- 修改时间 13-AUG-2008 类型 PROBLEM 状态 PUBLISHED In this Document Symptoms Changes Cause Solution -------------------------------------------------------------------------------- Applies to: Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 9.2.0.4 This problem can occur on any platform. Symptoms Oracle 9201 installation is failing even in silent mode due to an X11 window issue: Initializing Java Virtual Machine from /tmp/OraInstall2008-08-12_05-30-49PM/jre/bin/java. Please wait... Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59) (continues) Changes The OUI (runInstaller) that must be used is the OUI that is packaged with the software that you are trying to install. The correct OUI (runInstaller) is being used. Cause OUI silent installs cannot be used in all RDBMS releases <= 9204. The issue in 9.2.0.1 through 9.2.0.4 is that a "silent" install is not really "silent". You must have $DISPLAY set, and an Xserver process running. The 9.2.0.1 through 9.2.0.4 OUI will still bring up a single blue screen and then perform "silently". This was only fixed in the 10gR1 OUI. However, you cannot use the 10gR1 OUI to install 9201 thru 9204. Only 9iR2 releases ABOVE 9204 can use the "truly silent" 10gR1 OUI. Solution 1. You must have $DISPLAY set, 2. You must have an Xserver process running. |
这个问题,需要在10gR1的版本才得以修复,但是在9202中又不能使用10gR1的OUI。所以,这个oracle号称的silent mode的安装,只能在10gR1以上的版本才能使用了。囧rz
参考文档:metalink Problem :731770.1