最近從朋友處得到了一份oracle10g的beta版本.在安裝過程中,遇到了一個小插曲,寫在這里供大家參考.
我的機器是piii700,windows2000+service pack4.
點擊setup.exe之后,出現的窗口信息如下:
using paramfile: g:/oracle10g/disk1/install/win32/oraparam.ini
starting oracle universal installer ...
checking required pre-requisites...
checking operating system version: must be 4.0, 5.0, 5.1 or 5.2. actual 5.0 passed
checking for service_pack: must be 1, 2 or 3. actual service pack 4 failed
<<<<
checking for min_display_colors 256. actual 4294967296 passed
some required pre-requisite checks have failed (see above). you must
correct these problems before continuing with the install, at which
time they will be re-checked. continue? (y/n) [n]
從中看出,oracle居然不支持service pack 4,不過按照常理來說,service pack新版本都是和舊版本兼容的.稍加分析,可以斷定這是個小bug.在oracle的這個beta版本出來之前還沒有service pack4.
看看第一行信息,使用的是g:/oracle10g/disk1/install/win32/oraparam.ini這個參數文件,那么是不是一些條件的邊界值是在這里定義的呢?
找到該文件,打開,分析一下,果真是定義的一些檢測系統的邊界值.發現有這么兩行:
[windows-5.0-required]
service_pack=1,2,3
可以看出,定義的是service pack的版本.ok,把它修改成:
service_pack=1,2,3,4
重新運行setup.exe .看到驗證信息如下:
using paramfile: g:/oracle10g/disk1/install/win32/oraparam.ini
starting oracle universal installer ...
checking required pre-requisites...
checking operating system version: must be 4.0, 5.0, 5.1 or 5.2. actual 5.0
passed
checking for service_pack: must be 1, 2, 3 or 4. actual service pack 4 passed
checking for min_display_colors 256. actual 4294967296 passed
all required pre-requisite checks have passed.
checking if cpu speed is above 300 mhz. actual 696mhz passed
preparing to launch oracle universal installer from c:/docume~1/admini~1/locals~
1/temp/orainstall2003-08-23_02-32-20pm. please wait ...
已經通過.安裝......
再回過頭來,分析一下disk1/install/win32/oraparam.ini這個文件,可以看出安裝的最小條件是:
cpu=300
256色分辨率
在nt4上安裝需要sp6
從中看出oracle10g在windows平臺上可能新加了一個檢測文件.利用這個文件內容判定操作系統是否符合安裝條件.
不知道正式版本中是不是這樣.
附disk1/install/win32/oraparam.ini文件內容:
[oracle]
distribution=true
source=../../stage/products.jar
license_location=
jre_location=../../stage/components/oracle.swd.jre/1.3.1.6.0a/1/datafiles/expanded
jre_memory_options=" -mx96m"
default_home_location=/oracle/ora10beta1
default_home_name=orahome10beta1
no_browse=/net
nls_enabled=true
bootstrap=true
oui_version=2.3.0.5.0a
#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
#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.bat
[certified versions]
#you can customise error message shown for failure, provide value for certified_version_failure_message
windows=4.0,5.0,5.1,5.2
#windows nt 4.0
[windows-4.0-required]
#service pack for windows nt4.0, use %systemroot%/winnt ystem32/winver.exe to find version and service pack
service_pack=6a
#you can customise the message shown for service pack failure through service_pack_failure_message
#minimum display colours for oui to run
min_display_colors=256
#use min_display_colors_failure_message to customise message for failure of check for display colors
[windows-4.0-optional]
#minimum cpu speed required for oui in mhz
cpu=300
#cpu_failure_message, use to customise error message for cpu speed check
#windows 2000 use winver.exe to find version
[windows-5.0-required]
service_pack=1,2,3,4
#minimum display colours for oui to run
min_display_colors=256
[windows-5.0-optional]
#minimum cpu speed required for oui
cpu=300
#windows xp use winver.exe to find version
[windows-5.1-required]
#minimum display colours for oui to run
min_display_colors=256
[windows-5.1-optional]
#minimum cpu speed required for oui
cpu=300
#windows .net use winver.exe to find version
[windows-5.2-required]
#minimum display colours for oui to run
min_display_colors=256
[windows-5.2-optional]
#minimum cpu speed required for oui
cpu=300