今天玩下静默安装(简)
系统要求:–具体参数查看官方文档
- 编辑/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = physical RAM size / pagesize For most systems, this will be the value 2097152.-------------需要计算 一般为2097152
kernel.shmmax = RAM times 0.5 需要计算( 内存的一般)32/210241024*1024
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
" maximum" for SHMMAX of just less than 4Gb, or 4294967295.
" maximum" for SHMMAX of “1/2 of physical RAM”.
-
编辑/etc/security/limits.conf文件,修改操作系统对oracle用户资源的限制。在该文件中添加如下行。
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle hard stack 1024000
oracle soft stack 1024000 -
编辑vm.max_map_count参数为200000 可以使用如下命令修改。
$ more /proc/sys/vm/max_map_count
4)Verifying UDP and TCP Kernel Parameters
$ cat /proc/sys/net/ipv4/ip_local_port_range
32768 61000
#echo 9000 65500 > /proc/sys/net/ipv4/ip_local_port_rang
软件安装:
vi db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=hadoop01
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/oracle/inventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/oracle/product/db11gr2
ORACLE_BASE=/u01/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true
./runInstaller -silent -responseFile /u01/database/response/db_install.rsp -ignoreSysPrereqs
As a root user, execute the following script(s):
1. /u01/oracle/inventory/orainstRoot.sh
2. /u01/oracle/product/db11gr2/root.sh
监听安装:
netca /silent /responseFile /u01/database/response/netca.rsp
数据库安装:
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orac -sid orac -sysPassword oracle -systemPassword oracle -responseFile NO_VALUE -datafileDestination /u01/app/oracle/oradata/ -redoLogFileSize 50 -recoveryAreaDestination /u01/app/oracle/fast_recovery_area -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -totalMemory 200 -databaseType OLTP -emConfiguration NONE