CentOS 7 1810 Desktop 离线 安装 Oracle 11g 第2版​​(11.2)

相关网址:

Oracle数据库软件下载

阿里巴巴开源镜像站

参考资料:

Oracle数据库文档

Oracle数据库在线文档 11g 第2版(11.2)


说明:

本教程旨在以最少的配置(对 CentOS 影响最小)去解决 Oracle 11g 依赖并安装。

安装的是 CentOS 7 1810 Desktop 版本,安装前未对 CentOS 做任何修改。

安装 CentOS 时,语言为英语。


  1. 创建 Oracle用户 和 
    1. 创建 Oracle组:
      1. 查看 Oracle组 是否存在:
        more /etc/oraInst.loc
      2. 如果 Oracle 组不存在,则创建 Oracle 组:
        /usr/sbin/groupadd oinstall
    2. 创建 dba组

      1. 查看 dba 组是否存在:

        grep dba /etc/group
      2. 如果 dba 组不存在,则创建 dba 组:

        /usr/sbin/groupadd dba
    3. 创建 Oracle 软件所有者用户:

      1. 查看 Oracle 软件所有者是否存在:

        id oracle
      2. 如果 Oracle 软件所有者不存在,则创建 Oracle 软件所有者,并将 Oracle 软件所有者添加到 oinstall 和 dba 组中

        /usr/sbin/useradd -g oinstall -G dba oracle
      3. 如果 Oracle 软件所有者存在,但其主要组不存在 oinstall 或不是该 dba 组的成员:

        /usr/sbin/usermod -g oinstall -G dba oracle
      4. 设置 Oracle 所有者的密码:

        passwd oracle
  2. 使用 root(管理员)创建 Oracle 11g 安装文件夹并授权:
    mkdir -p /u01/app/
    chown -R oracle:oinstall /u01/app/
    chmod -R 775 /u01/app/
  3. 登录 Oracle 所有者的账户,使用 Oracle 所有者上传 Oracle 11g 并解压:
    安装过程存在弹窗过小(根本无法扩大,导致不能选择),需要使用 JDK 1.8 作为依赖进行安装,需要使用 Oracle 所有者上传解压 JDK 1.8。
    [oracle@desktop ~]$ ll
    total 2486116
    drwxr-xr-x. 8 oracle oinstall        128 Aug 21  2009 database
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Desktop
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Documents
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Downloads
    drwxr-xr-x. 7 oracle oinstall        245 Jul  4 19:37 jdk1.8.0_221
    -rwxrw-rw-. 1 oracle oinstall  195094741 Jul 27 15:24 jdk-8u221-linux-x64.tar.gz
    -rwxrw-rw-. 1 oracle oinstall 1239269270 Feb  3  2018 linux.x64_11gR2_database_1of2.zip
    -rwxrw-rw-. 1 oracle oinstall 1111416131 Feb  3  2018 linux.x64_11gR2_database_2of2.zip
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Music
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Pictures
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Public
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Templates
    drwxr-xr-x. 2 oracle oinstall          6 Nov 30 16:45 Videos
    [oracle@desktop ~]$ 
    

     

  4. 尝试启动安装 Oracle:
    1. 安装时,如果语言环境为:
      [oracle@desktop database]$ locale
      LANG=en_US.UTF-8
      LC_CTYPE="en_US.UTF-8"
      LC_NUMERIC="en_US.UTF-8"
      LC_TIME="en_US.UTF-8"
      LC_COLLATE="en_US.UTF-8"
      LC_MONETARY="en_US.UTF-8"
      LC_MESSAGES="en_US.UTF-8"
      LC_PAPER="en_US.UTF-8"
      LC_NAME="en_US.UTF-8"
      LC_ADDRESS="en_US.UTF-8"
      LC_TELEPHONE="en_US.UTF-8"
      LC_MEASUREMENT="en_US.UTF-8"
      LC_IDENTIFICATION="en_US.UTF-8"
      LC_ALL=
      [oracle@desktop database]$ 
      
      安装过程显示英文:
      [oracle@desktop ~]$ cd database/
      [oracle@desktop database]$ ls
      doc  install  response  rpm  runInstaller  sshsetup  stage  welcome.html
      [oracle@desktop database]$ ./runInstaller -jreLoc /home/oracle/jdk1.8.0_221/
      Starting Oracle Universal Installer...
      
      Checking Temp space: must be greater than 120 MB.   Actual 34034 MB    Passed
      Checking swap space: must be greater than 150 MB.   Actual 3967 MB    Passed
      Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
      Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-11-30_04-54-59PM. Please wait ...
      
    2. 安装时,如果语言环境为:
      [oracle@desktop database]$ LANG=zh_CN.UTF-8
      [oracle@desktop database]$ locale
      LANG=zh_CN.UTF-8
      LC_CTYPE="zh_CN.UTF-8"
      LC_NUMERIC="zh_CN.UTF-8"
      LC_TIME="zh_CN.UTF-8"
      LC_COLLATE="zh_CN.UTF-8"
      LC_MONETARY="zh_CN.UTF-8"
      LC_MESSAGES="zh_CN.UTF-8"
      LC_PAPER="zh_CN.UTF-8"
      LC_NAME="zh_CN.UTF-8"
      LC_ADDRESS="zh_CN.UTF-8"
      LC_TELEPHONE="zh_CN.UTF-8"
      LC_MEASUREMENT="zh_CN.UTF-8"
      LC_IDENTIFICATION="zh_CN.UTF-8"
      LC_ALL=
      [oracle@desktop database]$ 
      安装过程显示中文:
      [oracle@desktop database]$ ./runInstaller -jreLoc /home/oracle/jdk1.8.0_221/
      正在启动 Oracle Universal Installer...
      
      检查临时空间: 必须大于 120 MB。   实际为 34026 MB    通过
      检查交换空间: 必须大于 150 MB。   实际为 3967 MB    通过
      检查监视器: 监视器配置至少必须显示 256 种颜色。    实际为 16777216    通过
      准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2019-11-30_05-14-40PM. 请稍候...[oracle@desktop database]$ 
      
  5. 点击 下一步

     


  6.  
  7. 选择 创建和配置数据库,点 下一步

     
  8. 选择 服务器类,点下一步

     
  9. 选择 单实例数据库安装,点 下一步

     
  10. 选择 高级安装,点 下一步

     
  11. 下一步

     
  12. 下一步

     
  13. 下一步

     
  14. 下一步

     
  15. 选择 一般用途/事物处理,点 下一步

     
  16. 全局数据库名与Oracle服务标识符一般使用 orcl,点下一步:

     
  17. 下一步

     
  18. 下一步

     
  19. 选择 启用自动备份,输入 口令,点 下一步

     
  20. 选择 对所有账户使用相同的口令,点 下一步

     
  21. 点 

     
  22. 下一步

     
  23. 显示依赖与配置未符合要求:

     
  24. 解决依赖 gcc 离线安装:
    以下所有安装rpm,均使用管理员进行操作。
    gcc-4.8.5-39.el7.x86_64.rpm需要的依赖:
    [root@desktop gcc]# ll
    total 49168
    -rw-r--r--. 1 root root  6236316 Nov 30 19:39 cpp-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root 16966352 Nov 30 19:39 gcc-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root     9413 Nov 30 19:39 gcc.txt
    -rw-r--r--. 1 root root  3810256 Nov 30 19:39 glibc-2.17-292.el7.x86_64.rpm
    -rw-r--r--. 1 root root 12052540 Nov 30 19:39 glibc-common-2.17-292.el7.x86_64.rpm
    -rw-r--r--. 1 root root  1124384 Nov 30 19:39 glibc-devel-2.17-292.el7.x86_64.rpm
    -rw-r--r--. 1 root root   703356 Nov 30 19:39 glibc-headers-2.17-292.el7.x86_64.rpm
    -rw-r--r--. 1 root root  9156612 Nov 30 19:39 kernel-headers-3.10.0-1062.4.3.el7.x86_64.rpm
    -rw-r--r--. 1 root root   104736 Nov 30 19:39 libgcc-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root   161828 Nov 30 19:39 libgomp-4.8.5-39.el7.x86_64.rpm
    [root@desktop gcc]# 
    安装:
    [root@desktop gcc]# rpm -Fvh libgcc-4.8.5-39.el7.x86_64.rpm
    warning: libgcc-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libgcc-4.8.5-39.el7              ################################# [ 50%]
    Cleaning up / removing...
       2:libgcc-4.8.5-36.el7              ################################# [100%]
    [root@desktop gcc]# rpm -Fvh glibc*
    warning: glibc-2.17-292.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:glibc-common-2.17-292.el7        ################################# [ 25%]
       2:glibc-2.17-292.el7               warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
    ################################# [ 50%]
    Cleaning up / removing...
       3:glibc-common-2.17-260.el7        ################################# [ 75%]
       4:glibc-2.17-260.el7               ################################# [100%]
    [root@desktop gcc]# rpm -Fvh libgomp-4.8.5-39.el7.x86_64.rpm
    warning: libgomp-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libgomp-4.8.5-39.el7             ################################# [ 50%]
    Cleaning up / removing...
       2:libgomp-4.8.5-36.el7             ################################# [100%]
    [root@desktop gcc]# rpm -ivh cpp-4.8.5-39.el7.x86_64.rpm 
    warning: cpp-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:cpp-4.8.5-39.el7                 ################################# [100%]
    [root@desktop gcc]# rpm -ivh kernel-headers-3.10.0-1062.4.3.el7.x86_64.rpm
    warning: kernel-headers-3.10.0-1062.4.3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:kernel-headers-3.10.0-1062.4.3.el################################# [100%]
    [root@desktop gcc]# rpm -ivh glibc-headers-2.17-292.el7.x86_64.rpm
    warning: glibc-headers-2.17-292.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:glibc-headers-2.17-292.el7       ################################# [100%]
    [root@desktop gcc]# rpm -ivh glibc-devel-2.17-292.el7.x86_64.rpm
    warning: glibc-devel-2.17-292.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:glibc-devel-2.17-292.el7         ################################# [100%]
    [root@desktop gcc]# rpm -ivh gcc-4.8.5-39.el7.x86_64.rpm
    warning: gcc-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:gcc-4.8.5-39.el7                 ################################# [100%]
    [root@desktop gcc]# 
    
    重新检查,看到gcc已经不缺了:
  25. 解决依赖 libaio.i368 离线安装:
    libaio-0.3.106-5.i386.rpm需要的依赖:
    [root@desktop libaio]# ll
    total 52
    -rw-r--r--. 1 root root 19798 Nov 30 19:45 libaio-0.3.106-5.i386.rpm
    -rw-r--r--. 1 root root 24744 Nov 30 19:45 libaio-0.3.109-13.el7.x86_64.rpm
    -rw-r--r--. 1 root root   245 Nov 30 19:45 libaio.txt
    [root@desktop libaio]#
    由于 libaio.x86_64 比 libaio.i368 版本高,并且已经安装,
    低版本不能在高版本之后再安装,
    但高版本可以在低版本安装之后再安装
    [root@desktop libaio]# rpm -qa libaio
    libaio-0.3.109-13.el7.x86_64
    [root@desktop libaio]# rpm -e --nodeps libaio
    [root@desktop libaio]# rpm -ivh libaio-0.3.106-5.i386.rpm
    warning: libaio-0.3.106-5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libaio-0.3.106-5                 ################################# [100%]
    [root@desktop libaio]# rpm -ivh libaio-0.3.109-13.el7.x86_64.rpm
    warning: libaio-0.3.109-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libaio-0.3.109-13.el7            ################################# [100%]
    [root@desktop libaio]# 
    
    重新检查,看到 libaio.i368 已经不缺了:

     
  26. 解决依赖 glibc.i686 离线安装:
    [root@desktop glibc]# ll
    total 5020
    -rw-r--r--. 1 root root 4462180 Nov 30 19:55 glibc-2.17-292.el7.i686.rpm
    -rw-r--r--. 1 root root    5379 Nov 30 19:55 glibc.txt
    -rw-r--r--. 1 root root  129772 Nov 30 19:55 nspr-4.21.0-1.el7.x86_64.rpm
    -rw-r--r--. 1 root root  218932 Nov 30 19:55 nss-softokn-freebl-3.44.0-5.el7.i686.rpm
    -rw-r--r--. 1 root root  229520 Nov 30 19:55 nss-softokn-freebl-3.44.0-5.el7.x86_64.rpm
    -rw-r--r--. 1 root root   80576 Nov 30 19:55 nss-util-3.44.0-3.el7.x86_64.rpm
    [root@desktop glibc]# 
    
    由于 nss-softokn-freebl.x86_64 不可卸载,所以 nss-softokn-freebl.i686 使用了强制安装命令。
    另外 glibc.i686 也是用了强制安装。
    [root@desktop glibc]# rpm -Fvh nspr-4.21.0-1.el7.x86_64.rpm
    warning: nspr-4.21.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:nspr-4.21.0-1.el7                ################################# [ 50%]
    Cleaning up / removing...
       2:nspr-4.19.0-1.el7_5              ################################# [100%]
    [root@desktop glibc]# rpm -Fvh nss-util-3.44.0-3.el7.x86_64.rpm
    warning: nss-util-3.44.0-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:nss-util-3.44.0-3.el7            ################################# [ 50%]
    Cleaning up / removing...
       2:nss-util-3.36.0-1.el7_5          ################################# [100%]
    [root@desktop glibc]# rpm -i --nodeps nss-softokn-freebl-3.44.0-5.el7.i686.rpm
    warning: nss-softokn-freebl-3.44.0-5.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    [root@desktop glibc]# rpm -qa nss-softokn-freebl
    nss-softokn-freebl-3.36.0-5.el7_5.x86_64
    nss-softokn-freebl-3.44.0-5.el7.i686
    [root@desktop glibc]# rpm -Fvh nss-softokn-freebl-3.44.0-5.el7.x86_64.rpm
    warning: nss-softokn-freebl-3.44.0-5.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:nss-softokn-freebl-3.44.0-5.el7  ################################# [ 50%]
    Cleaning up / removing...
       2:nss-softokn-freebl-3.36.0-5.el7_5################################# [100%]
    [root@desktop glibc]# rpm -i --nodeps glibc-2.17-292.el7.i686.rpm
    warning: glibc-2.17-292.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    [root@desktop glibc]# rpm -qa glibc
    glibc-2.17-292.el7.x86_64
    glibc-2.17-292.el7.i686
    [root@desktop glibc]# 
    
    再次检查:

     
  27. 解决依赖 elfutils-libelf-devel 离线安装:
    [root@desktop elfutils-libelf-devel]# ll
    total 100
    drwxr-xr-x. 2 root root   135 Nov 30 20:23 1
    -rw-r--r--. 1 root root 40372 Nov 30 20:23 elfutils-libelf-devel-0.176-2.el7.x86_64.rpm
    -rw-r--r--. 1 root root  5619 Nov 30 20:23 elfutils-libelf-devel.txt
    -rw-r--r--. 1 root root 51128 Nov 30 20:23 zlib-devel-1.2.7-18.el7.x86_64.rpm
    [root@desktop elfutils-libelf-devel]# cd 1/
    [root@desktop 1]# ll
    total 796
    -rw-r--r--. 1 root root 312048 Nov 30 20:23 elfutils-0.176-2.el7.x86_64.rpm
    -rw-r--r--. 1 root root 199060 Nov 30 20:23 elfutils-libelf-0.176-2.el7.x86_64.rpm
    -rw-r--r--. 1 root root 297560 Nov 30 20:23 elfutils-libs-0.176-2.el7.x86_64.rpm
    [root@desktop 1]# 
    
     
    [root@desktop 1]# rpm -Fvh elfutils*
    warning: elfutils-0.176-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:elfutils-libelf-0.176-2.el7      ################################# [ 17%]
       2:elfutils-libs-0.176-2.el7        ################################# [ 33%]
       3:elfutils-0.176-2.el7             ################################# [ 50%]
    Cleaning up / removing...
       4:elfutils-0.172-2.el7             ################################# [ 67%]
       5:elfutils-libs-0.172-2.el7        ################################# [ 83%]
       6:elfutils-libelf-0.172-2.el7      ################################# [100%]
    [root@desktop 1]# cd ..
    [root@desktop elfutils-libelf-devel]# rpm -ivh zlib-devel-1.2.7-18.el7.x86_64.rpm
    warning: zlib-devel-1.2.7-18.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:zlib-devel-1.2.7-18.el7          ################################# [100%]
    [root@desktop elfutils-libelf-devel]# rpm -ivh elfutils-libelf-devel-0.176-2.el7.x86_64.rpm
    warning: elfutils-libelf-devel-0.176-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:elfutils-libelf-devel-0.176-2.el7################################# [100%]
    [root@desktop elfutils-libelf-devel]# 
    
  28.  
    [root@desktop gcc-c++]# ll
    total 9216
    -rw-r--r--. 1 root root 7529552 Nov 30 20:27 gcc-c++-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root    6224 Nov 30 20:27 gcc-c++.txt
    -rw-r--r--. 1 root root  312504 Nov 30 20:27 libstdc++-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root 1580840 Nov 30 20:27 libstdc++-devel-4.8.5-39.el7.x86_64.rpm
    [root@desktop gcc-c++]# 
    

    [root@desktop gcc-c++]# rpm -Fvh libstdc++-4.8.5-39.el7.x86_64.rpm
    warning: libstdc++-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libstdc++-4.8.5-39.el7           ################################# [ 50%]
    Cleaning up / removing...
       2:libstdc++-4.8.5-36.el7           ################################# [100%]
    [root@desktop gcc-c++]# rpm -ivh libstdc++-devel-4.8.5-39.el7.x86_64.rpm
    warning: libstdc++-devel-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libstdc++-devel-4.8.5-39.el7     ################################# [100%]
    [root@desktop gcc-c++]# rpm -ivh gcc-c++-4.8.5-39.el7.x86_64.rpm
    warning: gcc-c++-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:gcc-c++-4.8.5-39.el7             ################################# [100%]
    [root@desktop gcc-c++]# 
    





     
  29. 解决依赖 libaio-devel 离线安装:
    [root@desktop libaio-devel]# ll
    total 28
    -rw-r--r--. 1 root root 11784 Nov 30 20:31 libaio-devel-0.3.106-5.i386.rpm
    -rw-r--r--. 1 root root 11687 Nov 30 20:31 libaio-devel-0.3.106-5.x86_64.rpm
    -rw-r--r--. 1 root root    84 Nov 30 20:31 libaio-devel.txt
    [root@desktop libaio-devel]#
     
    [root@desktop libaio-devel]# rpm -ivh libaio-devel-0.3.106-5.i386.rpm
    warning: libaio-devel-0.3.106-5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libaio-devel-0.3.106-5           ################################# [100%]
    [root@desktop libaio-devel]# rpm -ivh libaio-devel-0.3.106-5.x86_64.rpm
    warning: libaio-devel-0.3.106-5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libaio-devel-0.3.106-5           ################################# [100%]
    [root@desktop libaio-devel]# 
    




     
  30. 解决依赖 libgcc 离线安装:
    [root@desktop libgcc]# ll
    total 208
    -rw-r--r--. 1 root root  99409 Nov 30 20:34 libgcc-4.1.2-54.el5.i386.rpm
    -rw-r--r--. 1 root root 104736 Nov 30 20:34 libgcc-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root    246 Nov 30 20:34 libgcc.txt
    [root@desktop libgcc]# 
    
     
    [root@desktop libgcc]# rpm -qa libgcc
    libgcc-4.8.5-39.el7.x86_64
    [root@desktop libgcc]# rpm -e --nodeps libgcc
    [root@desktop libgcc]# rpm -ivh libgcc-4.1.2-54.el5.i386.rpm
    warning: libgcc-4.1.2-54.el5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libgcc-4.1.2-54.el5              ################################# [100%]
    [root@desktop libgcc]# rpm -ivh libgcc-4.8.5-39.el7.x86_64.rpm
    warning: libgcc-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libgcc-4.8.5-39.el7              ################################# [100%]
    [root@desktop libgcc]# 
    


     
  31. 解决依赖 compat-libstdc++-33.i686、compat-libstdc++-33.x86_64 离线安装:
    由于 compat-libstdc++-33.i686 安装需要依赖 libgcc,所以要在 libgcc 安装之后再安装
    [root@desktop compat-libstdc++-33]# ll
    total 428
    -rw-r--r--. 1 root root 237096 Nov 30 20:02 compat-libstdc++-33-3.2.3-61.i386.rpm
    -rw-r--r--. 1 root root 195388 Nov 30 20:02 compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
    -rw-r--r--. 1 root root    100 Nov 30 20:02 compat-libstdc++-33.txt
    [root@desktop compat-libstdc++-33]# 
     
    [root@desktop compat-libstdc++-33]# rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpmwarning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:compat-libstdc++-33-3.2.3-61     ################################# [100%]
    [root@desktop compat-libstdc++-33]# rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
    warning: compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:compat-libstdc++-33-3.2.3-72.el7 ################################# [100%]
    [root@desktop compat-libstdc++-33]# 
    




     
  32.  
    [root@desktop libstdc++]# ll
    total 676
    -rw-r--r--. 1 root root 372222 Nov 30 20:44 libstdc++-4.1.2-54.el5.i386.rpm
    -rw-r--r--. 1 root root 312504 Nov 30 20:44 libstdc++-4.8.5-39.el7.x86_64.rpm
    -rw-r--r--. 1 root root    273 Nov 30 20:44 libstdc++.txt
    [root@desktop libstdc++]# 
    

    [root@desktop libstdc++]# rpm -qa libstdc++
    libstdc++-4.8.5-39.el7.x86_64
    [root@desktop libstdc++]# rpm -e --nodeps libstdc++
    [root@desktop libstdc++]# rpm -ivh libstdc++-4.1.2-54.el5.i386.rpm
    warning: libstdc++-4.1.2-54.el5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libstdc++-4.1.2-54.el5           ################################# [100%]
    [root@desktop libstdc++]# rpm -ivh libstdc++-4.8.5-39.el7.x86_64.rpm
    warning: libstdc++-4.8.5-39.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libstdc++-4.8.5-39.el7           ################################# [100%]
    [root@desktop libstdc++]# 
    




     
  33.  
    [root@desktop unixODBC]# ll
    total 3232
    -rw-r--r--. 1 root root 296661 Nov 30 20:49 unixODBC-2.2.11-10.el5.i386.rpm
    -rw-r--r--. 1 root root 298128 Nov 30 20:49 unixODBC-2.2.11-10.el5.x86_64.rpm
    -rw-r--r--. 1 root root 756702 Nov 30 20:49 unixODBC-devel-2.2.11-10.el5.i386.rpm
    -rw-r--r--. 1 root root 812281 Nov 30 20:49 unixODBC-devel-2.2.11-10.el5.x86_64.rpm
    -rw-r--r--. 1 root root 564646 Nov 30 20:49 unixODBC-libs-2.2.11-10.el5.i386.rpm
    -rw-r--r--. 1 root root 567662 Nov 30 20:49 unixODBC-libs-2.2.11-10.el5.x86_64.rpm
    -rw-r--r--. 1 root root    320 Nov 30 20:49 unixODBC.txt
    [root@desktop unixODBC]# 
    
     
    [root@desktop unixODBC]# rpm -ivh unixODBC-libs-2.2.11-10.el5.i386.rpm
    warning: unixODBC-libs-2.2.11-10.el5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:unixODBC-libs-2.2.11-10.el5      ################################# [100%]
    [root@desktop unixODBC]# rpm -ivh unixODBC-2.2.11-10.el5.i386.rpm
    warning: unixODBC-2.2.11-10.el5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:unixODBC-2.2.11-10.el5           ################################# [100%]
    [root@desktop unixODBC]# rpm -ivh unixODBC-devel-2.2.11-10.el5.i386.rpm
    warning: unixODBC-devel-2.2.11-10.el5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:unixODBC-devel-2.2.11-10.el5     ################################# [100%]
    [root@desktop unixODBC]# rpm -ivh unixODBC-libs-2.2.11-10.el5.x86_64.rpm
    warning: unixODBC-libs-2.2.11-10.el5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:unixODBC-libs-2.2.11-10.el5      ################################# [100%]
    [root@desktop unixODBC]# rpm -ivh unixODBC-2.2.11-10.el5.x86_64.rpm
    warning: unixODBC-2.2.11-10.el5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:unixODBC-2.2.11-10.el5           ################################# [100%]
    [root@desktop unixODBC]# rpm -ivh unixODBC-devel-2.2.11-10.el5.x86_64.rpm
    warning: unixODBC-devel-2.2.11-10.el5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:unixODBC-devel-2.2.11-10.el5     ################################# [100%]
    [root@desktop unixODBC]# 
    





     
  34.  
    [root@desktop pdksh]# ll
    total 212
    -rw-r--r--. 1 root root 210877 Nov 30 20:52 pdksh-5.2.14-37.el5_8.1.x86_64.rpm
    -rw-r--r--. 1 root root     43 Nov 30 20:52 pdksh.txt
    [root@desktop pdksh]#

    [root@desktop pdksh]# rpm -ivh pdksh-5.2.14-37.el5_8.1.x86_64.rpm
    warning: pdksh-5.2.14-37.el5_8.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:pdksh-5.2.14-37.el5_8.1          ################################# [100%]
    [root@desktop pdksh]# 
    

     
  35.  
    vim /etc/sysctl.conf
     
    fs.aio-max-nr = 1048576
    fs.file-max = 6815744
    kernel.shmall = 2097152
    kernel.shmmax = 536870912
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 9000 65500
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576
     
    [root@desktop pdksh]# /sbin/sysctl -p
    fs.aio-max-nr = 1048576
    fs.file-max = 6815744
    kernel.shmall = 2097152
    kernel.shmmax = 536870912
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 9000 65500
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576
    [root@desktop pdksh]# 
    



     
  36.  
    vim /etc/sysctl.conf
     
    fs.file-max = 6815744 
    fs.aio-max-nr = 1048576 
    kernel.shmall = 2097152 
    kernel.shmmax = 2147483648 
    kernel.shmmni = 4096 
    kernel.sem = 250 32000 100 128 
    net.ipv4.ip_local_port_range = 9000 65500 
    net.core.rmem_default = 4194304 
    net.core.rmem_max = 4194304 
    net.core.wmem_default = 262144 
    net.core.wmem_max = 1048576


     
    vim /etc/security/limits.conf

    oracle hard nproc 16384
    oracle hard nofile 65536





     


  37.  



  38.  


  39.  
    /u01/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk
     
    ctxhx: $(CTXHXOBJ)
            #$(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK)
            -static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib64/stdc.a
    





     
    $(SYSMANBIN)emdctl:
            #$(MK_EMAGENT_NMECTL)
            $(MK_EMAGENT_NMECTL) -lnnz11
    







  40.  




  41.  




  42.  




  43.  
  44.  
  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: Age of Ai 设计师:meimeiellie 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值