ITPub博客

首页 > 数据库 > Oracle > Oracle 11G静默安装报错Oracle recommends that if you want to keep this log...

Oracle 11G静默安装报错Oracle recommends that if you want to keep this log...

原创 Oracle 作者:PiscesCanon 时间:2017-07-07 15:37:09 0 删除 编辑
报错信息:
  1. [oracle@oracle database]$ ./runInstaller -silent -responseFile /etc/db_install.rsp
  2. Starting Oracle Universal Installer...

  3. Checking Temp space: must be greater than 80 MB. Actual 42448 MB Passed
  4. Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed
  5. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-07-07_02-16-13PM. Please wait ...[oracle@oracle database]$ [SEVERE] - Email Address Not Specified
  6. A log of this session is currently saved as: /tmp/OraInstall2017-07-07_02-16-13PM/installActions2017-07-07_02-16-13PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.

网上的案例:

1.检查了环境变量$ORACLE_BASE和$ORACLE_HOME发现两个路径均正常,没有异常

2.查看./response/db_install.rsp文件中INVENTORY_LOCATION、ORACLE_BASE和ORACLE_HOME三个字段被配置成了相对路径了,应该配置如下:

  1. [oracle@oracledb ~]$ less /opt/database/response/db_install.rsp |grep -v "#"|grep -v "^$"
  2. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
  3. oracle.install.option=INSTALL_DB_SWONLY
  4. ORACLE_HOSTNAME=oracledb
  5. UNIX_GROUP_NAME=oinstall
  6. INVENTORY_LOCATION=/opt/app/oracle/oraInventory
  7. SELECTED_LANGUAGES=en,zh_CN
  8. ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1
  9. ORACLE_BASE=/opt/app/oracle


根据网上的案例,检查自己的环境
  1. [oracle@oracle etc]$ echo $ORACLE_HOME
  2. /u01/app/oracle/product/11.2.0/db_1
  3. [oracle@oracle etc]$ echo $ORACLE_BASE
  4. /u01/app/oracle
  5. [oracle@oracle etc]$ cat db_install.rsp |grep -v "#"|grep -v "^$"
  6. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
  7. oracle.install.option=INSTALL_DB_SWONLY
  8. ORACLE_HOSTNAME=oracle.example.com
  9. UNIX_GROUP_NAME=oinstall
  10. INVENTORY_LOCATION=/u01/app/oracle/oraInventory
  11. SELECTED_LANGUAGES=en
  12. ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
  13. ORACLE_BASE=/u01/app/oracle
  14. ...省略部分内容...
并没有出现案例中的情况,网上也无更多的资料。

  1. [oracle@oracle etc]$ grep DECLINE_SECURITY_UPDATES db_install.rsp
  2. # Example : DECLINE_SECURITY_UPDATES=false
  3. DECLINE_SECURITY_UPDATES=

