oracle 11G静默安装

今天玩下静默安装(简)

系统要求:–具体参数查看官方文档

  1. 编辑/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”.

  1. 编辑/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

  2. 编辑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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值