码迷,mamicode.com
首页 > 数据库 > 详细

ORACLE 安装./runInstaller报"You are attempting to install 64-bit Oracle on a 32-bit operating system.

时间:2015-02-05 20:26:57      阅读:375      评论:0      收藏:0      [点我收藏+]

标签:

准备安装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)
----------------------------------------------------------------------------------------------------------------

ORACLE 安装./runInstaller报"You are attempting to install 64-bit Oracle on a 32-bit operating system.

标签:

原文地址:http://blog.csdn.net/mchdba/article/details/43534947

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!