11gr1,使用OUI进行预安装必要条件检查,避免出现安装过程中的错误

版本:11gr1 - 11.1.0.6


在通过OUI(Oracle Universal Installer)进行安装之前,或者说以Silent方式进行安装之前,已经进行了操作系统方面的配置,如果要保证在通过OUI进行安装的过程中,不中断,不出现问题,要对这些配置进行检查,看配置是否正确,及时修正,才能确保安装过程中,不进行反复的修改。

简单来说,就是安装Oracle需要的必要条件的检查。

 

1.       解压软件包linux.x64_11gR1_database_1013.zip,最终形成的目录如下

 

[oracle@11gdb ~]$ ls

database linux.x64_11gR1_database_1013.zip

 

2.       进入database目录中

 

[oracle@11gdb ~]$ cd database/

[oracle@11gdb database]$ ls

doc  install  README response  runInstaller  stage welcome.html

 

3.       执行如下命令,进行预安装环境检查

 

./runInstaller-prereqchecker PREREQ_CONFIG_LOCATION=./stage/prereq -entryPointoracle.server_EE -prereqLogLoc /tmp -silent

 

执行输出:

 

[oracle@11gdb database]$ ./runInstaller-prereqchecker PREREQ_CONFIG_LOCATION=./stage/prereq -entryPoint oracle.server_EE-prereqLogLoc /tmp -silent

Starting Oracle Prerequisite Checker...

 

Checking Temp space: must be greater than 120 MB.   Actual 5695 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 4094 MB    Passed

Preparing to launch Oracle Universal Installer from/tmp/OraInstall2016-09-28_11-12-56AM. Please wait ...[oracle@11gdb database]$

Oracle Prerequisite Checker version Version 11.1.0.6.0 Production

Copyright (C) 1999, 2007, Oracle. All rights reserved.

 

 

Starting execution of Prerequisites...

Total No of checks: 14 #总共检查14

 

Performing check for CertifiedVersions

Checking operating system requirements ...  #检查操作系统的要求

Expected result: One ofenterprise-4,enterprise-5,redhat-4,redhat-5,SuSE-10,asianux-2,asianux-3

Actual Result: redhat-5

Check complete. The overall result of this check is:Passed #检查结果,通过

 

 

Check complete: Passed

========================================================

Performing check for Packages #执行操作系统软件包的检查

Checking operating system package requirements ...

Checking for make-3.81; found make-1:3.81-3.el5-x86_64.        Passed

Checking for binutils-2.17.50.0.6; foundbinutils-2.17.50.0.6-26.el5-x86_64.         Passed

Checking for gcc-4.1.1; found gcc-4.1.2-54.el5-x86_64.     Passed

Checking for libaio-0.3.106-i386; foundlibaio-0.3.106-5-i386.    Passed

Checking for libaio-0.3.106-x86_64; foundlibaio-0.3.106-5-x86_64.    Passed

Checking for libaio-devel-0.3.106; foundlibaio-devel-0.3.106-5-x86_64.      Passed

Checking for libstdc++-4.1.1-i386; foundlibstdc++-4.1.2-54.el5-i386.  Passed

Checking for libstdc++-4.1.1-x86_64; foundlibstdc++-4.1.2-54.el5-x86_64.  Passed

Checking for libstdc++-devel-4.1.1; foundlibstdc++-devel-4.1.2-54.el5-x86_64.    Passed

Checking for sysstat-7.0.0; foundsysstat-7.0.2-12.el5-x86_64.   Passed

Checking for libgcc-4.1.1-i386; foundlibgcc-4.1.2-54.el5-i386.   Passed

Checking for libgcc-4.1.1-x86_64; foundlibgcc-4.1.2-54.el5-x86_64.   Passed

Checking for elfutils-libelf-0.125; foundelfutils-libelf-0.137-3.el5-x86_64.  Passed

