当前位置:首页 > Linux Red Hat 5.6下安装Oracle 11gR2(最新版原创)
系统环境:linux
操作系统:RHEL5.6_x64 数据库版本:oracle 11g R2
内存:16G (oracle11g最低要求1G) SWAP:8G (oracle11g最低要求1668480 KB) 工具:Xmanager4.0(支持图形化操作) 一、 安装linux red hat5.6; 二、 安装oracle11g;
1. 关闭防火墙
[root@localhost oracle]# chkconfig --level 345 iptables off [root@localhost oracle]#service iptables stop
2. 关闭Selinux
[root@localhost oracle]#vi /etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled 注:将selinux设置为disabled; # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted 3. 检查并安装所需rpm包 将RHEL5.6_x64.iso(linux件夹中。进入到server目录。 安装包自带的rpm包)解压到linux任何一个文Window下面的目录为
[root@localhost oracle]# vi ~/pack.sh #!/bin/bash #start install required packages echo \ yum -y install binutils-* yum -y install compat-libstdc++-* yum -y install compat-libstdc++-* yum -y install elfutils-libelf-* yum -y install elfutils-libelf-devel-* yum -y install gcc-* yum -y install gcc-c++-* yum -y install glibc-* yum -y install glibc-*
yum -y install glibc-common-* yum -y install glibc-devel-* yum -y install glibc-devel-* yum -y install glibc-headers-* yum -y install ksh-* yum -y install libaio-* yum -y install libaio-* yum -y install libaio-devel-* yum -y install libaio-devel-* yum -y install libgcc-* yum -y install libgcc-* yum -y install libstdc++-* yum -y install libstdc++-* yum -y install libstdc++-devel* yum -y install make-* yum -y install sysstat-* yum -y install unixODBC-*
修改Shell执行属性
[root@localhost oracle]# chmod +x ./pack.sh
更新Yum
[root@localhost oracle]# ./pack.sh
(注:此次更新yum包如果不完全,在安装oracle11g的过程中通过系统检查可找出缺的yum包,到时候在单独安装yum包即可);
4. 配置Oracle安装环境
创建 Oracle 组和用户帐户
[root@localhost oracle]# /usr/sbin/groupadd oinstall [root@localhost oracle]# /usr/sbin/groupadd dba
[root@localhost oracle]# /usr/sbin/useradd -m -g oinstall -G dba oracle [root@localhost oracle]# id oracle [root@localhost oracle]# passwd oracle
创建挂载点并授权
[root@localhost oracle]# mkdir -p /u01/app/oracle
[root@localhost oracle]# chown -R oracle:oinstall /u01/app/oracle [root@localhost oracle]# chmod -R 777 /u01/app/oracle [root@localhost oracle]# mkdir -p /u01/app/oraInventory
[root@localhost oracle]#chown -R oracle:oinstall /u01/app/ oraInventory [root@localhost oracle]# chmod -R 777 /u01/app/oraInventory
共分享92篇相关文档