安装准备
检查redhat内核版本
[root@redhat~]#uname-r
2.6.32-131.0.15.el6.i686
安装软件包检查
[root@redhatsysconfig]#rpm-qa|grepbinutils
binutils-2.20.51.0.2-5.20.el6.i686
binutils-devel-2.20.51.0.2-5.20.el6.i686
[root@redhatsysconfig]#rpm-qa|grepcompat-libstdc++
compat-libstdc++-33-3.2.3-69.el6.i686
[root@redhatsysconfig]#rpm-qa|grepelfutils-libelf
elfutils-libelf-0.152-1.el6.i686
elfutils-libelf-devel-0.152-1.el6.i686
[root@redhatsysconfig]#rpm-qa|grepglibc
glibc-headers-2.12-1.25.el6.i686
glibc-devel-2.12-1.25.el6.i686
glibc-2.12-1.25.el6.i686
glibc-common-2.12-1.25.el6.i686
[root@redhatsysconfig]#rpm-qa|greplibaio
libaio-0.3.107-10.el6.i686
[root@redhatsysconfig]#rpm-qa|greplibgcc
libgcc-4.4.5-6.el6.i686
[root@redhatsysconfig]#rpm-qa|greplibstdc++
libstdc++-4.4.5-6.el6.i686
libstdc++-docs-4.4.5-6.el6.i686
libstdc++-devel-4.4.5-6.el6.i686
[root@redhatsysconfig]#rpm-qa|grepsysstat
sysstat-9.0.4-18.el6.i686
[root@redhatsysconfig]#rpm-qa|grepunixODBC
unixODBC-devel-2.2.14-11.el6.i686
unixODBC-2.2.14-11.el6.i686
修改内核参数,修改后运行sysctl–p使修改生效
[root@redhat~]#vi/etc/sysctl.conf
kernel.shmall=268435456
kernel.shmmni=4096
kernel.sem=25032000100128
net.ipv4.ip_local_port_range=102465000
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144
fs.aio-max-nr=1048576
fs.file-max=6815744
oracle用户及组的创建
[root@redhat~]#groupaddoinstall
[root@redhat~]#groupadddba
[root@redhat~]#useradd-goinstall-Gdbaoracle
[root@redhat~]#passwdoracle
更改用户oracle的密码。
新的密码:
重新输入新的密码:
passwd:所有的身份验证令牌已经成功更新。
[root@redhat~]#mkdir-p/u01/oracle
[root@redhat~]#chown-Roracle:oinstall/u01/oracle
为oracle用户设置环境变量
[root@redhat~]#su-loracle
[oracle@redhat~]$vi.bash_profile
TMP=/tmp;exportTMP
TMPDIR=$TMP;exportTMPDIR
exportORACLE_BASE=/u01/oracle
exportORACLE_HOME=$ORACLE_BASE/product/OraHome