报错信息:
-
[oracle@oracle database]$ ./runInstaller -silent -responseFile /etc/db_install.rsp
-
Starting Oracle Universal Installer...
-
-
Checking Temp space: must be greater than 80 MB. Actual 42448 MB Passed
-
Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed
-
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-07-07_02-16-13PM. Please wait ...[oracle@oracle database]$ [SEVERE] - Email Address Not Specified
-
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三个字段被配置成了相对路径了,应该配置如下:
-
[oracle@oracledb ~]$ less /opt/database/response/db_install.rsp |grep -v "#"|grep -v "^$"
-
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
-
oracle.install.option=INSTALL_DB_SWONLY
-
ORACLE_HOSTNAME=oracledb
-
UNIX_GROUP_NAME=oinstall
-
INVENTORY_LOCATION=/opt/app/oracle/oraInventory
-
SELECTED_LANGUAGES=en,zh_CN
-
ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1
-
ORACLE_BASE=/opt/app/oracle
根据网上的案例,检查自己的环境
-
[oracle@oracle etc]$ echo $ORACLE_HOME
-
/u01/app/oracle/product/11.2.0/db_1
-
[oracle@oracle etc]$ echo $ORACLE_BASE
-
/u01/app/oracle
-
[oracle@oracle etc]$ cat db_install.rsp |grep -v "#"|grep -v "^$"
-
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
-
oracle.install.option=INSTALL_DB_SWONLY
-
ORACLE_HOSTNAME=oracle.example.com
-
UNIX_GROUP_NAME=oinstall
-
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
-
SELECTED_LANGUAGES=en
-
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
-
ORACLE_BASE=/u01/app/oracle
-
...省略部分内容...
并没有出现案例中的情况,网上也无更多的资料。
-
[oracle@oracle etc]$ grep DECLINE_SECURITY_UPDATES db_install.rsp
-
# Example : DECLINE_SECURITY_UPDATES=false
-
DECLINE_SECURITY_UPDATES=
尝试将该值改为true之后,发现便再无中断。
-
[oracle@oracle database]$ ./runInstaller -silent -responseFile /etc/db_install.rsp
-
Starting Oracle Universal Installer...
-
-
Checking Temp space: must be greater than 80 MB. Actual 42447 MB Passed
-
Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed
-
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.
-
CAUSE: The Central Inventory is located in the Oracle base.
-
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base 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. /tmp/OraInstall2017-07-07_02-35-27PM/installActions2017-07-07_02-35-27PM.log
-
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.
-
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
-
CAUSE: The Central Inventory is located in the Oracle base.
-
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base 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. /tmp/OraInstall2017-07-07_02-35-27PM/installActions2017-07-07_02-35-27PM.log
-
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.
-
You can find the log of this install session at:
-
/u01/app/oracle/oraInventory/logs/installActions2017-07-07_02-35-27PM.log
-
-
[oracle@oracle database]$ The following configuration scripts need to be executed as the "root" user.
-
#!/bin/sh
-
#Root scripts to run
-
-
/u01/app/oracle/product/11.2.0/db_1/root.sh
-
A value for the command line argument "sysPassword" is not provided. We cannot proceed without a value for this argument.
DECLINE_SECURITY_UPDATES参数说明:
-
#------------------------------------------------------------------------------
-
# Specify whether user doesn't want to configure Security Updates.
-
# The value for this variable should be true if you don't want to configure
-
# Security Updates, false otherwise.
-
#
-
# The value can be either true or false. If left blank it will be assumed
-
# to be false.
-
#
-
# Example : DECLINE_SECURITY_UPDATES=false
-
#------------------------------------------------------------------------------
-
DECLINE_SECURITY_UPDATES=
db_install.rsp参考模板:
-
[oracle@oracle etc]$ cat db_install.rsp |grep -v "#"|grep -v "^$"
-
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
-
oracle.install.option=INSTALL_DB_SWONLY
-
ORACLE_HOSTNAME=oracle.example.com
-
UNIX_GROUP_NAME=oinstall
-
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
-
SELECTED_LANGUAGES=en
-
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
-
ORACLE_BASE=/u01/app/oracle
-
oracle.install.db.InstallEdition=EE
-
oracle.install.db.isCustomInstall=true
-
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
-
oracle.install.db.DBA_GROUP=dba
-
oracle.install.db.OPER_GROUP=oinstall
-
oracle.install.db.CLUSTER_NODES=
-
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
-
oracle.install.db.config.starterdb.globalDBName=orcl
-
oracle.install.db.config.starterdb.SID=orcl
-
oracle.install.db.config.starterdb.characterSet=AL32UTF8
-
oracle.install.db.config.starterdb.memoryOption=true
-
oracle.install.db.config.starterdb.memoryLimit=512
-
oracle.install.db.config.starterdb.installExampleSchemas=false
-
oracle.install.db.config.starterdb.enableSecuritySettings=true
-
oracle.install.db.config.starterdb.password.ALL=oracle
-
oracle.install.db.config.starterdb.password.SYS=
-
oracle.install.db.config.starterdb.password.SYSTEM=
-
oracle.install.db.config.starterdb.password.SYSMAN=
-
oracle.install.db.config.starterdb.password.DBSNMP=
-
oracle.install.db.config.starterdb.control=DB_CONTROL
-
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
-
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
-
oracle.install.db.config.starterdb.dbcontrol.emailAddress=
-
oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
-
oracle.install.db.config.starterdb.automatedBackup.enable=false
-
oracle.install.db.config.starterdb.automatedBackup.osuid=
-
oracle.install.db.config.starterdb.automatedBackup.ospwd=
-
oracle.install.db.config.starterdb.storageType=
-
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
-
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
-
oracle.install.db.config.asm.diskGroup=
-
oracle.install.db.config.asm.ASMSNMPPassword=
-
MYORACLESUPPORT_USERNAME=
-
MYORACLESUPPORT_PASSWORD=
-
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
-
DECLINE_SECURITY_UPDATES=true
-
PROXY_HOST=
-
PROXY_PORT=
-
PROXY_USER=
-
PROXY_PWD=
过程信息:
-
binutils-2.20.51.0.2-5.11.el6.i686
-
compat-libcap1-1.10-1.i686
-
compat-libstdc++-33-3.2.3-69.el6.i686
-
gcc-4.4.4-13.el6.i686
-
gcc-c++-4.4.4-13.el6.i686
-
glibc-2.12-1.7.el6.i686
-
glibc-devel-2.12-1.7.el6.i686
-
ksh
-
libgcc-4.4.4-13.el6.i686
-
libstdc++-4.4.4-13.el6.i686
-
libstdc++-devel-4.4.4-13.el6.i686
-
libaio-0.3.107-10.el6.i686
-
libaio-devel-0.3.107-10.el6.i686
-
make-3.81-19.el6.i686
-
sysstat-9.0.4-11.el6.i686
-
yum install binutils* compat* gcc* glibc* ksh* lib* make* sysstat* unix* -y
-
-
./runInstaller -silent -responseFile /etc/db_install.rsp
-
-
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文件,设置相关参数的系统默认值。如果该文件中已有相关参数的设置,则确保参数值不小于如下对应值;如果还没有相关参数的设置,则按照如下格式添加相应的参数设置行。
-
vim /etc/sysctl.conf
-
-
fs.aio-max-nr = 1048576
-
fs.file-max = 6815744
-
kernel.shmall = 2097152
-
kernel.shmmax = 536870912
-
kernel.shmmni = 4096
-
kernel.sem = 250 32000 100 128
-
net.ipv4.ip_local_port_range = 9000 65500
-
net.core.rmem_default = 262144
-
net.core.rmem_max = 4194304
-
net.core.wmem_default = 262144
-
net.core.wmem_max = 1048586
(2)编辑/etc/security/limits.conf文件,修改操作系统对oracle用户资源的限制。在该文件中添加如下行。
-
vim /etc/security/limits.conf
-
-
oracle soft nproc 2047
-
oracle hard nproc 16384
-
oracle soft nofile 1024
-
oracle hard nofile 65536
-
oracle hard stack 10240
(3)修改/etc/pam.d/login文件加上如下参数
-
session required pam_limits.so
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30174570/viewspace-2141715/
,如需转载,请注明出处,否则将追究法律责任。