首先,參考官方文檔:http://docs.oracle.com/cd/B28359_01/install.111/b32002/install_overview.htm
If you are not a ULN customer, and you are running Red Hat Enterprise Linux or Oracle Linux, then you can obtain the Oracle Validated RPM at the following URLs:
Oracle Linux 4:
http://oss.oracle.com/el4/oracle-validated/
Oracle Linux 5:
http://oss.oracle.com/el5/oracle-validated/
1.下載 oracle-validated package
[root@ora10g ~]# cd /tmp[root@ora10g tmp]# wget https://oss.oracle.com/el5/oracle-validated/oracle-validated-1.0.0-18.el5.x86_64.rpm--2013-05-29 22:01:42-- https://oss.oracle.com/el5/oracle-validated/oracle-validated-1.0.0-18.el5.x86_64.rpmResolving oss.oracle.com... 137.254.17.12Connecting to oss.oracle.com|137.254.17.12|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 15224 (15K) [application/x-rpm]Saving to: `oracle-validated-1.0.0-18.el5.x86_64.rpm'100%[========================================>] 15,224 66.6K/s in 0.2s 2013-05-29 22:01:58 (66.6 KB/s) - `oracle-validated-1.0.0-18.el5.x86_64.rpm' saved [15224/15224]
2.安裝package:
[root@ora10g tmp]# yum install oracle-validated-1.0.0-18.el5.x86_64.rpm
可能需要匯入RPM GPG KEY:
rpm --import http://oss.oracle.com/el5/RPM-GPG-KEY-oracle
包安裝完畢後,參數已修改:
[root@ora10g tmp]# ls -l /etc/sysctl.conf*-rw-r--r-- 1 root root 1465 May 29 22:02 /etc/sysctl.conf-rw-r--r-- 1 root root 996 May 29 21:59 /etc/sysctl.conf.orabackup[root@ora10g tmp]# dff /etc/sysctl.conf /etc/sysctl.conf.orabackup -bash: dff: command not found[root@ora10g tmp]# diff /etc/sysctl.conf /etc/sysctl.conf.orabackup 16c16< kernel.sysrq = 1---> kernel.sysrq = 029c29< kernel.msgmax = 8192---> kernel.msgmax = 6553632c32< kernel.shmmax = 4398046511104---> kernel.shmmax = 6871947673635,48c35< kernel.shmall = 1073741824< fs.file-max = 327679< kernel.msgmni = 2878< kernel.sem = 250 32000 100 142< kernel.shmmni = 4096< net.core.rmem_default = 262144< net.core.rmem_max = 4194304< net.core.wmem_default = 262144< net.core.wmem_max = 262144< fs.aio-max-nr = 3145728< net.ipv4.ip_local_port_range = 1024 65000< # For 11g recommended value for net.core.rmem_max is 4194304< # For 10g uncomment the following line, comment other entries for this parameter and re-run sysctl -p< # net.core.rmem_max=2097152---> kernel.shmall = 4294967296
/etc/security/limits.conf:
[root@ora10g tmp]# ls -l /etc/security/limits.conf*-rw-r--r-- 1 root root 2059 May 29 22:02 /etc/security/limits.conf-rw-r--r-- 1 root root 1789 May 29 21:59 /etc/security/limits.conf.orabackup[root@ora10g tmp]# diff /etc/security/limits.conf /etc/security/limits.conf.orabackup44,51d43< oracle soft nofile 131072< oracle hard nofile 131072< oracle soft nproc 131072< oracle hard nproc 131072< oracle soft core unlimited< oracle hard core unlimited< oracle soft memlock 50000000< oracle hard memlock 50000000
附上本地yum配置:/etc/yum.repos.d/local.repo
[local_yum_source]name=my_local_sourcebaseurl=file:///media/disk/Servergpgcheck=0enable=1gpgkey=file:///etc/yum.repos.d/RPM-GPG-KEY-oracle
感謝 http://perumal.org/prepare-your-linux-server-to-install-oracle-database-using-oracle-validated-rpm/