使用runInstaller 的executePrereqs选项来验证os是否符合oracle

以下实验基于oracle 11.2.0.4[oracle@rhel63single database]$ ./runInstaller -helpPreparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-23-12AM. Please wait …[oracle@rhel63single database]$ Usage:runInstaller [-options] [(<CommandLineVariable=Value>)*]Where options include: -clusterware oracle.crs,<crs version>Version of Cluster ready services installed. -crsLocation <Path>Used only for cluster installs, specifies the path to the crs home location. Specifying this overrides CRS information obtained from central inventory. -invPtrLoc <full path of oraInst.loc>Unix only. To point to a different inventory location. The orainst.loc file contains:inventory_loc=<location of central inventory>inst_group=<> -jreLoc <location>Path where Java Runtime Environment is installed. OUI cannot be run without it. -logLevel <level>To filter log messages that have a lesser priority level than <level>. Valid options are: severe, warning, info, config, fine, finer, finest, basic, general, detailed, trace. The use of basic, general, detailed, trace is deprecated. -paramFile <location of file>Specify location of oraparam.ini file to be used by OUI. -responseFile <Path>Specifies the response file and path to use. -attachHomeFor attaching homes to the OUI inventory. -cfsIndicates 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. -cloneFor making an Oracle Home copy match its current environment. -debugFor getting the debug information from OUI. -detachHomeFor detaching homes from the OUI inventory without deleting inventory directory inside Oracle home. -enableRollingUpgradeUsed in cluster environment, to enable upgrade of a product on a subset of nodes (on which the product was installed). -executeSysPrereqsExecute system pre-requisite checks and exit. -forceAllowing silent mode installation into a non-empty directory. -helpDisplays above usage. -ignoreSysPrereqsFor ignoring the results of the system pre-requisite checks. -localPerforms the operation on the local node irrespective of the cluster nodes specified. -printdiskusageLog debug information for disk usage. -printmemoryLog debug information for memory usage. -printtimeLog debug information for time usage. -relinkFor performing relink actions on the oracle homeUsage: -relink -maketargetsxml <location of maketargetsxml> [-makedepsxml <location of makedepsxml>] [name=value] -silentFor silent mode operations, the inputs can be a response file or a list of command line variable value pairs. -waitforcompletionInstaller will wait for completion instead of spawning the java engine and exiting. -suppressPreCopyScriptSuppress the execution of precopy script. -acceptUntrustedCertificatesAccept untrusted certificates from a secure site. -suppressPostCopyScriptSuppress the execution of postcopy script. -noconfigDo not execute config tools. -noconsoleFor suppressing display of messages to console. Console is not allocated. -formClusterTo install the Oracle clusterware in order to form the cluster. -remotecp <Path>Unix specific option. Used only for cluster installs, specifies the path to the remote copy program on the local cluster node. -remoteshell <Path>Unix specific option. Used only for cluster installs, specifies the path to the remote shell program on the local cluster node. -executePrereqsTo execute only the prerequisite checks. -ignorePrereqTo ignore running the prerequisite checks. -ignoreInternalDriverErrorTo ignore any internal driver errors. -downloadUpdatesTo download updates only. -showProgressTo 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 <name=value>; for example:[ session: | compName: | compName:version: ]variableName=" valueOfVariable"]Session/Installer variables are specified using:[session:]varName=valueEx 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:]]varNameEx 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.rspStarting Oracle Universal Installer…Checking Temp space: must be greater than 120 MB. Actual 3042 MB PassedChecking swap space: must be greater than 150 MB. Actual 2047 MB PassedPreparing 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 -lrttotal 60drwxr-xr-x. 2 oracle oinstall 4096 Aug 27 2013 sshsetup-rwxr-xr-x. 1 oracle oinstall 3267 Aug 27 2013 runInstallerdrwxr-xr-x. 2 oracle oinstall 4096 Aug 27 2013 rpmdrwxr-xr-x. 2 oracle oinstall 4096 Aug 27 2013 response-rw-r–r–. 1 oracle oinstall 30016 Aug 27 2013 readme.htmldrwxr-xr-x. 14 oracle oinstall 4096 Aug 27 2013 stage-rw-r–r–. 1 oracle oinstall 500 Aug 27 2013 welcome.htmldrwxr-xr-x. 4 oracle oinstall 4096 Aug 27 2013 install[oracle@rhel63single database]$ ./runInstaller -executePrereqs -silent -responseFile /u02/database/response/db_install.rspStarting Oracle Universal Installer…Checking Temp space: must be greater than 120 MB. Actual 3042 MB PassedChecking swap space: must be greater than 150 MB. Actual 2047 MB PassedPreparing 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:IGNORABLEINFO: OverallStatus:VERIFICATION_FAILEDINFO: —————–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 file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.INFO: Advice is CONTINUEINFO: Adding ExitStatus SUCCESS_WITH_WARNINGS to the exit status setINFO: Finding the most appropriate exit status for the current applicationINFO: Exit Status is 6INFO: List of warnings encountered in this Application:INFO: PREREQS_FAILED_WITH_WARNINGINFO: Shutdown Oracle Database 11g Release 2 InstallerINFO: Unloading Setup Driver[root@rhel63single ~]# 可以看到是内存不够。

青春在我的心中是苦涩的又是甘甜的,是精致的又是粗糙的,

使用runInstaller 的executePrereqs选项来验证os是否符合oracle

相关文章:

你感兴趣的文章:

标签云: