时间:2021-07-01 10:21:17 帮助过:4人阅读
Oracle 10g 的10.2.0.1.0版本升级至10.2.0.4.0报错处理
补丁包为:p6810189_10204_Linux-x86.iso
挂载解压后,运行./runInstaller -debug
报错如下:
-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2011-08-25_06-52-17AM/jre/1.4.2/bin/java. Please wait...
[Oracle@dg01 updb10.02.40]$ Oracle Universal Installer, Version 10.2.0.4.0 Production
Copyright (C) 1999, 2008, Oracle. All rights reserved.
Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
Exception java.lang.ExceptionInInitializerError occurred..
java.lang.ExceptionInInitializerError
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:194)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:203)
at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:463)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:959)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:899)
Caused by: java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.
at oracle.sysman.oii.oiif.oiifm.OiifmSplashScreen.
... 6 more
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:194)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:203)
at oracle.sysman.oii.oiif.oiifm.OiifmAlert.
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:1017)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:899)
到这个界面后,就不向下进行了。不能正常调出OUI升级安装界面,以下包也都已经正常安装:
rpm -ivh libXp-1.0.0-8.i386.rpm
rpm -ivh openmotif-2.3.0-0.3.el5.i386.rpm
rpm -ivh compat-db-4.2.52-5.1.i386.rpm
rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
rpm -ivh compat-libf2c-34-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-g77-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-c++-3.4.6-4.i386.rpm
rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
大家看看是怎么回事,问题出在哪里?
---------------------------------------
10g 的10.2.0.1.0版本升级至10.2.0.4.0报错处理
[oracle@dg01 bk]$ cd database
[oracle@dg01 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/OraInstall2011-08-25_10-19-47AM. Please wait ...
[oracle@dg01 database]$ Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
---------------------------------------
问题已经解决了。
我初步考虑:第一,我把安装oracle所需要的rpm包仔细地检查了一遍,发现并不缺少什么包,由此,排除缺少rpm包的可能;第二,会不会是我本身拷贝的这个补丁包的问题呢?于是从oracle官网重新下载了同一版本的补丁,经过比对发现:
我的这个镜象文件iso大小为:
# ll -thr /bk/p6810189_10204_Linux-x86.iso
-rw-r--r-- 1 oracle oinstall 1.1G Jul 15 04:34 /bk/p6810189_10204_Linux-x86.iso
而oracle官方supp提供的补丁包大小为:
# ll -thr /bk/p6810189_10204_Linux-x86.zip
-rw-r--r-- 1 oracle oinstall 0.98G Jul 15 04:54 /bk/p6810189_10204_Linux-x86.zip
有可能是原来从其他机器拷贝过来的时候,p6810189_10204_Linux-x86.iso文件就有问题,导致不能正常安装。于是,换用从oracle官方下载的这个版本的zip包,进行解压安装,测试结果如下:
$ $ ./runInstaller -debug
-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2011-08-26_06-28-27PM/jre/1.4.2/bin/java. Please wait...
[oracle@rhel5 Disk1]$ Oracle Universal Installer, Version 10.2.0.4.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.
Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
虽然这里还是会出现这个warning警告,但是,并无大碍。可以正常通过,出现OUI的安装界面如下:
后来,又下载了一个10.2.0.4.0补丁包,也是可以正常安装出现OUI安装界面的。
没有想到,问题居然出在这里。真让人无语,嘿嘿!所以,以后建议大家,进行补丁安装包什么的,,还是去官网上下载为妙。