1. 修改host文件,添加本机的host记录 [root@RACDG ~]# vi /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.56.16 RACDG2. 修改/etc/sysctl.conf文件,添加如下几行 [root@RACDG ~]# vi /etc/sysctl.conf fs.suid_dumpable = 1 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 984754176 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni 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 3. 运行下面命令使其生效 [root@RACDG ~]# /sbin/sysctl -p 4. 编辑/etc/security/limit.conf,添加下面几行 [root@RACDG ~]# vi /etc/security/limits.conf oracle soft nproc 16384 oracle hard nproc 16384 oracle soft nofile 4096 oracle hard nofile 65536 oracle soft stack 10240 5. 添加用户和组,以及添加oracle用户密码: [root@RACDG ~]# groupadd -g 501 oinstall [root@RACDG ~]# groupadd -g 502 dba [root@RACDG ~]# groupadd -g 503 oper [root@RACDG ~]# groupadd -g 504 asmadmin [root@RACDG ~]# groupadd -g 506 asmdba [root@RACDG ~]# groupadd -g 505 asmoper [root@RACDG ~]# useradd -u 502 -g oinstall -G dba,asmdba,oper oracle [root@RACDG ~]# passwd oracle 6. 修改/etc/security/limits.d/90-nproc.conf,做如下修改: [root@RACDG ~]# vi /etc/security/limits.d/90-nproc.conf # Change this * soft nproc 1024 # To this * - nproc 16384 7. 创建目录: [root@RACDG ~]# mkdir -p /u01/app/oracle/product/11.2.0/db_1 [root@RACDG ~]# chown -R oracle:oinstall /u01 [root@RACDG ~]# chmod -R 775 /u01 8.修改环境变量,添加如下几行: [root@RACDG ~]# su - oracle [oracle@RACDG ~]$ vi .bash_profile ORACLE_HOSTNAME=RACDG; export ORACLE_HOSTNAME ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME ORACLE_SID=orcl; export ORACLE_SID PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH 9. 配置yum源: [root@RACDG ~]# mkdir /mnt/rhel6 [root@RACDG ~]# mount /dev/cdrom /mnt/rhel6/ mount: block device /dev/sr0 is write-protected, mounting read-only 10. 修改配置文件如下: [root@RACDG ~]# vi /etc/yum.repos.d/rhel-source.repo [rhel-source] name=Rhel-Source baseurl=file:///mnt/rhel6 enabled=1 gpgcheck=0 11. 安装依赖包: [root@RACDG ~]# yum install -y binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel sysstat make elfutils-libelf-devel compat-libstdc++-33-3.2.3 Complete! 12. 创建临时路径,将安装包上传到该路径下面,并解压该安装包 [root@RACDG ~]# mkdir /tmp/orasoft [root@RACDG ~]# cd /tmp/orasoft/ [root@RACDG orasoft]# unzip p13390677_112040_Linux-x86-64_1of7.zip [root@RACDG orasoft]# unzip p13390677_112040_Linux-x86-64_2of7.zip 13. 解压完成之后,可以看到生成了database文件夹 [root@RACDG orasoft]# ls database pdksh-5.2.14-37.el5_8.1.i386.rpm 14. 利用Xmanager中的Xmanager-Passive进行图形化安装 [root@RACDG orasoft]# export DISPLAY=192.168.56.1:0.0 [root@RACDG orasoft]# xhost + [root@RACDG orasoft]# su - oracle [oracle@RACDG ~]$ cd /tmp/orasoft/database/ [oracle@RACDG database]$ ./runInstaller 15. 进行网络配置 [oracle@RACDG database]$ netca 16. 进行数据库安装 [oracle@RACDG database]$ dbca 懒得截图,网上资源太多,可以去搜一下