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 ~]# 
  • 相关阅读:
    并发与高并发(七)-线程安全性-原子性-atomic
    并发与高并发(六)-并发模拟代码
    springboot跨域请求接口示例
    关于Java编码规范
    并发与高并发(五)-并发模拟的三个工具
    springboot整合redis简单示例
    关于码云如何检出项目
    关于自动化打包部署Jenkins的使用和配置
    针对Oracle的一系列操作
    关于Linux下Oracle安装后启动的问题
  • 原文地址:https://www.cnblogs.com/gudaozi/p/8431493.html
Copyright © 2011-2022 走看看