CTOCIO IT专家网

天极传媒 比特网 | 天极网 | IT专家网 | IT商网 | 52PK游戏网 | 手机天极 | IT分众 |
IT专家网搜索

数据库 | Oracle | DB2 | SQL Server | MySQL | 商业智能 | BI | DBA | Sybase| SQL Server 2008

您现在的位置: IT专家网 > 数据库子站 > 数据库技巧

安装完成Oracle客户端后sqlplus报“段错误”

作者: 小荷,  出处:blog, 责任编辑: 李书琴, 
2008-07-11 10:30
  今天在linux 64位(Linux machine_name 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux)的机器上安装了oracle客户端后,输入sqlplus命令后报错segmentation fault(段错误)。

  今天在linux 64位(Linux machine_name 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux)的机器上安装了oracle客户端后,输入sqlplus命令后报错segmentation fault(段错误)。

  查找$ORACLE_HOME/install/make.log中发现有如下报错信息:

 


 /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/crtbegin.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/crtend.o' is incompatible with i386:x86-64 output
  mv -f /oracle/product/9.2.0/bin/sqlplus /oracle/product/9.2.0/bin/sqlplusO
  mv -f /oracle/product/9.2.0/sqlplus/lib/sqlplus /oracle/product/9.2.0/bin/sqlplus
  /bin/chmod 751 /oracle/product/9.2.0/bin/sqlplus
  /usr/bin/make -f ins_plsql.mk install ORACLE_HOME=/oracle/product/9.2.0/chmod 755 /oracle/product/9.2.0/bin

  该报错信息是因为在/usr/bin目录下的gcc/g++ compilers是一个文件,引起了在link的时候错误编译。我们可以采用如下的方式解决:

  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

网友评论

笔名 
请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。    IT专家网友拥有管理笔名和留言的一切权利。
  • 周排行榜
  • 月排行榜

邮件订阅


    
天极服务 | 关于我们 | 网站律师 | 加入我们 | 联系我们 | 广告业务 | 友情链接 | 我要挑错
All Rights Reserved, Copyright 2004-2008, Ctocio.com.cn
渝ICP证B2-20030003号 如有意见请与我们联系 powered by 天极内容管理平台CMS4i