使用runInstaller 的executePrereqs选项来验证os是否符合oracle db software的安装要求


以下实验基于oracle 11.2.0.4
[oracle@rhel63single database]$ ./runInstaller  -help
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-23-12AM. Please wait ...[oracle@rhel63single database]$ Usage:
runInstaller  [-options] [()*]

Where options include:
  -clusterware oracle.crs,  
        Version of Cluster ready services installed.

  -crsLocation   
        Used only for cluster installs, specifies the path to the crs home location. Specifying this overrides CRS information obtained from central inventory.

  -invPtrLoc   
        Unix only. To point to a different inventory location. The orainst.loc file contains:
inventory_loc=
inst_group=<>

  -jreLoc   
        Path where Java Runtime Environment is installed. OUI cannot be run without it.

  -logLevel   
        To filter log messages that have a lesser priority level than . Valid options are: severe, warning, info, config, fine, finer, finest, basic, general, detailed, trace. The use of basic, general, detailed, trace is deprecated.

  -paramFile   
        Specify location of oraparam.ini file to be used by OUI.

  -responseFile   
        Specifies the response file and path to use.

  -attachHome  
        For attaching homes to the OUI inventory.

  -cfs  
        Indicates that the Oracle home specified is on cluster file system (shared). This is mandatory when '-local' is specified so that Oracle Universal Installer can register the home appropriately into the inventory.

  -clone  
        For making an Oracle Home copy match its current environment.

  -debug  
        For getting the debug information from OUI.

  -detachHome  
        For detaching homes from the OUI inventory without deleting inventory directory inside Oracle home.

  -enableRollingUpgrade  
        Used in cluster environment, to enable upgrade of a product on a subset of nodes (on which the product was installed).

  -executeSysPrereqs  
        Execute system pre-requisite checks and exit.

  -force  
        Allowing silent mode installation into a non-empty directory.

  -help  
        Displays above usage.

  -ignoreSysPrereqs  
        For ignoring the results of the system pre-requisite checks.

  -local  
        Performs the operation on the local node irrespective of the cluster nodes specified.

  -printdiskusage  
        Log debug information for disk usage.

  -printmemory  
        Log debug information for memory usage.

  -printtime  
        Log debug information for time usage.

  -relink  
        For performing relink actions on the oracle home
         Usage: -relink -maketargetsxml  [-makedepsxml ] [name=value]

  -silent  
        For silent mode operations, the inputs can be a response file or a list of command line variable value pairs.

  -waitforcompletion  
        Installer will wait for completion instead of spawning the java engine and exiting.

  -suppressPreCopyScript  
        Suppress the execution of precopy script.

  -acceptUntrustedCertificates  
        Accept untrusted certificates from a secure site.

  -suppressPostCopyScript  
        Suppress the execution of postcopy script.

  -noconfig  
        Do not execute config tools.

  -noconsole  
        For suppressing display of messages to console. Console is not allocated.

  -formCluster  
        To install the Oracle clusterware in order to form the cluster.

  -remotecp   
        Unix specific option. Used only for cluster installs, specifies the path to the remote copy program on the local cluster node.

  -remoteshell   
        Unix specific option. Used only for cluster installs, specifies the path to the remote shell program on the local cluster node.

  -executePrereqs
        To execute only the prerequisite checks.

  -ignorePrereq
        To ignore running the prerequisite checks.

  -ignoreInternalDriverError
        To ignore any internal driver errors.

  -downloadUpdates
        To download updates only.

  -showProgress
        To show the installation progress on the console. This option is supported only in case of silent installation.

Command Line Variables Usage
  Command line variables are specified using ; for example:
    [ session: | compName: | compName:version: ]variableName=" valueOfVariable"]

   Session/Installer variables are specified using:
          [session:]varName=value
    Ex 1: session:ORACLE_HOME_NAME="OraHome"
    Ex 2: ORACLE_HOME_NAME="OraHome"
    The lookup order is session:varName then just varName. The session prefix is used to avoid ambiguity.

   Component variables are specified using:
          [compInternalName:[Version:]]varName
    Ex 1: oracle.comp1:1.0.1:varName="VarValue"
    Ex 2: oracle.comp1:varName="VarValue"
    The lookup order is compInternalName:Version:varName, then compInternalName:varName, then just varName.

[oracle@rhel63single database]$ ./runInstaller -executePrereqs -silent -responseFile ./response/db_install.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 3042 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 2047 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-24-28AM. Please wait ...[oracle@rhel63single database]$ [FATAL] [INS-10101] The given response file ./response/db_install.rsp is not found.
   CAUSE: The given response file is either not accessible or do not exist.
   ACTION: Give a correct response file location. (Note: relative path is not supported)
^C
[oracle@rhel63single database]$

注意上面的响应文件使用了相对路径,结果是报错的,也就是说响应文件不能使用相对路径。

[oracle@rhel63single database]$ pwd
/u02/database
[oracle@rhel63single database]$ ls -lrt
total 60
drwxr-xr-x.  2 oracle oinstall  4096 Aug 27  2013 sshsetup
-rwxr-xr-x.  1 oracle oinstall  3267 Aug 27  2013 runInstaller
drwxr-xr-x.  2 oracle oinstall  4096 Aug 27  2013 rpm
drwxr-xr-x.  2 oracle oinstall  4096 Aug 27  2013 response
-rw-r--r--.  1 oracle oinstall 30016 Aug 27  2013 readme.html
drwxr-xr-x. 14 oracle oinstall  4096 Aug 27  2013 stage
-rw-r--r--.  1 oracle oinstall   500 Aug 27  2013 welcome.html
drwxr-xr-x.  4 oracle oinstall  4096 Aug 27  2013 install
[oracle@rhel63single database]$ ./runInstaller -executePrereqs -silent -responseFile /u02/database/response/db_install.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 3042 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 2047 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-25-26AM. Please wait ...[oracle@rhel63single database]$ [WARNING] [INS-13014] Target environment do not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
[oracle@rhel63single database]$
[root@rhel63single ~]# more /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log
省略中间的输出
INFO: ------------------List of failed Tasks------------------
INFO: *********************************************
INFO: Physical Memory: This is a prerequisite condition to test whether the system has at least 1GB (1048576.0KB) of total physical memory.
INFO: Severity:IGNORABLE
INFO: OverallStatus:VERIFICATION_FAILED
INFO: -----------------End of failed Tasks List----------------
WARNING: [WARNING] [INS-13014] Target environment do not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log. Then either from the log f
ile or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
INFO: Advice is CONTINUE
INFO: Adding ExitStatus SUCCESS_WITH_WARNINGS to the exit status set
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is 6
INFO: List of warnings encountered in this Application:
INFO: PREREQS_FAILED_WITH_WARNING
INFO: Shutdown Oracle Database 11g Release 2 Installer
INFO: Unloading Setup Driver

[root@rhel63single ~]#  

可以看到是内存不够。

参考自:runInstaller PrereqChecker Doesn't Work on 11gR2 and above (文档 ID 1196346.1)


你可能感兴趣的:(Oracle,DB)