Chinaunix首页 | 论坛 | 博客
  • 博客访问: 235825
  • 博文数量: 50
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 533
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-28 21:56
个人简介

活着,寻找生存。

文章分类

全部博文(50)

文章存档

2017年(1)

2016年(20)

2015年(29)

我的朋友

分类: Oracle

2015-11-20 09:54:53

oracle 安装前准备:
 
 oracle 11g 下载地址:
  
   
Oracle Database 11g Release 2

Standard Edition, Standard Edition One, and Enterprise Edition

7/13: Patch Set 11.2.0.4 for Linux and Solaris is now available on . Note: it is a full installation (you do not need to download 11.2.0.1 first). See the  for more info (login to My Oracle Support required).

(11.2.0.4.0)

Download OpenVMS     (2GB)


(11.2.0.2.0)

Download zLinux64  ,   (2GB)  


(11.2.0.1.0)

Download Microsoft Windows (32-bit)  ,   (2GB)  
Download Microsoft Windows (x64)  ,   (2GB)  
Download Linux x86  ,   (2GB)  
Download Linux x86-64  ,   (2GB)  
Download Solaris (SPARC) (64-bit)  ,   (2GB)  
Download Solaris (x86-64)  ,   (2GB)  
Download HP-UX Itanium  ,   (2GB)  
Download HP-UX PA-RISC (64-bit) ,   (2GB)  
Download AIX (PPC64)  ,   (2GB)  

现在直接从oracle官网上下载只能下载到11.2.0.4版本,11g其他版本只能通过MOS下载了。

oracle 对内存要求:
    
Available RAM Swap Space Required
Between 1 GB and 2 GB 1.5 times the size of the RAM
Between 2 GB and 16 GB Equal to the size of the RAM
More than 16 GB 16 GB

 oracle 对安装软件和存储数据文件的磁盘空间要求:
  
Installation Type Requirement for Software Files (GB)
Enterprise Edition 4.7
Standard Edition 4.6

Installation Type Requirement for Data Files (GB)
Enterprise Edition 1.7
Standard Edition 1.5

  oracle 演示安装包准备:
   p10404530_112030_Linux-x86-64_1of7.zip
   p10404530_112030_Linux-x86-64_2of7.zip

安装ORACLE所需依赖包:
  • The following or later version of packages for Oracle Linux 6, Red Hat Enterprise Linux 6, and Asianux Server 4 must be installed:

    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)
修改内核:
通过root用户,对/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 = 1048576

使内核生效:
 root># sysctl -p

修改用户限制:
 使用root用,对 /etc/security/limits.conf文件添加如下参数:
  

   oracle soft nproc 2047

   oracle hard nproc 16384

   oracle soft nofile 1024

  oracle hard nofile 65536

  oracle soft stack 10240


修改用户验证选项:
使用root用户,对 /etc/pam.d/login文件添加如下参数:
  
  session    required     pam_limits.so

 
修改用户配置:
使用root用户,对/etc/profile文件添加如下参数:
if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p 16384
              ulimit -n 65536
        else
              ulimit -u 16384 -n 65536
        fi
fi

使profile生效,root下执行:

root># source /etc/profile

创建用户和用户组:

groupadd  -g 115 install

groupadd  -g 116 dba

useradd  -u 175 -g oinstall -G dba oracle

passwd oracle

id oracle


创建安装目录:

mkdir -p /opt/oracle

mkdir -p /opt/oracle/product

mkdir -p /opt/oracle/oradata

mkdir -p /opt/oracle/product/11.2.0/db_64

chown -R oracle:oinstall  /opt/oracle



配置oracle 环境变量:

su – oracle

编辑.bash_profile
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_64
export ORACLE_SID=tigergi--实例名按自己实际安装得来配置
export PATH=.:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$PATH

让环境变量生效:

oracle>$ source .bash_profile


对演示安装包进行解压:
  unzip p10404530_112030_Linux-x86-64_1of7.zip
   unzip p10404530_112030_Linux-x86-64_2of7.zip
注意:解压的顺序不要弄错了,先对p10404530_112030_Linux-x86-64_1of7.zip解压,解压完了之后再解压p10404530_112030_Linux-x86-64_2of7.zip包:

接着我们进入到VNC进行数据库安装:
  root># xhost +local:root
  root>#su - oracle 

然后进入到解压目录,进行oracle 软件安装:
 ./runInstaller


























注意:这两个sh文件是在root用户下执行的,不用弄错了。

接着通过NETCA命令建立监听,一直NEXT下去就OK了。

下面我们通过DBCA安装实例:








这个实例名可以按自己的来取名。









注:这里的FRA size按自己要求填,也可以在安装后进行调整。




注:SGA和PGA按自己要求来填写,也可在安装后调整。





点击NEXT就进入安装了,安装完点击exit就OK了。

到此一套完整Oracle 11g的测试环境就搭建完成了。

参考文档:
阅读(1299) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~