Installing Notarized Oracle Instant Client Software PKG Files

Perform the following steps for installing or uninstalling Oracle Instant Client for Apple macOS (ARM64) using PKG files. All installations require a Basic or Basic Light package. All other packages are optional.

  1. Download the desired Oracle Instant Client PKG files for Apple macOS (ARM64) from the Oracle Instant Client Downloads page in a root accessible directory:
    https://www.oracle.com/database/technologies/instant-client/downloads.html

    Note: Use the stapler utility to check if the PKG files are notarized.

    For example:

    $ /usr/bin/xcrun stapler validate <path-to-instantclient-basic-macos.arm64-23.26.3.0.0.pkg>

    The output is similar to the following:

    Processing: instantclient-basic-macos.arm64-23.26.3.0.0.pkg
    The validate action worked!
  2. Use the installer utility to install the downloaded PKGs. The installer utility creates the /Applications/Oracle_Instant_Client_23_26_x directory and installs the PKGs in this newly created directory:
    For example:

    $ sudo /usr/sbin/installer -pkg <path-to-instantclient-basic-macos.arm64-23.26.3.0.0.pkg>  -target /
  3. Verify that the desired packages are installed successfully:

    $ /usr/sbin/pkgutil --pkgs | grep -i instantclient
    com.oracle.us.pkg.instantclient.basic.macos.arm64

Removing the Oracle Instant Client Software PKG Files

  1. To remove the Oracle Instant Client software, run the uninstall_oracle_instantclient script from the /Applications/Oracle_Instant_Client_23_x_x directory. This script prompts for the root password to remove any symbolic links created in the /usr directory during Oracle Instant Client installation.

    For example:

    $ cd /Applications/Oracle_Instant_Client_23_26_3/
    $ ./uninstall_oracle_instantclient
    
    Try running `launchctl bootout` as root for richer errors.
    Oracle Instant Client uninstalled successfully
  2. For each installed PKG package, remove its package receipt from the macOS package database so that macOS no longer recognizes the package as installed:

    $ sudo pkgutil --forget com.oracle.us.pkg.instantclient.basic.macos.arm64
    Password:
    Forgot package 'com.oracle.us.pkg.instantclient.basic.macos.arm64' on '/'.