hp pa算是一个比较老版本的hpux操作系统,目前hp已经不出hp pa的版本,只出hp ia的版本。目前ia的os版本为11.23和11.31,在之前的hp pa的主要os版本是11.00和11.11。
这次在某省安装的机器比较奇怪,是hp pa的机器,却是安装11.23的操作系统版本。在正常安装完成9201的基线版本后在升级9206的patch,遇到报错了:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ cd D*1 $ ls install, patchnote.htm, response, runInstaller, stage $ export DISPLAY=192.168.0.4:0.0 $ ./runInstaller Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be B.11.00 or B.11.11. Actual B.11.23 Failed <<<< Exiting Oracle Universal Installer, log for this session can be found at /opt/acle/oraInventory/logs/installActions2010-01-10_03-38-08PM.log $ |
根据log去做进一步的检查了:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$ vi installActions2010-01-10_03-38-08PM.log "installActions2010-01-10_03-38-08PM.log" 9 lines, 385 characters Using paramFile: /usr/ora_inst/orapatch_9206/Disk1/install/oraparam.ini Checking installer requirements... Checking operating system version: must be B.11.00 or B.11.11. Actual B.11.23 Failed <<<< Exiting Oracle Universal Installer, log for this session can be found at /opt/oracle/oraInventory/logs/installActions2010-01-10_03-3 8-08PM.log ~ |
在这里我们看到在做系统环境的检查时,调用了/usr/ora_inst/orapatch_9206/Disk1/install/oraparam.ini这个参数文件,因此我们去看这个参数文件:
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
$ cat /usr/ora_inst/orapatch_9206/Disk1/install/oraparam.ini [Oracle] DISTRIBUTION=TRUE SOURCE=../stage/products.xml LICENSE_LOCATION= JRE_LOCATION=../stage/Components/oracle.swd.jre/1.4.2.0.0/1/DataFiles JRE_MEMORY_OPTIONS=" -mx96m" DEFAULT_HOME_LOCATION= DEFAULT_HOME_NAME=OUIHome NO_BROWSE=/net NLS_ENABLED=TRUE BOOTSTRAP=TRUE OUI_VERSION=10.1.0.3.0 AUTOOUI=ALWAYS #SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always #SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel #SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition SHOW_HOSTNAME=NEVER_SHOW #THIN_JDBC_FILENAME is optional and defaults to classes12.jar #The value specified for this should be packaged with OUI, and should #be relative to <OUI expanded stagedir>/jlib/ THIN_JDBC_FILENAME=classes12.jar #JRE_OSDPARAM is to set OS dependent param for JRE ( mainly for native VM in 1.3.1) #JRE_OSDPARAM is optional and should be set to -native for the JRE's #that support native VM ( mainly for Unix platforms ), in JRE 1.3.1 #For JRE 1.4.1 this should be set to empty or the type of VM that is #supported client/server. The default value is -native in UNIX platforms #that supports native VM #Unix supporting native - JRE_OSDPARAM="-native" #Unix NOT supporting native and 1.4.1 - JRE_OSDPARAM="" JRE_OSDPARAM="" #CLUSTERWARE={"oracle.crs","10.1.0.2.0"} #RUN_OUICA specifies the batch script name that needs to be run #The script is ouica.bat for win32, and ouica.sh for solaris. #If the value is not specified, then the OUICA script is not run RUN_OUICA=ouica.sh [Certified Versions] #You can customise error message shown for failure through CERTIFIED_VERSION_FAILURE_MESSAGE Solaris=5.6,5.7,5.8,5.9 Linux=redhat-2.1AS HPUX=B.11.00,B.11.11 Decunix=V5.1A,V5.1 AIX=5.1.0.0 [Solaris-5.6-required] #Minimum temp space required by OUI, Increase it if your product installation so requires #Temp space is required for bootstrap and during installation #The TEMP_SPACE should be the first pre-req to be checked TEMP_SPACE=250 SWAP_SPACE=500 #Use TEMP_SPACE_FAILURE_MESSAGE for custom error message for Swap space check failure #PACKAGES required by JRE and Product, /usr/bin/pkginfo gets list of packages on system PACKAGES= #Use PACKAGES_FAILURE_MESSAGE for custom error message for PACKAGES check failure #Use CPU_FAILURE_MESSAGE to display custom error message for CPU check failure #MIN_DISPLAY_COLORS required by OUI, use /usr/openwin/bin/xdpyinfo to get the colors MIN_DISPLAY_COLORS=256 #Use MIN_DISPLAY_COLORS_FAILURE_MESSAGE for custom error message for DISPLAY colors check failure [Solaris-5.6-optional] #PATCHES required by JRE and Product, /usr/bin/showrev -p gets list of patches on system PATCHES= #Use PATCHES_FAILURE_MESSAGE for custom error message for PATCHES check failure [Solaris-5.7-required] #Minimum temp space required by OUI, Increase it if your product installation so requires #Temp space is required for bootstrap and during installation #The TEMP_SPACE should be the first pre-req to be checked TEMP_SPACE=250 SWAP_SPACE=500 #PACKAGES required by JRE and Product, /usr/bin/pkginfo gets list of packages on system PACKAGES= #MIN_DISPLAY_COLORS required by OUI, use /usr/openwin/bin/xdpyinfo to get the colors MIN_DISPLAY_COLORS=256 [Solaris-5.7-optional] #PATCHES required by JRE and Product, /usr/bin/showrev gets list of patches on system PATCHES= [Solaris-5.8-required] #Minimum temp space required by OUI, Increase it if your product installation so requires #Temp space is required for bootstrap and during installation #The TEMP_SPACE should be the first pre-req to be checked TEMP_SPACE=250 SWAP_SPACE=500 #PACKAGES required by JRE and Product, /usr/bin/pkginfo gets list of packages on system PACKAGES= #MIN_DISPLAY_COLORS required by OUI, use /usr/openwin/bin/xdpyinfo to get the colors MIN_DISPLAY_COLORS=256 [Solaris-5.8-optional] #PATCHES required by JRE and Product, /usr/bin/showrev gets list of patches on system PATCHES=108652-66,108921-16,108940-53,108773-18,111310-01,109147-24,111308-03,111111-03,112396-02,110386-03,111023-02,108987-13,108528-21,108989-02,108993-18 [Solaris-5.9-required] #Minimum temp space required by OUI, Increase it if your product installation so requires #Temp space is required for bootstrap and during installation #The TEMP_SPACE should be the first pre-req to be checked TEMP_SPACE=250 SWAP_SPACE=500 #PACKAGES required by JRE and Product, /usr/bin/pkginfo gets list of packages on system PACKAGES= #MIN_DISPLAY_COLORS required by OUI, use /usr/openwin/bin/xdpyinfo to get the colors MIN_DISPLAY_COLORS=256 [Solaris-5.9-optional] #PATCHES required by JRE and Product, /usr/bin/showrev gets list of patches on system PATCHES= #[HPUX-B.11.11-required] #PATCHES required by JRE and Product, /usr/sbin/swlist -l patch gets list of patches on system #PATCHES= #PACKAGES required by JRE and Product, /usr/sbin/swlist -l product gets list of packages on system #PACKAGES= #Patch bundles required for Oracle. #/usr/sbin/swlist -l bundle gives list of bundles. #Each item should follow the format "bundle:version" #ex.,GOLDBASE11i:B.11.11.0106.9,GOLDAPPS11i:B.11.11.0106.9 #BUNDLE= #Minimum swap space required by OUI, Increase it if your product installation so requires #SWAP_SPACE=150 #BUNDLE_FAILURE_MESSAGE=Some patch bundles were not found on the system. Please verify if the system is at a higher bundle level. [Linux-redhat-2.1AS-required] #Minimum kernel version supported on this flavour of Linux KERNEL=2.4.9 #Minimum glibc version supported on this flavour of Linux GLIBC=glibc-2.2.4-25 #PACKAGES required by JRE and Product, "rpm -qa" gets list of packages on system PACKAGES= #Minimum swap space required by OUI, Increase it if your product installation so requires SWAP_SPACE=150 [Decunix-V5.1A-required] #PATCHES required by JRE and Product, /usr/sbin/dupatch -track -type kit #gets list of patches on system PATCHES= #PACKAGES required by JRE and Product, /usr/sbin/setld -i gets #list of packages on system PACKAGES= #Minimum swap space required by OUI, Increase it if your product installation so requires SWAP_SPACE=150 [Decunix-V5.1-required] #PATCHES required by JRE and Product, /usr/sbin/dupatch -track -type kit #gets list of patches on system PATCHES= #PACKAGES required by JRE and Product, /usr/sbin/setld -i gets #list of packages on system PACKAGES= #Minimum swap space required by OUI, Increase it if your product installation so requires SWAP_SPACE=150 [AIX-5.1.0.0-required] #PATCHES required by JRE and Product, /usr/sbin/instfix -a -ivk #gets list of patches on system PATCHES= #PACKAGES required by JRE and Product, /usr/bin/lslpp -l #gets list of packages on system PACKAGES= #Minimum swap space required by OUI, Increase it if your product installation so requires SWAP_SPACE=150 $ |
在这里我们看到hp pa9206的patch要求
1 |
HPUX=B.11.00,B.11.11 |
我们目前hp pa 11.23没在这个里面,因此我当时尝试了在这个文件中把11.23也添加进去:
1 2 3 4 5 6 7 8 9 |
…… [Certified Versions] #You can customise error message shown for failure through CERTIFIED_VERSION_FAILURE_MESSAGE Solaris=5.6,5.7,5.8,5.9 Linux=redhat-2.1AS HPUX=B.11.00,B.11.11,B.11.23 Decunix=V5.1A,V5.1 AIX=5.1.0.0 …… |
再次执行runInstaller,搞定。
当时身处某省由于通信管制没法上网,回来之后,查了metalink,确定是个unpublished Bug:4054600.详见文档ID 294682.1,处理方法,也和我的一样。
我猜想是oracle出hp pa9206的patch的时候,hp pa还没出11.23的os版本,而等hp pa出11.23的os版本的时候,oracle已经出9208的patch了,因此在9208的oraparam.ini文件中,我们看到了B.11.23这个配置,而在9206这个patch,没配置。
4条评论
其实还有另外一种处理办法:
./runInstaller -ignoresysprereqs
用参数忽略操作系统版本检查
re missyou:这个bug在用-ignoresysprereqs下好像也会同样报错,metalink有写:
Symptoms
$ runInstaller
Starting Oracle Universal Installer…
Checking installer requirements…
Checking operating system version: must be B.11.00 or B.11.11. Actual
B.11.23
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at …….
Same result with:
$ runInstaller -ignoreSysPrereq
不过当时我没尝试这个参数,所以不能确定是否有效。
-ignoreSysPrereq这个参数是没有问题,效果和修改oraparam.ini文件一样。
BTW:从hp-ux 11iv2开始,包括11.31. 都会出for PA和for IA的hpux。所以他们这样用也是很正常的.
HP 11iV3 默认就不支持10g 不管是IA 和是RS的 都需要修改 oraparam.ini 我们一直都是这样做的。。。^_^