做足准備工作之后進行安裝oracle,運行runInstall的時候別的時候輸出如下錯誤
寫入目錄 /tmp/OraInstall2015-05-20_03-35-53PM 時出錯。請確保此目錄是可寫的, 並且至少有 60 MB 的磁盤空間。無法繼續安裝。
: 沒有那個文件或目錄
用sh -x runInstall
發現執行/usr/src/database/install/.oui 這個可執行文件的時候報出
: 沒有那個文件或目錄
然后再研究這個可執行文件
[oracle@ES1 ~]$ file /usr/src/database/install/.oui
/usr/src/database/install/.oui: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
32位的可執行文件
搜索一下錯誤發現有大牛門已經找到問題了
---------------------------------------------------------------------------------------------------------------------------------------------------------
tmp所在文件系統剩余空間超過2TB,會導致安裝失敗,提示信息如下
Error in writing to directory /tmp/OraInstall......。Please ensure that this directory is writable and has atlesast 60MB of disk space.
OUI will not continue, even with -ignoresysprereqs option.
1)、/tmp may be either a partition, or a simple sub-directory
2)、/tmp has LOTS of free space, over 2Tb available, and only a small amount is used.
3)、/tmp is write-able by the Oracle account
32-bit Oracle process that is checking /tmp is failing since it is only capable of addressing 2Tb.
看情況是32位下存在的問題。由於我使用LVM並且沒有手工分區,考慮到收縮/分區存在的風險,還是重新做了系統並分了10G給/tmp,記住這個教訓了,很早之前就遇到過一次了。
來自http://blog.csdn.net/gtlions/article/details/9997101