RHEL6.3_x86_64平台安装11.2.0.3 64-bit (x86-64)企业版
1、创建用户
groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle passwd oracle
2、创建目录
cd /home mkdir -p /home/oracle/orabase chown -R oracle.oinstall /home/oracle chmod 777 /home/oracle
3、修改文件/etc/security/limits.conf,添加以下内容:
# /etc/security/limits.conf
#for oracle
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 oracle soft stack 32768
4、查看确认以下rpm包是否安装,若未安装及时安装如下rpm包
binutils-2.20.51.0.2-5.11.el6 (x86_64) compat-libcap1-1.10-1 (x86_64) compat-libstdc++-33-3.2.3-69.el6 (x86_64) compat-libstdc++-33-3.2.3-69.el6.i686 gcc-4.4.4-13.el6 (x86_64) gcc-c++-4.4.4-13.el6 (x86_64) glibc-2.12-1.7.el6 (i686) glibc-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7.el6.i686 ksh libgcc-4.4.4-13.el6 (i686) libgcc-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6.i686 libstdc++-devel-4.4.4-13.el6 (x86_64) libstdc++-devel-4.4.4-13.el6.i686 libaio-0.3.107-10.el6 (x86_64) libaio-0.3.107-10.el6.i686 libaio-devel-0.3.107-10.el6 (x86_64) libaio-devel-0.3.107-10.el6.i686 make-3.81-19.el6 sysstat-9.0.4-11.el6 (x86_64) unixODBC-2.2.14-11.el6 (x86_64) or later unixODBC-2.2.14-11.el6.i686 or later unixODBC-devel-2.2.14-11.el6 (x86_64) orlater unixODBC-devel-2.2.14-11.el6.i686 or later
5、修改内核参数
vi /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 4294967295 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
备注:若sysctl.conf文件中参数值大于指定值,那么以配置文件参数值为准。
6、修改oracle用户bash_profile文件添加如下内容
vi .bash_profile export TMP=/tmp; export TMPDIR=$TMP; export ORACLE_BASE=/home/oracle/orabase; export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_SID=JASON; export ORACLE_TERM=xterm; export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export PATH=$ORACLE_HOME/bin:$PATH; exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; umask 022
7、解压数据库文件压缩包,执行./runInstaller进行安装。
8、常见报错及错误及处理方法
错误1:执行内核参数输出时sysctl -p报如下错误
net.ipv4.tcp_syncookies = 1 error: "net.bridge.bridge-nf-call-ip6tables"is an unknown key error:"net.bridge.bridge-nf-call-iptables" is an unknown key error:"net.bridge.bridge-nf-call-arptables" is an unknown key
解决方法:
modprobe bridge lsmod|grep bridge
错误2:执行./runInstaller进行安装报如下错误
解决方法:
修改/etc/hosts文件添加server1
127.0.0.1 server1 localhost.localdomain localhost
或者添加
xxx.xxx.xxx.xxx server1
错误3:Installing 11.2.0.3 32-bit (x86) or 64-bit (x86-64)on RHEL6 Reports That Packages "elfutils-libelf-devel-0.97" and"pdksh-5.2.14" are missing
解决方法:
(1)、cd <path>/database/stage/cvu/cv/admin。
(2)、备份cvu_config。
$ cp cvu_config backup_cvu_config
(3)、编辑cvu_config配置文件修改如下行。
CV_ASSUME_DISTID=OEL4
to:
CV_ASSUME_DISTID=OEL6
(4)、保存修改退出。
错误4:
执行dbca报No protocol specified 错误
解决方法:root用户执行 xhost +