zoukankan      html  css  js  c++  java
  • Ubuntu-16.04.6 安装 oracle 11.2.0.4 数据库database软件

    as of:

    root@ubuntu16:~# cat setup11g-for-ub-16.04.sh 
    #!/bin/sh
    
    ##ubunt-16.04
    ##Linux ubuntu16 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    ##GNU C Library (Ubuntu GLIBC 2.23-0ubuntu11) stable release version 2.23, by Roland McGrath et al.
    ##libstdc++6:amd64                    5.4.0-6ubuntu1~16.04.11                    amd64        GNU Standard C++ Library v3
    ##apt-cache policy gcc £º gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
    
    ######################################
    cat <<eof>>/etc/profile
    export DISPLAY=192.168.157.1:0
    alias cls=clear
    alias ll='ls -l --color'
    alias Grep=grep
    eof
    
    ######################################
    
    #apt-get update
    
    #apt-get -y install wget man curl ftp telnet net-tools strace psmisc tree
    #apt-get -y install rlwrap
    
    apt-get -y install gcc make libc6-dev
    
    #apt-get -y install xbase-clients
    apt-get -y install x11-utils  xauth
    
    ######################################
    # for-install-oracle11g
    # must downgrade libaio1  to 0.3.10x
    
    #apt-get -y install libaio-dev
    
    dpkg -l |grep libaio1 |grep '0.3.10'
    if [ $? -ne 0 ]
    then
        apt-get -y purge libaio1
    
        wget -c https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/liba/libaio/libaio1_0.3.109-4_amd64.deb
        wget -c https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/liba/libaio/libaio-dev_0.3.109-4_amd64.deb
    
        apt-get -y install ./libaio1_0.3.109-4_amd64.deb
        apt-get -y install ./libaio-dev_0.3.109-4_amd64.deb
    fi
    
    ######################################
    
    mv /usr/bin/gcc /usr/bin/gcc.old
    cat <<eof>>/usr/bin/gcc
    #!/bin/sh
    /usr/bin/gcc-5 -Wl,--no-as-needed $*
    eof
    chmod 755 /usr/bin/gcc
    
    ######################################
    
    ln -sf /bin/bash    /bin/sh
    ln -s  /usr/bin/awk /bin/
    ln -s  /usr/lib/x86_64-linux-gnu /usr/lib64
    
    # for-install-oracle11g
    ln -s  /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/
    
    ######################################
    
    groupadd   oinstall
    useradd -g oinstall -m  -s /bin/bash oracle
    mkdir /u01
    chown oracle:oinstall /u01
  • 相关阅读:
    bzoj 3111 蚂蚁 动态规划
    bzoj3011 可并堆
    bzoj2693 莫比乌斯反演
    bzoj 2671 莫比乌斯反演
    bzoj2194 快速傅立叶之二 FFT
    bzoj1396&&2865 识别子串 后缀自动机+线段树
    安卓开发中使用ZXing生成解析二维码
    使用tencent协议发起临时会话
    使用zxing编写的二维码生成解析工具:QRCoder
    使用JavaScript获取浏览器Chrome版本信息
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/13415177.html
Copyright © 2011-2022 走看看