【Oracle】安裝完oracle 9i,執行sqlplus 遇到Segmentation Fault
安裝完成oracle 9.2.0.4之後,執行sqlplus 命令時遇到Segmentation Fault 錯誤,查詢 Metalink 是一個bug:Segmentation Fault When Execute Sqlplus, Oracle, Lsnrctl After New/Patchset Install [ID 316746.1]
對於新安裝的軟體或者打過補丁的oracle資料庫(9.2.0.1 to 10.1.0.2,for Linux x86,Linux x86-64)都可能遇到此bug
原因是:
The gcc/g++ compilers in /usr/bin are a script. (with additional parameters)which caused an incorrect compilation.
make.log shows this incorrect compilation:
/tpp/oracle/920/bin/genclntsh
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a when
searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a when
searching 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.
解決辦法:
1. cd /usr/bin (as root)
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
我的步驟如下:
以root使用者做如下操作:
root@rac1:/opt/oracle/products/9.2.0#cd /usr/bin
root@rac1:/usr/bin#mv gcc gcc.sript
root@rac1:/usr/bin#mv gcc.sript gcc.script
root@rac1:/usr/bin#mv g++ g++.script
root@rac1:/usr/bin#ln -s gcc32 gcc
root@rac1:/usr/bin#ln -s g++32 g++
以oracle使用者
oracle@rac1:/home/oracle>cd $ORACLE_HOME/bin
oracle@rac1:/opt/oracle/products/9.2.0/bin>relink all
cp: cannot stat `/DISCARD/': No such file or directory
ar: creating /opt/oracle/products/9.2.0/lib/libclntst9.a
Created /opt/oracle/products/9.2.0/lib/libclntst9.a
cp: cannot stat `/DISCARD/': No such file or directory
ar: creating /opt/oracle/products/9.2.0/lib32/libclntst9.a
Created /opt/oracle/products/9.2.0/lib32/libclntst9.a
/opt/oracle/products/9.2.0/bin/genagtsh /opt/oracle/products/9.2.0/lib/libagtsh.so 1.0
Linking /opt/oracle/products/9.2.0/precomp/lib/proc
rm -f /opt/oracle/products/9.2.0/bin/proc
mv /opt/oracle/products/9.2.0/precomp/lib/proc /opt/oracle/products/9.2.0/bin/
- Linking Import utility (imp)
- Linking Export utility (exp)
- Linking SQL*Loader utility (sqlldr)
- Linking performance trace utility (tkprof)
- Linking recovery manager (rman)
- Linking PSP Loader utility (loadpsp)
- Linking otrcfmt
- Linking otrcrep
- Linking otrccol
- Linking otrccref
- Linking sqlplus
- Linking wrap
- Linking /opt/oracle/products/9.2.0/bin/tnslsnr
- Linking Oracle
- Linking database file size utility (dbfsize)
....省略...
- Linking SGA Dump Utility (mapsga)
- Linking cursor size utility (cursize)
....省略...
oracle@rac1:/opt/oracle/products/9.2.0/bin>sqlplus "/as sysdba"
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Nov 25 19:49:30 2011
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> exit
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-712117/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 執行sqlplus遭遇Segmentation FaultSQLSegmentation
- 安裝oracleRAC遇到的執行rootconfig: line 815: 10338 Segmentation faultOracleSegmentation
- mysql執行命令報segmentation fault 錯誤MySqlSegmentation
- Oracle 9i安裝Oracle
- 10203 Rman執行delete obsolete報錯Segmentation faultdeleteSegmentation
- Oracle 9I 64位 For RHEL 下載安裝所遇到的問題Oracle
- tacmd[203] no segmentation fault(coredump)ACMSegmentation
- Segmentation fault (coredump)的解決Segmentation
- 什麼是Segmentation fault(Core Dump)? + 我遇到的例項問題Segmentation
- oracle 9i for linux的安裝OracleLinux
- ORACLE 9i完全完美解除安裝Oracle
- 安裝oracle11g遇到的執行root.sh指令碼問題Oracle指令碼
- Linux環境ORACLE 9i安裝LinuxOracle
- RHEL5.3上安裝oracle 9iOracle
- oracle sqlplus windows下已停止執行OracleSQLWindows
- 安裝在linux 4.8(32位)安裝oracle 9iLinuxOracle
- solaris 安裝 jdk及oracle 9i使用opatchJDKOracle
- Oracle 9i 在AIX上的安裝 (轉)OracleAI
- 【安裝】Linux環境ORACLE 9i安裝(文字版安裝文件)LinuxOracle
- 在Linux下安裝Oracle Database 9i(轉)LinuxOracleDatabase
- SQLPLUS檢視oracle sql執行計劃命令SQLOracle
- AIX安裝oracle遇到的問題彙總AIOracle
- SimpleJdonFrameworkTest安裝完後執行,出現問題Framework
- Oracle 9i 開啟autotrace on 檢視執行計劃Oracle
- 安裝完畢Oracle10g RAC for Hp-uxOracleUX
- sqplus 的 segmentation fault錯誤及解決!Segmentation
- netca 啟動時報錯(Segmentation fault(coredump))Segmentation
- 【Oracle】sqlplus 遇到共享庫許可權不足OracleSQL
- Linux下Oracle sqlplus命令中執行ed命令LinuxOracleSQL
- HP-UX執行Oracle相關命令報錯Memory fault(coredump)分析處理UXOracle
- Oracle9i IMP 含LOB Table時候出現Segmentation fault, Bug:3091499OracleSegmentation
- 在Linux機器上安裝執行Oracle(三)(轉)LinuxOracle
- 在Linux機器上安裝執行Oracle(二)(轉)LinuxOracle
- VMware下RedHat安裝Oracle 9i RAC全攻略(轉)RedhatOracle
- 【[Oracle】-【安裝】-Cent OS安裝Oracle ClientOracleclient
- oracle安裝:OUI安裝Oracle(圖形介面安裝)OracleUI
- Python安裝cx_Oracle模組遇到的問題PythonOracle
- Oracle11g安裝過程遇到的問題Oracle