zoukankan      html  css  js  c++  java
  • Debain-4 安装 oracle 12.2.0.1 数据库database软件(过程辛苦,所以重复发布,留念)

    首先:debian-4 默认发行版是无法安装oracle12c的!原因是发行版的  [g]libc6版本、libstdc++6库版本太低!

    关键:既然知道了原因,升级就好了。问题就在于这两个家伙都是系统最最底层的支持库,小白根本升级不了,弄不好系统就彻底崩溃了!

    提示:测试、测试、再测试; 尝试、尝试、再尝试!

    我摸索出来的setup12c-for4.sh,内容如下:

    复制代码
    #!/bin/sh
    
    ##gcc-4.1.2
    ##debian-4,buildin glibc version is 2.3.6
    ##in purpose to install oracle12c, must upgrade glic to 2.4+ ,libstdc++ to 4.4.5-8 (gcc-base 4.4.5-8)
    
    function downfile ()
    {
        bfile=$(basename $1)
        if [ ! -e ./${bfile} ]
        then
            echo download file : ${bfile} ...
            wget -c $1
            echo download complete.
        else
            echo exists : ${bfile}
        fi
    }
    
    ######################################
    cat <<eof>>/etc/profile
    export DISPLAY=192.168.157.1:0
    alias cls=clear
    alias ll='ls -l --color'
    alias Grep=grep
    eof
    
    
    ######################################
    ##for oracle12c
    
    downfile http://archive.debian.org/debian/pool/main/t/tzdata/tzdata_2011k-0lenny1_all.deb
    downfile http://archive.debian.org/debian/pool/main/g/glibc/libc6_2.7-18lenny7_amd64.deb
    downfile http://archive.debian.org/debian/pool/main/g/glibc/locales_2.7-18lenny7_all.deb
    downfile http://archive.debian.org/debian/pool/main/g/glibc/libc6-dev_2.7-18lenny7_amd64.deb
    downfile http://archive.debian.org/debian/pool/main/b/binutils/binutils_2.18.1~cvs20080103-7_amd64.deb
    downfile http://archive.debian.org/debian/pool/main/l/linux-2.6/linux-libc-dev_2.6.26-29_amd64.deb
    
    downfile http://archive.debian.org/debian/pool/main/g/gcc-4.4/gcc-4.4-base_4.4.5-8_amd64.deb
    downfile http://archive.debian.org/debian/pool/main/g/gcc-4.4/libstdc++6_4.4.5-8_amd64.deb
    
    
    dpkg -l|grep libc6|grep 2.7-18lenny7
    if [ $? -ne 0 ]
    then
        apt-get -y remove libc6-dev
        dpkg -i ./tzdata_2011k-0lenny1_all.deb
        dpkg -i ./libc6_2.7-18lenny7_amd64.deb
        dpkg -i ./locales_2.7-18lenny7_all.deb
        dpkg -i ./binutils_2.18.1~cvs20080103-7_amd64.deb
    fi
    
    dpkg -l|grep libc6-dev|grep 2.7-18lenny7
    if [ $? -ne 0 ]
    then
        apt-get -f remove linux-kernel-headers
        dpkg -i ./binutils_2.18.1~cvs20080103-7_amd64.deb
        dpkg -i ./libc6-dev_2.7-18lenny7_amd64.deb
    fi
    
    dpkg -l|grep libstdc++|grep 4.4.5-8
    if [ $? -ne 0 ]
    then
        dpkg -i ./gcc-4.4-base_4.4.5-8_amd64.deb
        dpkg -i ./libstdc++6_4.4.5-8_amd64.deb
    fi
    
    exit
    
    ######################################
    
    #apt-get -y install wget man curl ftp telnet net-tools strace psmisc tree
    #apt-get -y install rlwrap
    
    #apt-get -y --force-yes install gcc make libc6-dev libaio-dev
    #apt-get -y --force-yes install xutils xbase-clients
    
    apt-get -y  install gcc make libaio-dev
    apt-get -y  install xutils xbase-clients
    
    
    
    ######################################
    
    #ln -sf /bin/bash    /bin/sh
    ln -s  /usr/bin/awk /bin/
    ln -s  /usr/lib/x86_64-linux-gnu /usr/lib64
    
    ######################################
    
    groupadd   oinstall
    useradd -g oinstall -m  -s /bin/bash oracle
    mkdir /u01
    chown oracle:oinstall /u01
    复制代码
  • 相关阅读:
    LInq 与lambda表达式
    Java内存模型-jsr133规范介绍(转)
    Java多线程之Lock的使用(转)
    有一个很大的整数list,需要求这个list中所有整数的和,写一个可以充分利用多核CPU的代码,来计算结果(转)
    CountDownLatch
    CyclicBarrier
    java设计模式演示样例
    2012毕业找工作记录点滴
    Objective-C语法之代码块(block)的使用
    权限表设计之代码解析
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/13404522.html
Copyright © 2011-2022 走看看