./runInstaller -silent -debug -force -noconfig -IgnoreSysPreReqs \
FROM_LOCATION=/home/soft/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/home/db/oraInventory \
ORACLE_HOME=/home/db/oracle/product/11.2.0/dbhome_1 \
ORACLE_HOME_NAME="Oracle11g" \
ORACLE_BASE=/home/db/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=dba \
DECLINE_SECURITY_UPDATES=true
之后发现$ORACLE_HOME/bin/oracle大小为0,静默安装参看:https://blog.csdn.net/jycjyc/article/details/103198741
relink all报错
oracle@euler01 \~\]$ tail -f /home/db/oracle/product/11.2.0/dbhome_1/install/relink.log 1.报错:/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a: No such file or directory 处理: \[root@euler01 \~\]# ll /usr/lib64/libpthread\* -rw-r--r--. 1 root root 8 Aug 5 18:50 /usr/lib64/libpthread.a -rwxr-xr-x. 1 root root 6280 Aug 5 18:50 /usr/lib64/libpthread.so.0 \[root@euler01 \~\]# cp /usr/lib64/libpthread.a /usr/lib64/libpthread_nonshared.a 2.继续编译报错: /usr/bin/ld: /home/db/oracle/product/11.2.0/dbhome_1/lib//libnnz11.so: .dynsym local symbol at index 128 (\>= sh_info of 15) /usr/bin/ld: /home/db/oracle/product/11.2.0/dbhome_1/lib//libnnz11.so: .dynsym local symbol at index 846 (\>= sh_info of 15) /usr/bin/ld: /usr/lib64/libaio.so.1: undefined reference to \`__stack_chk_fail@GLIBC_2.4' collect2: error: ld returned 1 exit status make: \*\*\* \[/home/db/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk:867: /home/db/oracle/product/11.2.0/dbhome_1/rdbms/lib/rman\] Error 1 Error in invoking target 'irman ioracle' of makefile '/home/db/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/home/db/oracle/product/11.2.0/dbhome_1/install/relinkActions2025-09-10_03-39-23-PM.log' for details. 处理:找个centos7.9下的libaio打包替换 \[root@euler01 \~\]# ll /usr/lib64/libaio\* lrwxrwxrwx. 1 root root 15 Jun 18 22:45 /usr/lib64/libaio.so.1 -\> libaio.so.1.0.2 -rwxr-xr-x. 1 root root 14392 Jun 18 22:45 /usr/lib64/libaio.so.1.0.2 \[root@euler01 \~\]# tar -xvf libaio.tar tar: libaio.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now \[root@euler01 \~\]# cd /usr/lib64/ \[root@euler01 lib64\]# ll \*.tar -rw-r--r-- 1 root root 20480 Sep 10 15:47 libaio.tar \[root@euler01 lib64\]# tar -xvf libaio.tar libaio.so libaio.so.1 libaio.so.1.0.0 libaio.so.1.0.1 \[root@euler01 lib64\]# ll /usr/lib64/libaio\* lrwxrwxrwx 1 root root 22 May 27 2024 /usr/lib64/libaio.so -\> /lib64/libaio.so.1.0.1 lrwxrwxrwx 1 root root 22 May 27 2024 /usr/lib64/libaio.so.1 -\> /lib64/libaio.so.1.0.1 -rwxr-xr-x 1 root root 6264 Nov 20 2015 /usr/lib64/libaio.so.1.0.0 -rwxr-xr-x 1 root root 6264 Nov 20 2015 /usr/lib64/libaio.so.1.0.1 -rwxr-xr-x. 1 root root 14392 Jun 18 22:45 /usr/lib64/libaio.so.1.0.2 -rw-r--r-- 1 root root 20480 Sep 10 15:47 /usr/lib64/libaio.tar 3.继续编译报错: /usr/bin/ld: /home/db/oracle/product/11.2.0/dbhome_1/lib//libocrutl11.so: .dynsym local symbol at index 117 (\>= sh_info of 13) /usr/bin/ld: /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a(sz.o): in function \`szprv': sz.c:(.text+0x23d): undefined reference to \`ss_dba_grp' /usr/bin/ld: sz.c:(.text+0x263): undefined reference to \`ss_dba_grp' /usr/bin/ld: sz.c:(.text+0x289): undefined reference to \`ss_dba_grp' collect2: error: ld returned 1 exit status make: \*\*\* \[/home/db/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk:735: /home/db/oracle/product/11.2.0/dbhome_1/rdbms/lib/oracle\] Error 1 Error in invoking target 'irman ioracle' of makefile '/home/db/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/home/db/oracle/product/11.2.0/dbhome_1/install/relinkActions2025-09-10_03-49-38-PM.log' for details. 处理方法:拷贝好的libserver11.a文件替换 \[oracle@euler01 dbhome_1\]$ ll /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a -rw-r--r-- 1 oracle oinstall 229062884 Aug 24 2013 /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a \[oracle@euler01 dbhome_1\]$ mv /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a.bak \[oracle@euler01 dbhome_1\]$ scp 192.168.207.48:/home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a The authenticity of host '192.168.207.48 (192.168.207.48)' can't be established. ED25519 key fingerprint is SHA256:boAMtG6vjDpPttWgdTScHC3bLQ5kXnnv4bK204gwbrw. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/\[fingerprint\])? yes Warning: Permanently added '192.168.207.48' (ED25519) to the list of known hosts. Authorized users only. All activities may be monitored and reported. oracle@192.168.207.48's password: libserver11.a 100% 218MB 1.4MB/s 02:35 \[oracle@euler01 dbhome_1\]$ ll /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a -rw-r--r-- 1 oracle oinstall 229064214 Sep 10 16:06 /home/db/oracle/product/11.2.0/dbhome_1/lib//libserver11.a \[oracle@euler01 dbhome_1\]$   [https://sqlora.blog.csdn.net/article/details/151175799](https://sqlora.blog.csdn.net/article/details/151175799?spm=1001.2014.3001.5502 "https://sqlora.blog.csdn.net/article/details/151175799")