Debain-10.4 安装 oracle 12.2.0.1 数据库database软件

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

 
 

#!/bin/sh

 
 

######################################
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

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

 
 

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/

 
 

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

 
 

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

猜你喜欢

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