Oracle数据库静默安装总结(五)

2015-01-21 12:25:57 · 作者: · 浏览: 30
------------------------
DECLINE_SECURITY_UPDATES=true


对于静默安装 runInstaller是必须的执行文件,脚本本身提供了大量的选项。可以通过./runInstaller -help来看到
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-11-18_04-00-22AM. Please wait ...[oracle@rac1 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
。。。。。



?安装的时候,可以使用如下命令。


[oracle@rac1 database]$ ./runInstaller -silent -responsefile /home/oracle/new.rsp -ignoreSysPrereqs
?Starting Oracle Universal Installer...


Checking Temp space: must be greater than 120 MB.? Actual 993 MB? ? Passed
?Checking swap space: must be greater than 150 MB.? Actual 3967 MB? ? Passed
?Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-11-18_04-15-07AM. Please wait ...[oracle@rac1 database]$ [WARNING] [INS-32008] Oracle base location cant be same as the user home directory.
? ? CAUSE: The specified Oracle base is same as the user home directory.
? ? ACTION: Provide an Oracle base location other than the user home directory.
?[WARNING] [INS-13014] Target environment do not meet some optional requirements.
? ? CAUSE: Some of the optional prerequisites are not met. See logs for details. /u04/app/oraInventory/logs/installActions2014-11-18_04-15-07AM.log
? ? ACTION: Identify the list of failed prerequisite checks from the log: /u04/app/oraInventory/logs/installActions2014-11-18_04-15-07AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
?You can find the log of this install session at:
? /u04/app/oraInventory/logs/installActions2014-11-18_04-15-07AM.log


如果响应文件出现问题,就会出现类似下面的问题。


Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-11-18_04-06-16AM. Please wait ...[oracle@rac1 database]$ [FATAL] [INS-10105] The given response file /home/oracle/new.rsp is not valid.
? ? CAUSE: Syntactically incorrect response file. Either unexpected variables are specified or expected variables are not specified in the response file.
? ? ACTION: Refer the latest product specific response file template
? ? SUMMARY:
? ? ? ? - cvc-enumeration-valid: Value '1' is not facet-valid with respect to enumeration '[INSTALL_DB_SWONLY, INSTALL_DB_AND_CONFIG, UPGRADE_DB]'. It must be a value from the enumeration.
?cvc-type.3.1.3: The value '1' of element 'oracle.install.option' is not valid.


?这个问题很明显就是因为响应文件中的设置错误。有INSTALL_DB_SWONLY, INSTALL_DB_AND_CONFIG, UPGRADE_DB3个选项,但是相应文件里设置错误。
?查看响应文件的配置,确实有问题。
# Specify the installation option.
?# It can be one of the following:
?# 1. INSTALL_DB_SWONLY
?# 2. INSTALL_DB_AND_CONFIG
?# 3. UPGRADE_DB
?#-------------------------------------------------------------------------------
oracle.install.option=1? --这个地方设置错误,需要写为INSTALL_DB_SWONLY..不是数字


?如果大体没有问题,就可以看到一个后台进程在执行安装。
? PID USER? ? ? PR? NI? VIRT? RES? SHR S %CPU %MEM? ? TIME+? COMMAND? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?12298 oracle? ? 20? 0 1494m 160m? 22m R 194.5? 8.1? 0:40.84 /tmp/OraInstall2014-11-18_04-15-07A