Oracle 11G靜默安裝報錯Oracle recommends that if you want to keep this log...

PiscesCanon發表於2017-07-07
報錯資訊:
  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部落格 ” ,連結:http://blog.itpub.net/30174570/viewspace-2141715/,如需轉載,請註明出處,否則將追究法律責任。

相關文章