执行sqlplus遭遇Segmentation Fault

        因为要升级硬件,   需要重新安装一台Oracle 9.2.0.8 的数据库,    一直都是使用10g, 11g,   好久都没有在Linux 4.5 下安装Oracle 9i 的软件,    虽然按照文档来做,    还是碰到了不少的问题,    最后碰到的就是下面的这个问题 ,   在oracle_home 下bin 目录下查看居然没有 sqlplus 执行文件,    当然执行 sqlplus 命令也是报错  Segmentation Fault ,    网络上搜索了一下,     解决方法倒是蛮简单 .   

 

Segmentation Fault When Execute Sqlplus, Oracle, Lsnrctl After New/Patchset Install [ID 316746.1]
 修改时间 24-JUL-2010     类型 PROBLEM     状态 MODERATED 

In this Document
  Symptoms
  Changes
  Cause
  Solution


Platforms: 1-914CU;

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

Applies to:

Oracle Server - Standard Edition - Version: 9.2.0.1 to 10.1.0.2 - Release: 9.2 to 10.1
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.1.0.2   [Release: 9.2 to 10.1]
Linux x86
Linux x86-64
Checked for relevance on 24-Jul-2010

Symptoms

After 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.

Changes

New install or patchset apply.

Cause

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.

Solution

To implement the solution, please execute the following steps:

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

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-711862/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-711862/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值