2 Installing and Upgrading Oracle ASMLIB

WARNING:

Oracle Linux 7 is now in Extended Support. See Oracle Linux Extended Support and Oracle Open Source Support Policies for more information.

Migrate applications and data to Oracle Linux 8 or Oracle Linux 9 as soon as possible.

ASMLIB is a support library for the Automatic Storage Management (ASM) feature of the Oracle Database. Oracle provides a Linux-specific implementation of this library. This document describes how to download, install, and upgrade the ASM library on Oracle Linux 7.

What do you need?

  • A system with Oracle Linux 7 installed.
  • Root administrator privileges on the host Linux system.

Updating ULN Subscriptions or Downloading Packages

The oracleasmlib and oracleasm-support packages are available on the Unbreakable Linux Network (ULN). You can also manually download the packages.

We recommend installing from ULN to keep the system updated.

  • Subscribe to ULN Channels.

    If you're using ULN, subscribe to the "Oracle ASMLIB" and "Oracle Linux Addons" ULN channels.

    1. Sign in to https://linux.oracle.com with your ULN username and password.
    2. On the Systems tab, from the list of registered systems, select the link name for the specified system.
    3. On the System Details page, select Manage Subscriptions.
    4. On the System Summary page, select the required "Oracle ASMLIB" and "Oracle Linux Addons" channels from the Available Channels list, then click the right-arrow (→) to move selected channels to the Subscribed Channels list.
    5. Click Save Subscriptions.
  • Download packages manually.

    If you don't use ULN you can download the driver packages from https://www.oracle.com/linux/downloads/linux-asmlib-v7-downloads.html, but you must keep them updated on the system when new patches are released.

Installing Required Packages

The following steps describe how install the ASM support tools, the ASM library, and the kernel driver (when applicable).

You must be subscribed to the ULN channels or have the packages downloaded before you proceed. See Updating ULN Subscriptions or Downloading Packages for more information.

  1. Log into the system with an account that has administrator privileges.
  2. Install the oracleasm-support and oracleasmlib packages.
    sudo yum install oracleasm-support oracleasmlib
  3. Install the kernel driver if required.
    1. On systems running UEK R6 or earlier, the oracleasm kernel driver is already included and installed with the kernel.

    2. On Oracle Linux 7 systems using RHCK, you must install the oracleasm driver:
      sudo yum install kmod-redhat-oracleasm

Upgrading ASMLIB

Update ASMLIB by using the yum update command.

  • Run the yum update command to fully update the system.
    sudo yum update -y

    We recommend that new ULN subscribers that have migrated from Red Hat update the oracleasmlib package from ULN.