在RH Linux AS4 x86_amd64正常安装好Oracle 9i后使用tnsping,sqlplus等命令全部报segmentation fault.
Google了下,还是gcc的版本问题,解决办法如下:
Subject: Segmentation Fault When Execute Sqlplus, Oracle, Lsnrctl After New/Patchset Install Doc ID: Note:316746.1 Type: PROBLEM Last Revision Date: 28-APR-2006 Status: MODERATED Symptoms Changes Cause Solution Oracle Server - Standard Edition - Version: 9.2.0 to 10.1.0 Linux x86-64 Linux x86SymptomsAfter fresh install and latest patchset 9.2.0.6.0 on Linux x86_64 every attempt to use sqlplus, lsnrctl fails with an segmentation fault. ChangesNew install or patchset apply. CauseThe gcc/g++ compilers in /usr/bin are a script (with additional parameters) which caused an incorrect compilation. /tpp/oracle/920/bin/genclntsh /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a whensearching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a whensearching for -lgcc /usr/bin/ld: warning: i386 architecture of input file`/usr/lib/gcc-lib/i386-redhat-linux/2.96/crtbeginS.o' is incompatible with i386:x86-64 output /usr/bin/ld: warning: i386 architecture of input file`/usr/lib/gcc-lib/i386-redhat-linux/2.96/crtendS.o' is incompatible with i386:x86-64 output. SolutionTo implement the solution, please execute the following steps: 2. mv gcc gcc.script 3. mv g++ g++.script 4. ln -s gcc32 gcc 5. ln -s g++32 g++ 6. login as oracle software owner (make sure environment is correct) 7. cd $ORACLE_HOME/bin 8. relink all |