准备安装oracle数据库,参考:http://blog.csdn.net/mchdba/article/details/43086037
1,解决方法(1),忽略系统prereqs
[[email protected] database]# export DISPLAY=192.168.121.218:1.0
[[email protected] database]# xhsot +
-bash: xhsot: command not found
[[email protected] database]# xhost +
access control disabled, clients can connect from any host
[[email protected] database]# su - oracle
[[email protected] ~]$ ./runInstaller -ignoreSysPreReqs
-bash: ./runInstaller: No such file or directory
[[email protected] ~]$ cd /home/ora
oracle/ ora_soft/
[[email protected] ~]$ cd /home/ora
oracle/ ora_soft/
[[email protected] ~]$ cd /home/ora_soft/database/
[[email protected] 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 ...[[email protected] database]$
2,解决方法(2),chown进oracle用户组
[[email protected] database]# chown -R oracle.oinstall /home/*
[[email protected] database]#
[[email protected] database]#
[[email protected] database]# pwd
/home/ora_soft/database
[[email protected] database]# su - oracle
[[email protected] ~]$ cd /home/ora_soft/database
[[email protected] 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 ...[[email protected] database]$
3,解决办法(3)
[oracle[email protected] 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安装界面,再次运行如下所示:
[[email protected] 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 ...[[email protected] database]$
4,解决办法(4),
[[email protected] 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
[[email protected] 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
看看结果:
[[email protected] database]$ ls -l /usr/libexec/getconf/default
lrwxrwxrwx. 1 root root 20 Feb 5 10:14 /usr/libexec/getconf/default -> POSIX_V6_ILP32_OFF32
[[email protected] database]$
cd /usr/libexec/getconf/
看看下面是不是有一个POSIX_V6_LP64_OFF64这样的文件,如果有的话
root用户下,执行
ln -s /usr/libexec/getconf/default /usr/libexec/getconf/POSIX_V6_LP64_OFF64
名称如果错了按实际的修改
[[email protected] database]$ exit
logout
[[email protected] 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
[[email protected] database]#
已经存在了,那么备份好,删除它
先备份
[[email protected] 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
[[email protected] database]#
删除它
[[email protected] database]# rm /usr/libexec/getconf/POSIX_V6_LP64_OFF64
rm: remove regular file `/usr/libexec/getconf/POSIX_V6_LP64_OFF64‘? y
再做软连接
[[email protected] 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 ...[[email protected] database]$
----------------------------------------------------------------------------------------------------------------
<版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!>
原博客地址: http://blog.csdn.net/mchdba/article/details/43534947
原作者:黄杉 (mchdba)
----------------------------------------------------------------------------------------------------------------