啟動sqlplus時碰到libaio1有問題

如果在64 bit Linux上啟動Oracle sqlplus時遇到以下錯誤:

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jan 27 10:06:16 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Enter password:
oracleXE: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
ERROR:
ORA-12547: TNS:lost contact

但一經檢查下發現自己系統中明明有安裝libaio1,那可能是因為該libaio1是64 bit,而所安裝的Oracle DB卻是32 bit。雖然Oracle DB本身是有64 bit版本,但是XE卻只有32 bit。所以如果是在64 bit Linux上使用XE或sqlplus碰到以上問題,那就得把原本64 bit的libaio1換成32 bit。

所以要先移除掉原本的libaio1,然後去這裡下載你OS需要的32 bit版本:

http://tw.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/

像我的就是libaio1_0.3.107-3ubuntu2_i386.deb

之後用以下命令來安裝這個套件:

dpkg -i –force-architecture libaio1_0.3.107-3ubuntu2_i386.deb

然後再啟動sqlplus,就不會有問題了。

May 31st, 2010 資訊科技, Oracle | 1 Comment

在Ubuntu 64 bit上安裝32 bit軟體

要在Ubuntu 64 bit上安裝32 bit的軟體,需要libc6-i386套件。

請見此篇:http://www.markusbe.com/2009/09/about-running-32-bit-programs-on-64-bit-ubuntu-and-shared-libraries/

May 28th, 2010 資訊科技 | No Comment

解決Coherence的unicast面臨Linux預設buffer size不夠的問題

如果在Linux上跑Coherence遇到以下問題:

UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.

解法:這篇

就是下這兩行:

sudo sysctl -w net.core.rmem_max=2096304
sudo sysctl -w net.core.wmem_max=2096304

PS. 最好也把防火牆關掉或設好。

May 25th, 2010 資訊科技, Oracle | No Comment

聽英文歌應該有助於英文進步啦

破國中生紀錄 搖滾樂迷 多益考980分

不過重點好像是「校長獨子」,又是「從小在雙語環境成長」…

那豈不是廢話嗎?跟西洋音樂、搖滾樂有何直接關係?標題殺人法…

不過我自己是高中英文超爛,不論大小考都是三、四十分族群;倒是上了大學後狂聽英文歌 + 打英文RPG,英文真的就進步神速了~進步最多的應該是發音吧,可能因為學著唱就等於學著發音,這是我還有點能拿出來說嘴的東西~ :P

May 25th, 2010 音樂, 生活點滴 | 4 Comments

安裝Lightning 1.0於64位元x86 Linux的Thunderbird 3上

Thunderbird 3.04目前若要安裝Lightning 1.0 beta1,會碰到以下問題而安裝失敗:

Lightning could not be installed because it is not compatible with your Thunderbird build type (Linux_x86_64-gcc3). Please contact the author of this item about the problem

看來是對x86 64 bit Linux支援不善。因此不能裝官網的版本,必須安裝這裡的:

http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b1/contrib/linux-x86_64/lightning.xpi

但若要用Provider for Google Calendar(目前最新版本是0.6b1),則不要安裝同目錄中的gdata-provider.xpi,反而要安裝官網的才會成功:

https://addons.mozilla.org/en-US/thunderbird/downloads/latest/4631/addon-4631-latest.xpi?src=addondetail

May 24th, 2010 資訊科技 | No Comment

Pages (127): « 1 2 [3] 4 5 6 » ... Last »