尝试将该值改为true之后,发现便再无中断。
  1. [oracle@oracle database]$ ./runInstaller -silent -responseFile /etc/db_install.rsp
  2. Starting Oracle Universal Installer...

  3. Checking Temp space: must be greater than 80 MB. Actual 42447 MB Passed
  4. Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed
  5. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-07-07_02-35-27PM. Please wait ...[oracle@oracle database]$ [WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
  6.    CAUSE: The Central Inventory is located in the Oracle base.
  7.    ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
  8. [WARNING] [INS-13014] Target environment do not meet some optional requirements.
  9.    CAUSE: Some of the optional prerequisites are not met. See logs for details. /tmp/OraInstall2017-07-07_02-35-27PM/installActions2017-07-07_02-35-27PM.log
  10.    ACTION: Identify the list of failed prerequisite checks from the log: /tmp/OraInstall2017-07-07_02-35-27PM/installActions2017-07-07_02-35-27PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
  11. [WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
  12.    CAUSE: The Central Inventory is located in the Oracle base.
  13.    ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
  14. [WARNING] [INS-13014] Target environment do not meet some optional requirements.
  15.    CAUSE: Some of the optional prerequisites are not met. See logs for details. /tmp/OraInstall2017-07-07_02-35-27PM/installActions2017-07-07_02-35-27PM.log
  16.    ACTION: Identify the list of failed prerequisite checks from the log: /tmp/OraInstall2017-07-07_02-35-27PM/installActions2017-07-07_02-35-27PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
  17. You can find the log of this install session at:
  18.  /u01/app/oracle/oraInventory/logs/installActions2017-07-07_02-35-27PM.log

  19. [oracle@oracle database]$ The following configuration scripts need to be executed as the "root" user.
  20.  #!/bin/sh
  21.  #Root scripts to run

  22. /u01/app/oracle/product/11.2.0/db_1/root.sh
  23. A value for the command line argument "sysPassword" is not provided. We cannot proceed without a value for this argument.

DECLINE_SECURITY_UPDATES参数说明:
  1. #------------------------------------------------------------------------------
  2. # Specify whether user doesn't want to configure Security Updates.
  3. # The value for this variable should be true if you don't want to configure
  4. # Security Updates, false otherwise.
  5. #
  6. # The value can be either true or false. If left blank it will be assumed
  7. # to be false.
  8. #
  9. # Example : DECLINE_SECURITY_UPDATES=false
  10. #------------------------------------------------------------------------------
  11. DECLINE_SECURITY_UPDATES=

db_install.rsp参考模板:
  1. [oracle@oracle etc]$ cat db_install.rsp |grep -v "#"|grep -v "^$"
  2. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
  3. oracle.install.option=INSTALL_DB_SWONLY
  4. ORACLE_HOSTNAME=oracle.example.com
  5. UNIX_GROUP_NAME=oinstall
  6. INVENTORY_LOCATION=/u01/app/oracle/oraInventory
  7. SELECTED_LANGUAGES=en
  8. ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
  9. ORACLE_BASE=/u01/app/oracle
  10. oracle.install.db.InstallEdition=EE
  11. oracle.install.db.isCustomInstall=true
  12. oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
  13. oracle.install.db.DBA_GROUP=dba
  14. oracle.install.db.OPER_GROUP=oinstall
  15. oracle.install.db.CLUSTER_NODES=
  16. oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
  17. oracle.install.db.config.starterdb.globalDBName=orcl
  18. oracle.install.db.config.starterdb.SID=orcl
  19. oracle.install.db.config.starterdb.characterSet=AL32UTF8
  20. oracle.install.db.config.starterdb.memoryOption=true
  21. oracle.install.db.config.starterdb.memoryLimit=512
  22. oracle.install.db.config.starterdb.installExampleSchemas=false
  23. oracle.install.db.config.starterdb.enableSecuritySettings=true
  24. oracle.install.db.config.starterdb.password.ALL=oracle
  25. oracle.install.db.config.starterdb.password.SYS=
  26. oracle.install.db.config.starterdb.password.SYSTEM=
  27. oracle.install.db.config.starterdb.password.SYSMAN=
  28. oracle.install.db.config.starterdb.password.DBSNMP=
  29. oracle.install.db.config.starterdb.control=DB_CONTROL
  30. oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
  31. oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
  32. oracle.install.db.config.starterdb.dbcontrol.emailAddress=
  33. oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
  34. oracle.install.db.config.starterdb.automatedBackup.enable=false
  35. oracle.install.db.config.starterdb.automatedBackup.osuid=
  36. oracle.install.db.config.starterdb.automatedBackup.ospwd=
  37. oracle.install.db.config.starterdb.storageType=
  38. oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
  39. oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
  40. oracle.install.db.config.asm.diskGroup=
  41. oracle.install.db.config.asm.ASMSNMPPassword=
  42. MYORACLESUPPORT_USERNAME=
  43. MYORACLESUPPORT_PASSWORD=
  44. SECURITY_UPDATES_VIA_MYORACLESUPPORT=
  45. DECLINE_SECURITY_UPDATES=true
  46. PROXY_HOST=
  47. PROXY_PORT=
  48. PROXY_USER=
  49. PROXY_PWD=

过程信息:

  1. binutils-2.20.51.0.2-5.11.el6.i686
  2. compat-libcap1-1.10-1.i686
  3. compat-libstdc++-33-3.2.3-69.el6.i686
  4. gcc-4.4.4-13.el6.i686
  5. gcc-c++-4.4.4-13.el6.i686
  6. glibc-2.12-1.7.el6.i686
  7. glibc-devel-2.12-1.7.el6.i686
  8. ksh
  9. libgcc-4.4.4-13.el6.i686
  10. libstdc++-4.4.4-13.el6.i686
  11. libstdc++-devel-4.4.4-13.el6.i686
  12. libaio-0.3.107-10.el6.i686
  13. libaio-devel-0.3.107-10.el6.i686
  14. make-3.81-19.el6.i686
  15. sysstat-9.0.4-11.el6.i686

  1. yum install binutils* compat* gcc* glibc* ksh* lib* make* sysstat* unix* -y

  2. ./runInstaller -silent -responseFile /etc/db_install.rsp

  3.  dbca -silent -createDatabase -templateName /u01/app/oracle/product/11.2.0/db_1/assistants/dbca/templates/General_Purpose.dbc -gdbName orcl -sid orcl -responseFile NO_VALUE -characterSet ZHS16GBK -sysPassword oracle -systemPassword oracle

(1)  编辑/etc/sysctl.conf文件,设置相关参数的系统默认值。如果该文件中已有相关参数的设置,则确保参数值不小于如下对应值;如果还没有相关参数的设置,则按照如下格式添加相应的参数设置行。

  1. vim /etc/sysctl.conf

  2. fs.aio-max-nr = 1048576
  3. fs.file-max = 6815744
  4. kernel.shmall = 2097152
  5. kernel.shmmax = 536870912
  6. kernel.shmmni = 4096
  7. kernel.sem = 250 32000 100 128
  8. net.ipv4.ip_local_port_range = 9000 65500
  9. net.core.rmem_default = 262144
  10. net.core.rmem_max = 4194304
  11. net.core.wmem_default = 262144
  12. net.core.wmem_max = 1048586

(2)编辑/etc/security/limits.conf文件,修改操作系统对oracle用户资源的限制。在该文件中添加如下行。
  1. vim /etc/security/limits.conf

  2. oracle soft nproc 2047
  3. oracle hard nproc 16384
  4. oracle soft nofile 1024
  5. oracle hard nofile 65536
  6. oracle hard stack 10240

(3)修改/etc/pam.d/login文件加上如下参数
  1. session required pam_limits.so

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30174570/viewspace-2141715/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-03-23

  • 博文量
    29
  • 访问量
    57488