()

How to Upgrade OEL (Oracle Enterprise Linux) 7.7 to 7.9


In previous blog we have look into How to Install OEL 7.7 Click here to read more about it. In this blog post, we are going to perform how we can upgrade Oracle Enterprise Linux (OEL) 7.7 to 7.9.


Please note here, we will be using OEL (Oracle Enterprise Linux) 7.7 & yum and wget command require internet access in your Linux Server.

[root@test-machine02 log]# cat /etc/oracle-release
Oracle Linux Server release 7.7


Please verify you have already got the OEL7 yum repository, typically OEL yum repository is configured all through the time of OS installation. Use yum repolist command to list presently configure yum repository in your Server.

[root@test-machine02 ~]# yum repolist
Loaded plugins: langpacks, ulninfo
ol7_UEKR5                                                                                                                                                              | 2.5 kB  00:00:00
ol7_latest                                                                                                                                                             | 2.7 kB  00:00:00
(1/5): ol7_UEKR5/x86_64/updateinfo                                                                                                                                     |  50 kB  00:00:00
(2/5): ol7_latest/x86_64/group                                                                                                                                         | 660 kB  00:00:01
(3/5): ol7_latest/x86_64/updateinfo                                                                                                                                    | 3.1 MB  00:00:02
(4/5): ol7_UEKR5/x86_64/primary_db                                                                                                                                     | 8.7 MB  00:00:05
(5/5): ol7_latest/x86_64/primary_db                                                                                                                                    |  32 MB  00:00:09
repo id                                                     repo name                                                                                                                   status
ol7_UEKR5/x86_64                                            Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)                                               245
ol7_latest/x86_64                                           Oracle Linux 7Server Latest (x86_64)                                                                                        21,673
repolist: 21,918


For some reason, if you are lacking with OEL7 yum repository file, you may get configured it with wget command.

[root@test-machine02 yum.repos.d]# wget http://yum.oracle.com/public-yum-ol7.repo
--2020-12-23 10:14:53--  http://yum.oracle.com/public-yum-ol7.repo
Resolving yum.oracle.com (yum.oracle.com)... 104.113.245.169
Connecting to yum.oracle.com (yum.oracle.com)|104.113.245.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16402 (16K) 
Saving to: âpublic-yum-ol7.repo.1â
 
100%[====================================================================================================================================================>] 16,402      --.-K/s   in 0s
 
2020-12-23 10:14:54 (106 MB/s) - âpublic-yum-ol7.repo.1â saved [16402/16402]


Check the current OS version and kernel version with below commands

[root@test-machine02 ~]# uname -a
Linux test-machine02 4.14.35-1902.3.2.el7uek.x86_64 #2 SMP Tue Jul 30 03:59:02 GMT 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@test-machine02 ~]#
[root@test-machine02 ~]# uname -r
4.14.35-1902.3.2.el7uek.x86_64
[root@test-machine02 ~]#
[root@test-machine02 ~]# cat /etc/oracle-release
Oracle Linux Server release 7.7
[root@test-machine02 ~]#


Check for update with below yum check-update command

[root@test-machine02 ~]# yum check-update
Loaded plugins: langpacks, ulninfo

NetworkManager.x86_64                                                                    1:1.18.8-2.el7_9                                                                        ol7_latest
NetworkManager-config-server.noarch                                                      1:1.18.8-2.el7_9                                                                        ol7_latest
NetworkManager-libnm.x86_64                                                              1:1.18.8-2.el7_9                                                                        ol7_latest
NetworkManager-team.x86_64                                                               1:1.18.8-2.el7_9                                                                        ol7_latest
NetworkManager-tui.x86_64                                                                1:1.18.8-2.el7_9                                                                        ol7_latest
SDL.x86_64                                                                               1.2.15-17.el7                                                                           ol7_latest
abrt.x86_64                                                                              2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-addon-ccpp.x86_64                                                                   2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-addon-kerneloops.x86_64                                                             2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-addon-pstoreoops.x86_64                                                             2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-addon-python.x86_64                                                                 2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-addon-vmcore.x86_64                                                                 2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-addon-xorg.x86_64                                                                   2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-cli.x86_64                                                                          2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-console-notification.x86_64                                                         2.1.11-60.0.1.el7                                                                       ol7_latest
abrt-dbus.x86_64                                                                         2.1.11-60.0.1.el7                                                                       ol7_latest


Apply all available updates with the below command, Wait until all updates are installed and configured. YUM Update commands can take up to approx 30 minutes to complete it.

