Tiny-Core-Linux 9.x:安装oracle【11g|】:艰难的旅程,不过,最终成功了!

成功!不畏艰险、历经磨难、锲而不舍、终于达成!

as of:

# 需要通过tce-ab安装以下包:

drwxr-xr-x 3 tc   staff 26 Dec  7  2017 util-linux_base-dev
root@box:/tmp/tcloop# ls
Xorg-7.7-bin     gawk            graphite       libXfixes    libffi-dev          nettle-dev
acl         gcc            grep       libXft    libpciaccess          openssh
attr         gcc_base-dev        harfbuzz       libXi    libpng              openssl
bash         gcc_libs        isl           libXinerama    libtasn1-4          openssl-dev
bash-completion  gcc_libs-dev        libGL       libXmu    libtasn1-4-dev          p11-kit
binutils     glib2            libICE       libXpm    libxcb              p11-kit-dev
bzip2-lib     glibc_add_lib        libSM       libXrandr    libxkbfile          pcre
cloog         glibc_apps        libX11       libXrender    libxshmfence          readline
coreutils     glibc_base-dev     libXau       libXt    linux-4.14.3_api_headers  readline-dev
expat2         glibc_gconv        libXaw       libXtst    make              udev-lib
findutils     glibc_i18n_locale  libXcomposite  libXxf86dga    mpc              udev-lib-dev
flex         gmp            libXcursor       libXxf86vm    mpfr              util-linux
flex-dev     gmp-dev        libXdamage       libcap    ncursesw          util-linux-dev
fontconfig     gnutls            libXdmcp       libdrm    ncursesw-dev          util-linux_base-dev
freetype     gnutls-dev        libXext       libffi    nettle
root@box:/tmp/tcloop# 

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

ln -sf /mnt/sda1/u01 /home/jin/app
ln -sf /lib /lib64
ln -sf /usr/lib /usr/lib64

ln -sf /usr/local/bin/* /bin/
ln -sf /usr/local/bin/* /usr/bin/
ln -sf /usr/local/bin/* /sbin/
ln -sf /usr/local/bin/* /usr/sbin/

ln -sf /usr/lib/libgcc_s.so.1 /lib64/

mount -t iso9660 -o exec /dev/cdrom /mnt/sr0/


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

mv /usr/local/bin/gcc /usr/local/bin/gcc-7
cat <<eof>/usr/bin/gcc
#!/bin/sh
/usr/local/bin/gcc-7 -no-pie -Wl,--no-as-needed \$*
eof
chmod 755 /usr/bin/gcc

#

/mnt/sr0/database/runInstaller -ignoreSysPrereqs -ignorePrereq -ignoreInternalDriverError -J"-Doracle.install.db.validate.supportedOSCheck=false"

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

export OWN=jin
export ORACLE_OWNER=${OWN}
export ORACLE_HOME=/home/${OWN}/app/${OWN}/product/11.2.0/dbhome_1
export PATH=.:${ORACLE_HOME}/bin:${PATH}

 

 

 

 

 

 

 

 

 

 

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

之前失败的经历!

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

 

正常安装后,无法正常启动,错误如下:

tc@box:~$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 18-AUG-2020 20:32:09

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Starting /home/tc/app/tc/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Log messages written to /home/tc/app/tc/product/11.2.0/dbhome_1/log/diag/tnslsnr/box/listener/alert/log.xml
TNS-01150: The address of the specified listener name is incorrect
TNS-01153: Failed to process string: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

Listener failed to start. See the error message(s) above...

 

tc@box:~$


tc@box:~$ /home/tc/app/tc/product/11.2.0/dbhome_1/bin/adapters Installed Oracle Net transport protocols are: IPC BEQ Error!!! TCP/IP is not completely installed! Present in libntcp11, but missing from ntcontab.o... Error!!! SSL is not completely installed! Present in libntcps11, but missing from ntcontab.o... RAW Error!!! SDP/IB is not completely installed! Present in libntcp11, but missing from ntcontab.o... Installed Oracle Net naming methods are: Local Naming (tnsnames.ora) Oracle Directory Naming Oracle Host Naming Oracle Names Server Naming Installed Oracle Advanced Security options are: RC4 40-bit encryption RC4 56-bit encryption RC4 128-bit encryption RC4 256-bit encryption DES40 40-bit encryption DES 56-bit encryption 3DES 112-bit encryption 3DES 168-bit encryption AES 128-bit encryption AES 192-bit encryption AES 256-bit encryption MD5 crypto-checksumming SHA-1 crypto-checksumming Kerberos v5 authentication RADIUS authentication tc@box:~$

 

 

安装,as of:

/usr/local/etc/init.d/openssh start
######################################

ln -s /mnt/sda1/u01 /u01
ln -s /lib     /lib64
ln -s /usr/lib /usr/lib64

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

ln -s /usr/bin/basename  /bin/
ln -s /usr/bin/awk       /bin/

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

ln -s  /usr/local/bin/xdpyinfo /usr/bin/
ln -s  /usr/local/bin/make     /usr/bin/
ln -s  /usr/local/bin/gcc      /usr/bin/
ln -s  /usr/local/bin/ld       /usr/bin/
ln -sf /usr/local/bin/ar       /usr/bin/
ln -s  /usr/local/bin/as       /usr/bin/

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

ln -s  /usr/lib/libgcc_s.so.1  /lib64/


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


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


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

/mnt/sr0/database/runInstaller -ignoreInternalDriverError -skipPrereqs -ignoreSysPrereqs -J"-Doracle.install.db.validate.supportedOSCheck=false"

export DISPLAY=192.168.199.1:0
export ORACLE_OWNER=tc
export ORACLE_HOME=/home/tc/app/tc/product/11.2.0/dbhome_1
export PATH=.:${ORACLE_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=.:${ORACLE_HOME}/lib:/usr/lib64


##?????????????????????????????

 116 script /tmp/relink_adapt.out
 117 cd $ORACLE_HOME/bin
 118 ./gennttab
 119 cd ../network/lib/
 120 make -f ins_net_client.mk ntcontab.o
 121 cd ../../bin/
 122 genclntsh
 123 cd ../rdbms/lib/
 124 make -f ins_rdbms.mk install
 125 cd ../../
 126 cd sqlplus/
 127 cd lib/
 128 make -f ins_sqlplus.mk install
 129 cd ../../network/lib/
 130 make -f ins_net_client.mk install
 131 make -f ins_net_server.mk install
 132 cd ../../bin/
 133 adapters
 134 exit
 135 cat /tmp/relink_adapt.out
 136 env
 137 clear
 138 ll
 139 ll /u01/app/tc/product/12.2.0/dbhome_1/bin/relink
 140 /u01/app/tc/product/12.2.0/dbhome_1/bin/relink
 141 tail -f /u01/app/tc/product/12.2.0/dbhome_1/install/relink.log
 142 /u01/app/tc/product/12.2.0/dbhome_1/bin/relink
 143 export ORACLE_OWNER=tc
 144 export ORACLE_HOME=/u01/app/tc/product/12.2.0/dbhome_1
 145 export PATH=.:${ORACLE_HOME}/bin:${PATH}
 146 export LD_LIBRARY_PATH=.:${ORACLE_HOME}/lib:/usr/lib64
 147 id
 148 /u01/app/tc/product/12.2.0/dbhome_1/bin/relink
 149 history

 

posted on 2020-08-18 20:31  jinzhenshui  阅读(349)  评论(0编辑  收藏  举报