ORACLE 安裝./runInstaller報"You are attempting to install 64-bit Oracle on a 32-bit operating system.,yuminstalloracle
準備安裝oracle資料庫,參考:http://blog.csdn.net/mchdba/article/details/43086037
1,解決方案(1),忽略系統prereqs
[root@powerlong5 database]# export DISPLAY=192.168.121.218:1.0
[root@powerlong5 database]# xhsot +
-bash: xhsot: command not found
[root@powerlong5 database]# xhost +
access control disabled, clients can connect from any host
[root@powerlong5 database]# su - oracle
[oracle@powerlong5 ~]$ ./runInstaller -ignoreSysPreReqs
-bash: ./runInstaller: No such file or directory
[oracle@powerlong5 ~]$ cd /home/ora
oracle/ ora_soft/
[oracle@powerlong5 ~]$ cd /home/ora
oracle/ ora_soft/
[oracle@powerlong5 ~]$ cd /home/ora_soft/database/
[oracle@powerlong5 database]$ ./runInstaller -ignoreSysPreReqs
"You are attempting to install 64-bit Oracle on a 32-bit operating system. This is not supported and will not work."
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 28934 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-05_07-25-58PM. Please wait ...[oracle@powerlong5 database]$
2,解決方案(2),chown進oracle使用者組
[root@powerlong5 database]# chown -R oracle.oinstall /home/*
[root@powerlong5 database]#
[root@powerlong5 database]#
[root@powerlong5 database]# pwd
/home/ora_soft/database
[root@powerlong5 database]# su - oracle
[oracle@powerlong5 ~]$ cd /home/ora_soft/database
[oracle@powerlong5 database]$ ./runInstaller
"You are attempting to install 64-bit Oracle on a 32-bit operating system. This is not supported and will not work."
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 28934 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-05_07-30-17PM. Please wait ...[oracle@powerlong5 database]$
3,解決辦法(3)
[oracle@powerlong5 database]$ vim runInstaller
if [ `$UNAME` = "Linux" ]; then
if [ -e $GETCONF ]; then
value=`$GETCONF LONG_BIT`
if [ $value != 64 ]; then
echo "\"You are attempting to install 64-bit Oracle on a 32-bit operating system. This is not supported and will not work.\"";
# exit 0;
fi
fi
fi
然後再啟動就會跳過去了,不會exit了,繼續出來oracle安裝介面,再次運行如下所示:
[oracle@powerlong5 database]$ ./runInstaller
"You are attempting to install 64-bit Oracle on a 32-bit operating system. This is not supported and will not work."
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 28934 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-05_08-07-04PM. Please wait ...[oracle@powerlong5 database]$
4,解決辦法(4),
[root@powerlong5 ora_soft]# uname -a
Linux powerlong5 2.6.32-504.3.3.el6.x86_64 #1 SMP Wed Dec 17 01:55:02 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@powerlong5 ora_soft]#
是64位的
In 64 bit Linux operating system, getconf pointing to wrong bit (32 bit POSIX on 64 bit OS). This may be because of 64 bit POSIX overwritten by the 32bit glibc, glibc-common installation.
可能是這個問題
ls -l /usr/libexec/getconf/default
看看結果:
[oracle@powerlong5 database]$ ls -l /usr/libexec/getconf/default
lrwxrwxrwx. 1 root root 20 Feb 5 10:14 /usr/libexec/getconf/default -> POSIX_V6_ILP32_OFF32
[oracle@powerlong5 database]$
cd /usr/libexec/getconf/
看看下面是不是有一個POSIX_V6_LP64_OFF64這樣的檔案,如果有的話
root使用者下,執行
ln -s /usr/libexec/getconf/default /usr/libexec/getconf/POSIX_V6_LP64_OFF64
名稱如果錯了按實際的修改
[oracle@powerlong5 database]$ exit
logout
[root@powerlong5 database]# ln -s /usr/libexec/getconf/default /usr/libexec/getconf/POSIX_V6_LP64_OFF64
ln: creating symbolic link `/usr/libexec/getconf/POSIX_V6_LP64_OFF64': File exists
[root@powerlong5 database]#
已經存在了,那麼備份好,刪除它
先備份
[root@powerlong5 database]# cp /usr/libexec/getconf/POSIX_V6_LP64_OFF64 /usr/libexec/getconf/POSIX_V6_LP64_OFF64.bak
cp: overwrite `/usr/libexec/getconf/POSIX_V6_LP64_OFF64.bak'? y
[root@powerlong5 database]#
刪除它
[root@powerlong5 database]# rm /usr/libexec/getconf/POSIX_V6_LP64_OFF64
rm: remove regular file `/usr/libexec/getconf/POSIX_V6_LP64_OFF64'? y
再做軟串連
[oracle@powerlong5 database]$ ./runInstaller
"You are attempting to install 64-bit Oracle on a 32-bit operating system. This is not supported and will not work."
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 28934 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-05_08-07-04PM. Please wait ...[oracle@powerlong5 database]$
----------------------------------------------------------------------------------------------------------------
<著作權,文章允許轉載,但必須以連結方式註明源地址,否則追究法律責任!>
原部落格地址: http://blog.csdn.net/mchdba/article/details/43534947
原作者:黃杉 (mchdba)
----------------------------------------------------------------------------------------------------------------