Checking for elfutils-libelf-devel-0.125; foundelfutils-libelf-devel-0.137-3.el5-i386.     Passed

Checking for glibc-common-2.5; foundglibc-common-2.5-118-x86_64.       Passed

Checking for glibc-devel-2.5-i386; foundglibc-devel-2.5-118-i386.      Passed

Checking for glibc-devel-2.5-x86_64; found glibc-devel-2.5-118-x86_64.      Passed

Checking for gcc-c++-4.1.1; foundgcc-c++-4.1.2-54.el5-x86_64. Passed

Checking for compat-libstdc++-33-3.2.3-i386; foundcompat-libstdc++-33-3.2.3-61-i386.       Passed

Checking for compat-libstdc++-33-3.2.3-x86_64; foundcompat-libstdc++-33-3.2.3-61-x86_64.       Passed

Check complete. The overall result of this check is:Passed

 

 

Check complete: Passed #检查结果,通过

========================================================

Performing check for Kernel

Checking kernel parameters

Checking for semmsl=250; found semmsl=250.        Passed

Checking for semmns=32000; found semmns=32000.       Passed

Checking for semopm=100; found semopm=100.     Passed

Checking for semmni=128; found semmni=128.       Passed

Checking for shmmax=536870912; found shmmax=2147483648.        Passed

Checking for shmmni=4096; found shmmni=4096.   Passed

Checking for shmall=2097152; found shmall=2097152.     Passed

Checking for file-max=65536; found file-max=6815744.    Passed

Checking for VERSION=2.6.18; foundVERSION=2.6.18-371.el5. Passed

Checking for ip_local_port_range=1024 - 65000;ip_local_port_range=9000 - 65500.    Failed<<<< #检查未通过

 

(注:ip_local_port_range=1024 - 65000 第1个是建议的值,第2个是实际的配置值,修改之后,重建检查)

Checking for rmem_default=4194304; rmem_default=262144. Failed <<<< #检查未通过

Checking for rmem_max=4194304; found rmem_max=4194304.        Passed

Checking for wmem_default=262144; foundwmem_default=262144.        Passed

Checking for wmem_max=262144; found wmem_max=1048576.      Passed

Check complete. The overall result of this check is:Failed <<<<

 

 

Check complete: Failed <<<<  #此处为一个检查的总结,如果有一项未通过,则整体不通过

Problem: The kernel parameters do not meet the minimumrequirements (see above).

Recommendation: Perform operating system specificinstructions to update the kernel parameters.

 

========================================================

Performing check for GLIBC

Checking Recommended glibc version

Expected result: ATLEAST=2.5-12

Actual Result: 2.5-118

Check complete. The overall result of this check is:Passed

 

 

Check complete: Passed

========================================================

Performing check for TotalMemory  #物理内存的检查

Checking physical memory requirements ...

Expected result: 922MB

Actual Result: 2008MB

Check complete. The overall result of this check is:Passed

 

 

Check complete: Passed

========================================================

Performing check for SwapSpace #swap空间的检查

Checking available swap space requirements ...

Expected result: 3012MB

Actual Result: 4094MB

Check complete. The overall result of this check is:Passed

 

 

Check complete: Passed

========================================================

Performing check for DetectIfDHCPAssignedIP  #检查网络的配置DHCP分配的IP检查

Checking Network Configuration requirements ...

Actual Result: Unknown Host Exception has Occurred:11gdb: 11gdb.

Check complete. The overall result of this check is:Not executed <<<<

 

 

Check complete: Not executed <<<<

dress in order for the Oracle Software to functionproperly.  See the Installation Guide formore details on installing the software on systems configured with DHCP.

 

========================================================

Performing check for CheckPathForOtherOracleHomes #检查Oracle Home目录的配置

Checking PATH environment variable...

Actual Result::java.lang.NullPointerException:Exception/Error Occurred

Check complete. The overall result of this check is:Not executed <<<<

 

 

