静默安装oracle11g单实例-腾讯云
环境检查
Oracle版本
p13390677_112040_Linux-x86-64_1of7.zip
p13390677_112040_Linux-x86-64_2of7.zip
[root@lizer_tx ~]# cat /etc/issue
CentOS release 6.7 (Final)
Kernel \r on an \m
[root@lizer_tx ~]# uname -r
2.6.32-573.18.1.el6.x86_64
[root@lizer_tx ~]# grep MemTotal /proc/meminfo
MemTotal: 1020224 kB
[root@lizer_tx ~]# grep SwapTotal /proc/meminfo
SwapTotal: 2047996 kB
[root@lizer_tx ~]# grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU E5-26xx v3
[root@lizer_tx ~]# free
total used free shared buffers cached
Mem: 1020224 949268 70956 172 65372 669660
-/+ buffers/cache: 214236 805988
Swap: 2047996 0 2047996
[root@lizer_tx ~]# df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 20641404 13186532 6406356 68% /
[root@lizer_tx ~]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 20641404 13186532 6406356 68% /
安装依赖包
yum install binutils.x86_64 compat-libcap1.x86_64 compat-libstdc++-33.x86_64 gcc.x86_64 libstdc++-devel.x86_64 gcc-c++.x86_64 glibc.x86_64 glibc-devel.x86_64 libgcc.x86_64 libstdc++.x86_64 libstdc++-devel.x86_64 libaio.x86_64 libaio-devel.x86_64 sysstat.x86_64 elfutils-libelf-devel.x86_64
上传pdksh安装
rpm -ivh pdksh-5.2.14-37.el5_8.1.x86_64.rpm
修改主机参数
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 = 1048576
修改后,使设置生效
/sbin/sysctl -p
修改用户限制
vim /etc/security/limits.conf
grid soft nofile 1024
grid hard nofile 65536
grid soft nproc 2047
grid hard nproc 16384
grid soft stack 10240
grid hard stack 32768
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
vim /etc/pam.d/login
session required /lib64/security/pam_limits.so
session required pam_limits.so
vim /etc/profile