zoukankan      html  css  js  c++  java
  • getconf LONG_BIT显示的系统位数与uname -m 显示的系统位数不一致。

    之前安装在红帽子系统上安装oracle过程中,遇到getconf LONG_BIT显示的系统位数为32位,而实际系统安装镜像时64位。导致启动oracle安装图形界面报错。

    [root@sesprd oracle]# getconf LONG_BIT
    32
    [root@sesprd oracle]# uname -m
    x86_64

    解决办法,修改软件接

    [root@sesprd oracleinstall]# cd /usr/libexec/getconf/
    [root@sesprd getconf]# ls
    default               POSIX_V6_ILP32_OFFBIG  POSIX_V7_ILP32_OFF32   POSIX_V7_LP64_OFF64  XBS5_ILP32_OFFBIG
    POSIX_V6_ILP32_OFF32  POSIX_V6_LP64_OFF64    POSIX_V7_ILP32_OFFBIG  XBS5_ILP32_OFF32     XBS5_LP64_OFF64
    [root@sesprd getconf]# ls -l
    total 192
    lrwxrwxrwx. 1 root root    20 Jan 31 17:22 default -> POSIX_V6_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V6_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V6_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 POSIX_V6_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V7_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V7_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 POSIX_V7_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 XBS5_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 XBS5_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 XBS5_LP64_OFF64
    [root@sesprd getconf]# ln  POSIX_V6_LP64_OFF64 default
    ln: failed to create hard link ‘default’: File exists
    [root@sesprd getconf]# rm default.bak 
    rm: cannot remove ‘default.bak’: No such file or directory
    [root@sesprd getconf]# rm default.bak
    rm: cannot remove ‘default.bak’: No such file or directory
    [root@sesprd getconf]# rm default
    rm: remove symbolic link ‘default’? y
    [root@sesprd getconf]# ls -l
    total 192
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V6_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V6_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 POSIX_V6_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V7_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V7_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 POSIX_V7_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 XBS5_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 XBS5_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 XBS5_LP64_OFF64
    [root@sesprd getconf]# ln -s  POSIX_V6_LP64_OFF64 default
    [root@sesprd getconf]# ls -l
    total 192
    lrwxrwxrwx. 1 root root    19 Feb  1 11:56 default -> POSIX_V6_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V6_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V6_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 POSIX_V6_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V7_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 POSIX_V7_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 POSIX_V7_LP64_OFF64
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 XBS5_ILP32_OFF32
    -rwxr-xr-x. 6 root root 17936 Aug  2  2017 XBS5_ILP32_OFFBIG
    -rwxr-xr-x. 3 root root 22848 Jan 20  2015 XBS5_LP64_OFF64
    [root@sesprd getconf]# 
    [root@sesprd ~]# getconf LONG_BIT
    64
    [root@sesprd ~]# 
  • 相关阅读:
    python 多线程测试
    python 多线程join()
    python 多线程 t.setDaemon(True):
    线程锁
    python 多线程
    模板渲染和参数传递.
    求两个数组的交集
    java数组并集/交集/差集(补集)
    java各种集合的线程安全
    页面跳转和重定向
  • 原文地址:https://www.cnblogs.com/gudaozi/p/8431493.html
Copyright © 2011-2022 走看看