[root@test-machine02 ~]# yum update -y
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager.x86_64 1:1.18.8-2.el7_9 will be an update
---> Package NetworkManager-config-server.noarch 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-config-server.noarch 1:1.18.8-2.el7_9 will be an update
---> Package NetworkManager-libnm.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9 will be an update
---> Package NetworkManager-team.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-team.x86_64 1:1.18.8-2.el7_9 will be an update
----Trim Output
  Cleanup    : libsss_nss_idmap-1.16.4-21.el7.x86_64                                                                                                                                  547/560
  Cleanup    : libmspack-0.5-0.7.alpha.el7.x86_64                                                                                                                                     548/560
  Cleanup    : libseccomp-2.3.1-3.el7.x86_64                                                                                                                                          549/560
  Cleanup    : SDL-1.2.15-14.el7.x86_64                                                                                                                                               550/560
  Cleanup    : 1:redhat-release-server-7.7-10.0.1.el7.x86_64                                                                                                                          551/560
  Cleanup    : libselinux-2.5-14.1.el7.x86_64                                                                                                                                         552/560
  Cleanup    : glibc-common-2.17-292.0.1.el7.x86_64                                                                                                                                   553/560
  Cleanup    : bash-4.2.46-33.el7.x86_64                                                                                                                                              554/560
  Cleanup    : nspr-4.21.0-1.el7.x86_64                                                                                                                                               555/560
  Cleanup    : nss-util-3.44.0-3.el7.x86_64                                                                                                                                           556/560
  Cleanup    : nss-softokn-freebl-3.44.0-5.0.1.el7.x86_64                                                                                                                             557/560
  Cleanup    : glibc-2.17-292.0.1.el7.x86_64                                                                                                                                          558/560
  Cleanup    : tzdata-2019b-1.el7.noarch                                                                                                                                              559/560
  Cleanup    : libgcc-4.8.5-39.0.1.el7.x86_64                                                                                                                                         560/560
  systemd-sysv.x86_64 0:219-78.0.1.el7_9.2                     systemtap-runtime.x86_64 0:4.0-13.0.1.el7                     tcpdump.x86_64 14:4.9.2-4.0.1.el7_7.1
  tcsh.x86_64 0:6.18.01-17.el7_9.1                             teamd.x86_64 0:1.29-3.el7                                     tomcat-servlet-3.0-api.noarch 0:7.0.76-16.el7_9
  tuned.noarch 0:2.11.0-10.0.3.el7                             tzdata.noarch 0:2020d-2.el7                                   tzdata-java.noarch 0:2020d-2.el7
  unzip.x86_64 0:6.0-21.el7                                    util-linux.x86_64 0:2.23.2-65.0.1.el7                         vdo.x86_64 0:6.1.3.23-5.el7
  vim-common.x86_64 2:7.4.629-8.0.1.el7_9                      vim-enhanced.x86_64 2:7.4.629-8.0.1.el7_9                     vim-filesystem.x86_64 2:7.4.629-8.0.1.el7_9
  vim-minimal.x86_64 2:7.4.629-8.0.1.el7_9                     xfsprogs.x86_64 0:4.15-6.el7                                  yum.noarch 0:3.4.3-168.0.3.el7
  yum-utils.noarch 0:1.1.31-54.0.1.el7_8

Replaced:
  iwl7265-firmware.noarch 999:22.0.7.0-999.2.el7



Reboot Server after completion of above update commands.

[root@test-machine02 ~]# reboot


Check current OS Version and Kernel version. As you can notice OS is upgrade to 7.9 version and Kernel version changed from 4.14.35-1902.3.2.el7uek to 4.14.35-2025.403.3.el7uek

[root@test-machine02 ~]# uname -a
Linux test-machine02 4.14.35-2025.403.3.el7uek.x86_64 #2 SMP Fri Nov 27 18:36:50 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@test-machine02 ~]#
[root@test-machine02 ~]# uname -r
4.14.35-2025.403.3.el7uek.x86_64
[root@test-machine02 ~]#
[root@test-machine02 ~]# cat /etc/oracle-release
Oracle Linux Server release 7.9

Check upgrade went fine with below commands,

dmesg: Check if you have any error or warning during the upgrade.

ss -tulpn: Verify network is working fine.

Linux messages file: Open in vi editor messages file and check for any error messages.

[root@test-machine02 ~]# dmesg | grep -i 'err|warn|cri'
[root@test-machine02 ~]# ss -tulpn
Netid           State            Recv-Q           Send-Q                     Local Address:Port                      Peer Address:Port           Process
udp             UNCONN           0                0                                0.0.0.0:68                             0.0.0.0:*               users:(("dhclient",pid=933,fd=6))
udp             UNCONN           0                0                                0.0.0.0:111                            0.0.0.0:*               users:(("rpcbind",pid=768,fd=6))
udp             UNCONN           0                0                                0.0.0.0:939                            0.0.0.0:*               users:(("rpcbind",pid=768,fd=7))
udp             UNCONN           0                0                                   [::]:111                               [::]:*               users:(("rpcbind",pid=768,fd=9))
udp             UNCONN           0                0                                   [::]:939                               [::]:*               users:(("rpcbind",pid=768,fd=10))
tcp             LISTEN           0                128                              0.0.0.0:22                             0.0.0.0:*               users:(("sshd",pid=1123,fd=3))
tcp             LISTEN           0                100                            127.0.0.1:25                             0.0.0.0:*               users:(("master",pid=1273,fd=13))
tcp             LISTEN           0                128                              0.0.0.0:111                            0.0.0.0:*               users:(("rpcbind",pid=768,fd=8))
tcp             LISTEN           0                128                                 [::]:22                                [::]:*               users:(("sshd",pid=1123,fd=4))
tcp             LISTEN           0                100                                [::1]:25                                [::]:*               users:(("master",pid=1273,fd=14))
tcp             LISTEN           0                128                                 [::]:111                               [::]:*               users:(("rpcbind",pid=768,fd=11))           [root@test-machine02 ~]#

