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

-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>
。。。。。


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

[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-07AM/jdk/jre/bin/java -Doracle.installer.library_loc=/tmp/OraInstall2014-1
通过日志文件也能看到安装的一些细节。

查看安装目录,也会看到在逐渐增大。
 [oracle@rac1 ORAHOME]$ du -sh .
 1.8G    .
 [oracle@rac1 ORAHOME]$ du -sh .
 2.2G    .
 [oracle@rac1 ORAHOME]$ du -sh .
 4.0G 
如果在日志文件中看到如下的内容,证明安装已经完成。
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

同时,也可以通过sqlplus来测试安装进度
[oracle@rac1 bin]$ ./sqlplus
 ./sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory  --这个时候说明安装还在继续
[oracle@rac1 bin]$ ./sqlplus
 Error 6 initializing SQL*Plus
 SP2-0667: Message file sp1<lang>.msb not found                                  --这个时候说明安装已经完成,需要设置的就是ORACLE_HOME了
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/3adc1cdba27cda0ef4f28a2d7bfdc8e0.html