基本的安装脚本,as of:
####### alpine312:~# history
rc-service sshd restart
echo alpine312 >/etc/hostname
echo 127.0.0.1 alpine312 >>/etc/hosts
apk add coreutils shadow bash bash-completion
apk add gcc make libaio-dev
##for-12c-only
apk add xdpyinfo libxrender
##for-12c-only
useradd -m oracle
mkdir /u01
chown oracle /u01
apk add --allow-untrusted glibc*.apk
cp /usr/include/* /usr/glibc-compat/include/
rm -rf /usr/include/
ln -sf /bin/bash /bin/sh
ln -s /usr/glibc-compat/include/ /usr/
ln -s /usr/glibc-compat/lib/ /usr/lib64
ln -s /usr/glibc-compat/lib/*.o /lib/
ln -s /usr/bin/awk /bin/
ln -s /usr/bin/basename /bin/
ln -s /usr/lib/libgcc_s.so.1 /lib64/
ln -s /usr/lib/libstdc\+\+.so.6 /usr/lib64/
ln -s /usr/glibc-compat/lib/libc_nonshared.a /usr/glibc-compat/lib/libssp_nonshared.a
72 gcc -v
74 cd /usr/bin/
76 ll gcc
77 mv gcc gcc-9
78 vi gcc
79 chmod 755 gcc
80 gcc -v
91 find /mnt/
92 mount -t iso9660 -o exec /dev/cdrom /mnt/
##################################################
alpine312:~$ /mnt/database/runInstaller -ignorePrereq -ignoreInternalDriverError -ignoreSysPrereqs -J"-Doracle.install.db.validate.supportedOSCheck=false"
##################################################
#!/bin/sh
/usr/bin/gcc-9 -no-pie -Wl,--no-as-needed -Wl,-I,/lib64/ld-linux-x86-64.so.2 $*
##################################################
export ORACLE_OWNER=oracle
export ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1
export PATH=.:${ORACLE_HOME}/bin:${PATH}
关键点-1:gcc编译选项:指定动态链接库加载器:-Wl, -I, 加载器路径
关键点-2:弄个适当的libaio.so.1