Check complete: Not executed <<<<

Recommendation: Restart the installer after removingother ORACLE_HOME locations from PATH environment variable.

 

========================================================

Performing check for CheckTempDiskSpace  #Temp磁盘空间的检查

Checking for sufficient diskspace in TEMP location...

Check complete. The overall result of this check is:Passed

 

 

Check complete: Passed

========================================================

Performing check for CheckLdLibraryPath # LD_LIBRARY_PATH环境变量的配置检查

Checking LD_LIBRARY_PATH environment variable...

Actual Result::java.lang.NullPointerException:Exception/Error Occurred

Check complete. The overall result of this check is:Not executed <<<<

 

 

Check complete: Not executed <<<<

Recommendation: Restart the installer after removingother ORACLE_HOME locations from LD_LIBRARY_PATH environment variable.

 

========================================================

Performing check for OracleBase  #ORACLE_BASE环境变量的配置检查

Validating ORACLE_BASE location (if set) ...

Actual Result::java.lang.NullPointerException:Exception/Error Occurred

Check complete. The overall result of this check is:Not executed <<<<

 

 

Check complete: Not executed <<<<

Recommendation: Unset the environment variable'ORACLE_BASE' or make sure it is specified as a parent of the Oracle homedirectory.

 

========================================================

Performing check for OracleHomeSpace #Oracle_home空间的检查

Checking Oracle Home path for spaces...

Actual Result::java.lang.NullPointerException:Exception/Error Occurred

Check complete. The overall result of this check is:Not executed <<<<

 

 

Check complete: Not executed <<<<

Recommendation: You must choose an Oracle Home paththat doesn't contain any spaces.

 

========================================================

Performing check for DetectAnyInvalidASMHome

Checking for proper system clean-up....

Check complete. The overall result of this check is:Passed

 

 

Check complete: Passed

========================================================

Performing check for CompatibilityChecks_DB

Checking for Oracle Home incompatibilities ....

Check complete. The overall result of this check is:Not executed <<<<

 

 

Check complete: Not executed <<<<

S_NO_ORACLE_HOME_VAR: No ORACLE_HOME variable set toperform compatibility checks.

Recommendation: Choose a new Oracle Home for installingthis product.

 

========================================================

PrereqChecks complete

 

4.       生成/tmp下的输出

 

-rw-------  1oracle oinstall 12530 Sep 28 11:13 prereq2016-09-28_11-12-56AM.log

drwxr-xr-x  2oracle oinstall  4096 Sep 28 11:32 logs

-rw-------  1oracle oinstall     0 Sep 28 11:32prereq2016-09-28_11-32-49AM.err

-rw-------  1oracle oinstall  7340 Sep 28 11:32 prereq2016-09-28_11-32-49AM.out

-rw-------  1oracle oinstall 12528 Sep 28 11:32 prereq2016-09-28_11-32-49AM.log

drwxr-xr-x 10 oracle oinstall  4096 Sep 28 11:32OraInstall2016-09-28_11-32-49AM

drwxr-xr-x  7oracle oinstall  4096 Sep 28 11:39OraInstall2016-09-28_11-39-31AM

drwxr-xr-x  2oracle oinstall  4096 Sep 28 11:39hsperfdata_oracle

 

注:

 

l   PREREQ_CONFIG_LOCATION说明配置文件的位置(不同产品类型可能预检查配置文件的目录不同,如ASM,Cluster,Client等不同的产品)

l   -entryPoint 指的是,产品类型,根据不同的产品类型,最终的进入点标识,会有区别

l  -prereqLogLoc 最终生成的日志,比如,错误日志,输出日志的位置

 

注意:


关于ORACLE_HOME,ORACLE_BASE等环境变量的问题,可以忽略,不影响实际的安装,也就是说Check complete: Not executed<<<<即Not executed的可以忽略,但是对于Failed的要给予关注,进行修正,满足最小的安装要求。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值