大家都知道oracle 10g版本10.2.0.1不支持redhat linux 5.0以后版本,在安装oracle 10g时会提示版本不能检测不通过:

[oracle@vcenterdb 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
                                      Failed <<<<

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-12-11_12-19-29AM/installActions2012-12-11_12-19-29AM.log

解决方法如下:

1、修改/etc/redhat-release文件,伪装操作系统

vi /etc/redhat-release

Red Hat Enterprise Linux Server release 5.6 (Tikanga)

修改为

redhat-4

再进行安装检测通过;

2、修改oracle安装文件

修改数据库安装文件database/install/oraparam.ini,将redhat-5版本添加进去

vi oraparam.ini

[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2

修改为

[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2

同时增加

[Linux-redhat-5.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

保存修改后再次安装检测通过。