位置:海鸟网 > IT > linux/Unix >

centos x64 6.2安装oracle 11G

1、     安装centos6.2 x64 
2、     最小化界面安装,选择开发工具
3、     系统安装完成后yum install system-config-*
4、     检查oracle需要的包的安装(x64)
The following packages (or later versions) must be installed:

binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit) 
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11
unixODBC-devel-2.2.11 (32 bit)

5、vi /etc/selinux/config
    SELINUX=disabled
   
6、更改主机名,需要更改两个文件 /etc/sysconfig/network  和/etc/hosts
7、  Service iptables stop
    Chkcofnig iptalbes off

8、 # mkdir /u01
# /usr/sbin/groupadd oinstall
   # /usr/sbin/groupadd  dba
   # useradd -g oinstall -G dba -d /u01/oracle oracle
# passwd oracle

进oracle用户默认目录
$ Vi .bash_profile
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=xfs
PATH=$ORACLE_HOME/bin:$PATH
LD_LTBRARY_PATH=$ORACLE_HOME/lib:$LD_LTBRARY_PATH
DISPLAY=127.0.0.1:0.0
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LTBRARY_PATH DISPLAY

9、Vi /etc/security/limits.conf 
oracle        soft    nproc   2047
oracle        hard    nproc   16384
oracle        soft    nofile 1024
oracle        hard    nofile 65536

10、 vi /etc/pam.d/login 以下内容
session    required     pam_limits.so
vi /etc/profile 

if [ $USER = "oracle" ]; then 
           ulimit -u 16384 
           ulimit -n 65536 
     fi
11、vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 1048586

然后执行:# /sbin/sysctl –p
12、chown –R oracle:oinstall /u01
13、unzip linux_x64…..zip
14、database/.runinstaller
15、只安装数据库软件,完成后,使用dbca 安装数据库