• 国产化操作系统改造oracle proc依赖库文件缺失处理


    国产化操作系统改造oracle proc依赖库文件缺失处理

    1 场景

    国产化操作系统升级改造过程中,Red Hat Enterprise Linux Server release 7.6 (Maipo)在线升级迁移到BigCloud Enterprise Linux For Euler release 21.10 (LTS-SP2),oracle用户下执行proc报错:

    [oracle@superman ~]$ proc
    proc: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
    [oracle@superman ~]$ 
    
    • 1
    • 2
    • 3

    2 排查过程

    2.1 查看安装库文件
    [root@superman ~]# rpm -qa |grep libnsl
    libnsl2-1.3.0-2.oe1.x86_64
    [root@superman ~]# 
    
    • 1
    • 2
    • 3

    发现libnsl版本是libnsl2。

    2.2 搜索yum源libnsl库版本
    [root@superman ~]# yum search all libnsl
    Last metadata expiration check: 0:09:10 ago on Thu 07 Sep 2023 09:43:29 AM CST.
    ===================================================================================== Name & Description Matched: libnsl ======================================================================================
    libnsl.x86_64 : Public client interface for NIS(YP) and NIS+
    ============================================================================= Name & Summary & Description & URL Matched: libnsl ==============================================================================
    libnsl2-devel.x86_64 : The development for libnsl2
    ================================================================================== Name & Description & URL Matched: libnsl ===================================================================================
    libnsl2.x86_64 : Public client interface library for NIS(YP) and NIS+
    [root@superman ~]# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    发现yum源有libnsl。

    3 解决方案

    3.1 方法一:通过yum源安装libnsl
    [root@superman ~]# yum install -y libnsl
    Last metadata expiration check: 0:09:45 ago on Thu 07 Sep 2023 09:43:29 AM CST.
    Dependencies resolved.
    ===============================================================================================================================================================================================================
     Package                                    Architecture                               Version                                         Repository                                                         Size
    ===============================================================================================================================================================================================================
    Installing:
     libnsl                                     x86_64                                     2.28-79.oe1                                     bclinux-for-Euler21.10-update                                      52 k
    
    Transaction Summary
    ===============================================================================================================================================================================================================
    Install  1 Package
    
    Total download size: 52 k
    Installed size: 94 k
    Downloading Packages:
    libnsl-2.28-79.oe1.x86_64.rpm                                                                                                                                                  4.7 MB/s |  52 kB     00:00    
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                          4.1 MB/s |  52 kB     00:00     
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                       1/1 
      Installing       : libnsl-2.28-79.oe1.x86_64                                                                                                                                                             1/1 
      Running scriptlet: libnsl-2.28-79.oe1.x86_64                                                                                                                                                             1/1 
      Verifying        : libnsl-2.28-79.oe1.x86_64                                                                                                                                                             1/1 
    
    Installed:
      libnsl-2.28-79.oe1.x86_64                                                                                                                                                                                    
    
    Complete!
    [root@superman ~]# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    3.2 方法二:从其它正常编译环境拷贝

    从正常编译环境拷贝libnsl.so.1文件到/usr/lib64/文件夹目录下,然后执行ldconfig。

    👍 点赞,你的认可是我创作的动力!

    ⭐️ 收藏,你的青睐是我努力的方向!

    ✏️ 评论,你的意见是我进步的财富!

    图片

  • 相关阅读:
    [Linux入门]---Linux编译器gcc/g++使用
    【Rust指南】基础语法|基本数据类型|复合数据类型
    《Python编程:从入门到实践》第十章练习题
    02Spring框架的特点以及jar包下载
    go语言输出带颜色字体
    【计算机网络】—网络编程(socket)02
    牛客 NC26257 小雨坐地铁
    Vue.js 中的API接口封装实战与详解
    8年经验之谈 —— 记一次接口压力测试与性能调优!
    git常用命令(patch补丁和解决冲突)
  • 原文地址:https://blog.csdn.net/shuchaoyang/article/details/132746699