[root@test-machine02 ~]# vi /var/log/messages
[root@test-machine02 ~]#

[root@test-machine02 ~]# hostnamectl
   Static hostname: test-machine02
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 839223a22c624597957b436a4f421853
           Boot ID: f120f9c673ee4efeaf69a78f3937ab91
    Virtualization: vmware
  Operating System: Oracle Linux Server 7.9
       CPE OS Name: cpe:/o:oracle:linux:7:9:server
            Kernel: Linux 4.14.35-2025.403.3.el7uek.x86_64
      Architecture: x86-64
[root@test-machine02 ~]#


Click here for How to Enable 64bit option in Oracle Virtual Machine while OS Installation on Window
Click here for Step by Step Install Oracle Enterprise Linux (OEL) 7
Click here for How to Configure LVM (Logical Volume Management) in Oracle Enterprise Linux (OEL)
Click here for How to Extend and Reduce LVM (Logical Volume Management)

Click here for Step by Step manually creation of an Oracle 19c Database on Linux 7

 

This document is just for learning purpose and always validate in the LAB environment first before applying in the LIVE environment.


Hope so you like this article
!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the most recent update. Click here to understand more about our pursuit.

Loading

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Jamsher Khan

Hello and welcome to DBsGuru,I’m Jamsher Khan working as Senior Oracle DBA based in KSA-Jeddah, I have working experience in Oracle DBA, SQL Server, MySql, PostgreSQL, Linux, Golden Gate, ODA.Thanks for the visits!Share Learn Grow!

4 thoughts on “How to Upgrade OEL (Oracle Enterprise Linux) 7.7 to 7.9

  1. Hi Emir,

    For minor release OS upgrade like above 7.7 or 7.9. No DB changes are required just make sure DB Services are down while OS upgrading.
    For major release upgrade like 7 to 8 better to consult with Oracle Support and do prior testing.

    Thanks & Best Regards

  2. Hi i need help to know how update my oracle linux server 7.4 to 7.9
    on my system Red Hat Enterprise Linux Server 7.4

    [root@dmltedoagn ~]# cat /etc/oracle-release
    Oracle Linux Server release 7.4
    [root@dmltedoagn ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 7.4 (Maipo)

    [root@dmltedoagn ~]# yum repolist
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
    repo id repo name status
    !rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs)

    [root@dmltedoagn ~]# yum list | grep release
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
    oraclelinux-release.x86_64 7:7.4-1.0.4.el7 @OL74
    redhat-release-server.x86_64 1:7.4-18.0.1.el7 @OL74
    isorelax.noarch 1:0-0.15.release20050331.el7
    redhat-release-eula.noarch 7.8-0.el7 rhel-7-server-rpms

    [root@dmltedoagn yum.repos.d]# uname -a
    Linux mexmtyocenwebint 3.10.0-1160.31.1.el7.x86_64 #1 SMP Wed May 26 20:18:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

    [root@dmltedoagn yum.repos.d]# uname -r
    3.10.0-1160.31.1.el7.x86_64

  3. Hi Francisco,

    This is Oracle Linux or Redhat Linux.

    If this is Oracle Linux make sure you have below Oracle Linux yum repository.

    [root@test-machine01 yum.repos.d]# pwd
    /etc/yum.repos.d
    [root@test-machine01 yum.repos.d]# ls -l
    total 16
    -rw-r–r–. 1 root root 4075 Oct 2 2020 oracle-linux-ol7.repo
    -rw-r–r–. 1 root root 2587 Oct 2 2020 uek-ol7.repo
    -rw-r–r–. 1 root root 197 Mar 25 2021 veeam.repo
    -rw-r–r–. 1 root root 226 Oct 2 2020 virt-ol7.repo
    [root@test-machine01 yum.repos.d]#

    [root@test-machine01 ~]# yum repolist
    repo id repo name status
    ol7_UEKR6/x86_64 Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 7Server (x86_64) 610
    ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 24,073

    If Oracle Linux repository is missing you can configure using command : wget http://yum.oracle.com/public-yum-ol7.repo

    Please execute command yum clean all to clear the entire YUM cache and rebuild.

    Thanks & Regards
    Jamsher

Comments are closed.