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

    废话不多说了。一切见:setup-oracle11g.sh

    #!/bin/sh
    
    ##gcc-8
    ######################################
    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 -y download ssh
    apt-get -y install wget man curl ftp telnet
    apt-get -y install rlwrap net-tools strace psmisc tree
    
    ######################################
    
    apt-get -y install libstdc++5
    apt-get -y install sysstat gcc make libc6-dev
    apt-get -y install xauth x11-utils
    
    ######################################
    ## for-11g
    wget -c wget http://archive.debian.org/debian/pool/main/liba/libaio/libaio-dev_0.3.109-3_amd64.deb
    wget -c wget http://archive.debian.org/debian/pool/main/liba/libaio/libaio1_0.3.109-3_amd64.deb
    
    apt-get -y install ./libaio1_0.3.109-3_amd64.deb
    apt-get -y install ./libaio-dev_0.3.109-3_amd64.deb
    
    ######################################
    
    wget -c https://mirrors.tuna.tsinghua.edu.cn/debian/pool/main/g/glibc/libc6-dev_2.24-11+deb9u4_amd64.deb
    dpkg -x ./libc6-dev_2.24-11+deb9u4_amd64.deb ./
    cp ./usr/lib/x86_64-linux-gnu/libpthread_nonshared.a  /usr/lib64/libpthread_nonshared.a.2.24
    ln -s /usr/lib64/libpthread_nonshared.a.2.24 /usr/lib64/libpthread_nonshared.a
    
    ######################################
    
    ln -sf  /bin/bash /bin/sh
    ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/
    ln -s /usr/lib/x86_64-linux-gnu/*.o /usr/lib64/
    
    ######################################
    # for-11g
    ln -s /usr/lib/x86_64-linux-gnu/libgcc_s.so.1  /usr/lib64/
    ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/
    
    ######################################
    
    mv /usr/bin/gcc /usr/bin/gcc.old
    cat <<eof>>/usr/bin/gcc
    #!/bin/sh
    /usr/bin/gcc-8 -no-pie $*
    eof
    chmod 755 /usr/bin/gcc
    
    ######################################
    
    groupadd oinstall
    useradd -g oinstall  -m  -s /bin/bash oracle
    mkdir /u01
    chown oracle:oinstall /u01
  • 相关阅读:
    AngularJS--过滤器
    AngularJS--自定义指令和模板
    AngularJS多模块开发
    百度优先收录HTTPS网站?你的网站https还在等什么
    什么是HTTPS
    必须要懂得的密码技术
    如何处理服务器SSL收到了一个弱临时Diffie-Hellman 密钥?
    可以将代码签名证书安装在多台电脑上吗?
    学习第一天
    前端综合知识小集
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/13391389.html
Copyright © 2011-2022 走看看