Debain-7.11 安装 oracle 11.2.0.4 数据库database软件

特别的,因为debian-7已经不再被维护,所以apt的sources.lst必须要选择一个有效、快速的归档repository,经

测试这个归档镜像源最好:

#deb http://archive.debian.org/debian wheezy main

deb http://ftp.kaist.ac.kr/debian-archive/debian/ wheezy main

 

安装脚本如下:

复制代码

#!/bin/sh

##gcc-4.4
##debian-7.11,buildin glibc version is 2.13
######################################
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 install wget man curl ftp telnet net-tools strace psmisc tree
#apt-get -y install rlwrap

apt-get -y install gcc make libc6-dev libaio-dev
apt-get -y install xauth x11-utils

######################################

ln -sf /bin/bash /bin/sh
ln -s /usr/bin/awk /bin/
ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

## for-11g-only
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

 

复制代码

 

posted on 2020-07-29 21:14  jinzhenshui  阅读(136)  评论(0编辑  收藏  举报