zoukankan      html  css  js  c++  java
  • 《oracle的安装》

    oracle安装

    1. 安装virtualbox:

    # yum install gcc kernel-devel kernel-headers

    # yum install virtualbox-5....

    # /etc/init.d/vboxdrv setup 手动编译内核模块,安装时自动完成

    # usermod -G vboxusers root

    2.安装linux:

    创建虚拟机:

    名称:oracle11gR2_OEL6.4_x64

    类型:linux 64bit

    内存:2048MB

    硬盘大小:100GB

    设置:

    双向粘贴 处理器数量:2 存储:加载光盘

    启动顺序:硬盘,网络

    网络:网卡1,host -only

    去除声音、usb设备

    安装:desktop方式

    主机名:node1.test.com,ip使用dhcp,swap 4GB,其余给/

    3.调整linux系统:

    关闭防火墙:

    # service iptables stop

    # service ip6tables stop

    # chkconfig iptables off

    # chkconfig ip6tables off

    管理工具中disabled防火墙

    关闭selinux:

    # vi /etc/selinux/config

    SELINUX=disabled

    配置yum:                      (配置资料库)

    # df -h                              (找到光盘路径)

    # rm -f /etc/yum.repos.d/*                                 

    # vi /etc/yum.repos.d/oel6.repo

    [Server]

    name=Server

    baseurl=file:///media/" /media/OL6.4 x86_64 Disc 1 20130225"/Server

    enabled=1

    gpgcheck=0

    [root@node1 yum.repos.d]# yum repolist all           (查看资料库是否配置成功)

    Loaded plugins: refresh-packagekit, security

    repo id                        repo name                          status

    InstallMedia                   Oracle Linux 6.4                   disabled

    Server                         Server                             enabled: 3,628

    repolist: 3,628

    安装vb增强功能:

    # cd

    # yum -y install gcc kernel-devel

    # ln -s /usr/src/kernels/2.6.32-431.el6.x86_64/ /usr/src/linux

    设备-->安装增强功能

    右键eject弹出光盘

    4.确认root身份:

    # id

    5.硬件配置:

    # df

     -h

    # grep MemTotal /proc/meminfo

    # grep SwapTotal /proc/meminfo

    # vi /etc/fstab(永久修改)

    tmpfs /dev/shm tmpfs defaults,size=2G 0 0

    # mount -o remount /dev/shm

    临时修改

    # mount -t tmpfs shmfs -o size=2g /dev/shm

    # uname -m

    # df -h

    6.rpm检查并安装:

    # cat /etc/redhat-release

    # uname -r

    # rpm -qa | grep glibc

    # yum install glibc

    # yum install glibc.i686

    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)

    7.创建用户:

    # groupadd -g 1000 oinstall

    # groupadd -g 1001 dba

    # groupadd -g 1002 oper

    # passwd oracle

    8.修改内核参数:

    # 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 = 1048576

    # sysctl -p

    9.修改资源限制:

    # vi /etc/security/limits.conf

    oracle          soft    nofile          1024

    oracle          hard    nofile          65536

    oracle          soft    nproc           2047

    oracle          hard    nproc           16384

    oracle          soft    stack           10240

    oracle          hard    stack           32768

    10.创建目录:

    # mkdir -p /u01/app/oracle

    # chown -R oracle:oinstall /u01

    # chmod -R 775 /u01

    11.修改概要文件:

    # vi ~oracle/.bash_profile

    export ORACLE_SID=orcl

    export ORACLE_BASE=/u01/app/oracle

    export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

    export ORACLE_HOSTNAME=node1.test.com

    export ORACLE_UNQNAME=orcl

    export PATH=$PATH:$ORACLE_HOME/bin

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

    export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

    export NLS_LANG=american_america.AL32UTF8

    export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'

    export EDITOR=vi

    export LANG=C

  • 相关阅读:
    西游之路——python全栈——Django之ORM操作
    西游之路——python全栈——django中orm的使用(1)
    西游之路——python全栈——django中orm的使用(2)
    西游之路——python全栈——Django中模型类中Meta元对象了解
    西游之路——python全栈——自定义用户认证
    西游之路——python全栈——CRM项目之Kingadmin开发
    记录表
    flask 引入redis 替换原生session存储session(flask-session)
    综合
    AD域(活动目录) bat脚本探究
  • 原文地址:https://www.cnblogs.com/hxv-3670/p/7237513.html
Copyright © 2011-2022 走看看