1. 程式人生 > 實用技巧 >Debain-8.11 安裝 oracle 11.2.0.4 資料庫database軟體

Debain-8.11 安裝 oracle 11.2.0.4 資料庫database軟體

一切見指令碼,setuporacle11g.sh,內容如下:

#!/bin/sh

##gcc-4.9
##debian-8.11,buildin glibc version is 2.19
######################################
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 libaio-dev apt-get -y install gcc make libc6-dev libaio-dev apt-get -y install xauth x11-utils ###################################### ## for-11g dpkg -l | grep libaio1 | grep '0.3.10' if [ $? -ne 0
] then if [ ! -e ./libaio1_0.3.109-3_amd64.deb ] then 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 fi apt-get -y purge libaio1 dpkg -i ./libaio1_0.3.109
-3_amd64.deb dpkg -i ./libaio-dev_0.3.109-3_amd64.deb fi ###################################### 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