Debain-9.13 安装 oracle 12.2.0.1 数据库database软件:更精简的配置

#!/bin/sh

##gcc-6
##debian-9.13,buildin glibc version is 2.24
######################################
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 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/bin/basename /bin/

ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

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

mv /usr/bin/gcc /usr/bin/gcc.old
cat <<eof>>/usr/bin/gcc
#!/bin/sh
/usr/bin/gcc-6 -no-pie \$*
eof
chmod 755 /usr/bin/gcc

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

groupadd oinstall
useradd -g oinstall -m -s /bin/bash oracle
mkdir /u01
chown oracle:oinstall /u01

猜你喜欢

转载自www.cnblogs.com/jinzhenshui/p/13394470.html