CentOS6.2安装Oracle 11g

 

CentOS6.2安装Oracle 11g

一、前置条件准备

1、系统及配置要求

[root@db1 ~]# cat /etc/redhat-release

CentOS release 6.2 (Final)

[root@db1 ~]# uname -a

Linux db1.linuxbrother.com 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

[root@db1 ~]# grep "MemTotal" /proc/meminfo

MemTotal:        2051164 kB

[root@db1 ~]# grep "SwapTotal" /proc/meminfo   

SwapTotal:       4194296 kB

[root@db1 ~]# df -h /tmp/

Filesystem            Size Used Avail Use% Mounted on

/dev/sda2             9.7G 851M 8.3G 10% /

[root@db1 ~]# df -h | grep /opt

/dev/sdb1              15G 166M   14G   2% /opt

[root@db1 ~]# hostname

db1.linuxbrother.com

[root@db1 ~]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.10.253 db1     db1.linuxbrother.com

2、软件环境要求

[root@db1 ~]# yum install binutils compat-libstdc++-33 compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel

[root@db1 ~]# rpm -e ksh

[root@db1 ~]# rpm -ivh pdksh-5.2.14-36.el5.x86_64.rpm   #安装CentOS5上面的这个软件包

[root@db1 ~]# yum -y install java

3、用户环境要求

[root@db1 ~]# groupadd oinstall

[root@db1 ~]# groupadd dba

[root@db1 ~]# useradd -g oinstall -G dba oracle

[root@db1 ~]# passwd oracle

[root@db1 ~]# mkdir /opt/oracle

[root@db1 ~]# chown -R oracle.oinstall /opt/oracle/

[root@db1 ~]# chown -R oracle /opt/oracle/

[root@db1 ~]# vim ~oracle/.bash_profile

umask 022

export ORACLE_BASE=/opt/oracle

export ORACLE_SID=orcl

export DISPLAY=:0.0

export LANG=en_US.UTF-8

[root@db1 ~]# vim /etc/sysctl.conf              #最后添加如下内容

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 4194304

net.core.wmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_max = 1048576

[root@db1 ~]# sysctl –p

[root@db1 ~]# vim /etc/pam.d/login              #文件中添加

session    required     pam_limits.so

[root@db1 ~]# vim /etc/security/limits.conf     #最后添加

oracle soft nproc 8192

oracle hard nproc 16384

oracle soft nofile 32768

oracle hard nofile 65536

4、安装图形环境

[root@db1 ~]# yum -y groupinstall "X Window System"

[root@db1 ~]# yum -y groupinstall "Desktop"

[root@db1 ~]# yum -y groupinstall "Chinese Support"

[root@db1 ~]# init 5

二、Oracle 11g安装过程

[root@db1 ~]# cd /opt/

[root@db1 opt]# unzip linux.x64_11gR2_database_1of2.zip

[root@db1 opt]# unzip linux.x64_11gR2_database_2of2.zip

图形安装过程省略……

 

你可能感兴趣的:(oracle,安装,centos,配置)