2007年12月24日星期一

Oracle 9i在RH Linux AS4 x86_64上的Segmentation fault

在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
In this Document

Symptoms

Changes

Cause

Solution
--------------------------------------------------------------------------------
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
Applies to: Oracle Server - Enterprise Edition - Version: 9.2.0 to 10.1.0

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

阅读全文...

2007年12月21日星期五

解决:ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.

在RH Linux AS4 x86-64 安装Oracle9.2.0.4前打补丁Patch 4198954中的compat-libcwait-2.1-1.i386.rpm 报如下的错误:

[root@oracle8 oracle]# rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm

ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.


Google了半天找到解决办法:

# echo "" > /etc/ld.so.preload

64位系统没有这个文件导致报错

阅读全文...

TIPS:关于cpio解压

很久没用这个命令居然把解压参数忘记了,在这里留个纪念,免得又忘记了,汗.....

解压cpio文件

cpio -idmv < filename.cpio

同样可以解压img文件:

cpio -idmv < filename.img

阅读全文...

2007年12月20日星期四

Android-Google的手机利器,试玩~

虽然google的手机报道最近比较火,Android也早早的发布了,一直都没空研究。今天早上没事终于把Android的SDK down下来了,试玩了一下,还不错的说,可惜大学时Java没好好学,唉,惭愧啊。有空补补课,也开发个什么东东出来:P
开机界面:搜索网络:待机界面:
用Google的Brower访问e21:电话本/通话:

阅读全文...

2007年12月19日星期三

NND,终于突破我们伟大的GFW,正常显示blogger啦

国家伟大的GFW对Google可是特别的照顾,Blogger时能上时不能上,本申请了个域名准备转移过去的,可惜Blooger的种种限制只能作罢,重新建个Blog目前也没时间,算了,还是搞了代理吧。
昨天同事推荐了个Your Freedom,早上装了试试。
首先需要个jre(jre1.4以上版本),上http://www.java.com/ 上面down一个吧
趁下载的档儿到这里注册一下,记住账号密码
下载装完jre就开始安装YourFreedom
第一次运行会弹出 configuration wizard窗口,点next,问你是不是用已有的代理一般跳过点next,开始自动扫描可用的服务器,等待列表出现,然后选择速度快的服务器吧




next,输入刚申请好的用户名密码,next,save& exit 。 出现软件的主界面:

配置你的客户端程序,socks默认是127.0.0.1:1080,http默认是127.0.0.1:8080

哈哈,又见我可爱的Blogger了!~

--------------------------

附Linux下安装方法:

首先下载一个下载 Java archive版本的Your Freedom

安装好jre后执行:sudo update-alternatives --config java


YF_config java

务必选择带sun的那个作为默认

解压下载的文件到一个目录,java -jar DOWNLOADDIR/ freedom.jar,应该可以成功运行了





阅读全文...